{"openapi":"3.1.0","paths":{"/api/v1/ai/agents":{"get":{"summary":"List AI agents available in the current context","tags":["aiAgent"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"}},"required":["id","name","description"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/ai/conversations":{"get":{"summary":"List the caller's AI conversations for the current context","tags":["aiAgent"],"parameters":[{"name":"agentId","in":"query","schema":{"type":"string"}},{"name":"taskId","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"agentId":{"type":"string"},"title":{"type":"string"},"pinned":{"type":"boolean"},"contextType":{"type":"string"},"contextId":{"type":"string"},"userId":{"type":"string"},"role":{"type":"string","enum":["owner","view","contribute"]},"ownerName":{"type":["string","null"]},"sharedWith":{"type":"number"},"inputTokens":{"type":"number"},"outputTokens":{"type":"number"},"model":{"type":["string","null"]},"effort":{"anyOf":[{"type":"string","enum":["low","medium","high","xhigh","max"]},{"type":"null"}]},"running":{"type":"boolean"},"runningSince":{"type":["string","null"]},"lastError":{"type":["string","null"]},"visibility":{"type":"string","enum":["private","context"]},"status":{"type":"string","enum":["open","closed","escalated"]},"closedAt":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"origin":{"default":"user","type":"string","enum":["user","task"]},"taskId":{"default":null,"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","agentId","title","pinned","contextType","contextId","userId","role","ownerName","sharedWith","inputTokens","outputTokens","model","effort","running","runningSince","lastError","visibility","status","closedAt","mode","origin","taskId","createdAt","updatedAt"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"post":{"summary":"Create a new AI conversation","tags":["aiAgent"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"agentId":{"type":"string","minLength":1},"title":{"type":"string"}},"required":["agentId"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"agentId":{"type":"string"},"title":{"type":"string"},"pinned":{"type":"boolean"},"contextType":{"type":"string"},"contextId":{"type":"string"},"userId":{"type":"string"},"role":{"type":"string","enum":["owner","view","contribute"]},"ownerName":{"type":["string","null"]},"sharedWith":{"type":"number"},"inputTokens":{"type":"number"},"outputTokens":{"type":"number"},"model":{"type":["string","null"]},"effort":{"anyOf":[{"type":"string","enum":["low","medium","high","xhigh","max"]},{"type":"null"}]},"running":{"type":"boolean"},"runningSince":{"type":["string","null"]},"lastError":{"type":["string","null"]},"visibility":{"type":"string","enum":["private","context"]},"status":{"type":"string","enum":["open","closed","escalated"]},"closedAt":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"origin":{"default":"user","type":"string","enum":["user","task"]},"taskId":{"default":null,"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","agentId","title","pinned","contextType","contextId","userId","role","ownerName","sharedWith","inputTokens","outputTokens","model","effort","running","runningSince","lastError","visibility","status","closedAt","mode","origin","taskId","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/ai/conversations/{conversationId}/model":{"patch":{"summary":"Override the model and reasoning effort for one conversation","tags":["aiAgent"],"parameters":[{"name":"conversationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"model":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}]},"effort":{"anyOf":[{"type":"string","enum":["low","medium","high","xhigh","max"]},{"type":"null"}]}},"required":["model","effort"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"agentId":{"type":"string"},"title":{"type":"string"},"pinned":{"type":"boolean"},"contextType":{"type":"string"},"contextId":{"type":"string"},"userId":{"type":"string"},"role":{"type":"string","enum":["owner","view","contribute"]},"ownerName":{"type":["string","null"]},"sharedWith":{"type":"number"},"inputTokens":{"type":"number"},"outputTokens":{"type":"number"},"model":{"type":["string","null"]},"effort":{"anyOf":[{"type":"string","enum":["low","medium","high","xhigh","max"]},{"type":"null"}]},"running":{"type":"boolean"},"runningSince":{"type":["string","null"]},"lastError":{"type":["string","null"]},"visibility":{"type":"string","enum":["private","context"]},"status":{"type":"string","enum":["open","closed","escalated"]},"closedAt":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"origin":{"default":"user","type":"string","enum":["user","task"]},"taskId":{"default":null,"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","agentId","title","pinned","contextType","contextId","userId","role","ownerName","sharedWith","inputTokens","outputTokens","model","effort","running","runningSince","lastError","visibility","status","closedAt","mode","origin","taskId","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/ai/conversations/{conversationId}":{"get":{"summary":"Get a conversation with its messages","tags":["aiAgent"],"parameters":[{"name":"conversationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"conversation":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"agentId":{"type":"string"},"title":{"type":"string"},"pinned":{"type":"boolean"},"contextType":{"type":"string"},"contextId":{"type":"string"},"userId":{"type":"string"},"role":{"type":"string","enum":["owner","view","contribute"]},"ownerName":{"type":["string","null"]},"sharedWith":{"type":"number"},"inputTokens":{"type":"number"},"outputTokens":{"type":"number"},"model":{"type":["string","null"]},"effort":{"anyOf":[{"type":"string","enum":["low","medium","high","xhigh","max"]},{"type":"null"}]},"running":{"type":"boolean"},"runningSince":{"type":["string","null"]},"lastError":{"type":["string","null"]},"visibility":{"type":"string","enum":["private","context"]},"status":{"type":"string","enum":["open","closed","escalated"]},"closedAt":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"origin":{"default":"user","type":"string","enum":["user","task"]},"taskId":{"default":null,"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","agentId","title","pinned","contextType","contextId","userId","role","ownerName","sharedWith","inputTokens","outputTokens","model","effort","running","runningSince","lastError","visibility","status","closedAt","mode","origin","taskId","createdAt","updatedAt"],"additionalProperties":false},"messages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"conversationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"role":{"type":"string","enum":["user","assistant","human"]},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"markdown"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"image"},"mediaType":{"type":"string","enum":["image/png","image/jpeg","image/webp","image/gif"]},"width":{"type":"number"},"height":{"type":"number"},"thumbnail":{"type":"string"},"palette":{"type":"array","items":{"type":"object","properties":{"hex":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"share":{"type":"number","minimum":0,"maximum":1}},"required":["hex","share"],"additionalProperties":false}}},"required":["type","mediaType","width","height"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"chart"},"spec":{"type":"object","properties":{"chartType":{"type":"string","enum":["timeseries","bar","pie","counter"]},"title":{"type":"string"},"data":{"maxItems":500,"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"xField":{"type":"string"},"series":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"label":{"type":"string"}},"required":["field"],"additionalProperties":false}},"labelField":{"type":"string"},"valueField":{"type":"string"},"unit":{"type":"string"}},"required":["chartType","title","data"],"additionalProperties":false}},"required":["type","spec"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"table"},"spec":{"type":"object","properties":{"title":{"type":"string"},"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"format":{"type":"string","enum":["text","number","amount","datetime"]}},"required":["key","label"],"additionalProperties":false}},"rows":{"maxItems":500,"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["columns","rows"],"additionalProperties":false}},"required":["type","spec"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"draft"},"draftKind":{"type":"string","minLength":1,"maxLength":64},"title":{"type":"string"},"summary":{"type":"string"},"draft":{}},"required":["type","draftKind","title","draft"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"widget_spec"},"spec":{"type":"object","properties":{"widgetType":{"type":"string","enum":["counter","piechart","table","timeseries","note","funnel"]},"title":{"type":"string"},"description":{"type":"string"},"dataset":{"type":"string"},"query":{"type":"string"},"width":{"type":"integer","minimum":1,"maximum":12},"height":{"type":"integer","minimum":1,"maximum":9007199254740991},"config":{"anyOf":[{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"chartType":{"type":"string","enum":["line","area","bar"]},"xAxis":{"type":"object","properties":{"dataKey":{"type":"string"},"label":{"type":"string"}},"required":["dataKey"],"additionalProperties":false},"yAxis":{"type":"object","properties":{"label":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"}},"additionalProperties":false}},"required":["chartType","xAxis","yAxis"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"format":{"type":"string","enum":["number","currency","percentage"]},"prefix":{"type":"string"},"suffix":{"type":"string"},"decimals":{"type":"number"},"size":{"type":"string","enum":["small","medium","large","xlarge"]},"currency":{"type":"string"},"locale":{"type":"string"},"accentColor":{"type":"string"},"icon":{"type":"string"},"comparison":{"type":"object","properties":{"enabled":{"type":"boolean"},"type":{"type":"string","enum":["percentage","absolute"]},"period":{"type":"string","enum":["previous","year_ago"]},"invertColors":{"type":"boolean"}},"required":["enabled","type","period"],"additionalProperties":false}},"required":["format"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"donut":{"type":"boolean"},"labelKey":{"type":"string"},"valueKey":{"type":"string"},"showPercentage":{"type":"boolean"},"legendPosition":{"type":"string","enum":["top","bottom","left","right"]},"legendValues":{"type":"string","enum":["none","value","percentage","both"]},"maxSize":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["labelKey","valueKey"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"stepField":{"type":"string","minLength":1},"countField":{"type":"string"},"steps":{"minItems":2,"type":"array","items":{"type":"object","properties":{"value":{"type":["number","string"]},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"groupBy":{"type":"string"},"cumulative":{"type":"boolean"}},"required":["stepField","steps"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"header":{"type":"string"},"width":{"type":"number"},"format":{"type":"string","enum":["text","number","currency","date","boolean"]}},"required":["key","header"],"additionalProperties":false}},"pagination":{"type":"boolean"},"pageSize":{"type":"number"}},"required":["columns"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"content":{}},"required":["content"],"additionalProperties":false},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}]},"filterMapping":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"enabled":{"type":"boolean"},"mapTo":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["enabled"],"additionalProperties":false}}},"required":["widgetType","title","dataset","query","width","height","config"],"additionalProperties":false}},"required":["type","spec"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"tool_activity"},"toolName":{"type":"string"},"summary":{"type":"string"},"status":{"type":"string","enum":["running","ok","error"]},"durationMs":{"type":"number"}},"required":["type","toolName","status"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"memory"},"memoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string"},"action":{"type":"string","enum":["created","updated","deleted"]}},"required":["type","memoryId","text","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"proposal"},"proposalId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["decision_table_rules","email_send","dashboard_widgets","notification_settings","agent_memory","monitor","agent_task","api_request"]},"targetId":{"type":"string"},"targetName":{"type":"string"},"summary":{"type":"string"},"preview":{"type":"string"},"previewTruncated":{"type":"boolean"},"email":{"type":"object","properties":{"subject":{"type":"string"},"body":{"type":"string"}},"required":["subject","body"],"additionalProperties":false}},"required":["type","proposalId","kind","targetId","targetName","summary","preview"],"additionalProperties":false}]}},"authorId":{"type":["string","null"]},"authorName":{"type":["string","null"]},"rating":{"anyOf":[{"type":"string","enum":["up","down"]},{"type":"null"}]},"mode":{"type":"string","enum":["live","test"]},"createdAt":{"type":"string"}},"required":["id","conversationId","role","blocks","authorId","authorName","rating","mode","createdAt"],"additionalProperties":false}}},"required":["conversation","messages"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"put":{"summary":"Update a conversation (rename and/or pin)","tags":["aiAgent"],"parameters":[{"name":"conversationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"title":{"type":"string","minLength":1,"maxLength":200},"pinned":{"type":"boolean"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"agentId":{"type":"string"},"title":{"type":"string"},"pinned":{"type":"boolean"},"contextType":{"type":"string"},"contextId":{"type":"string"},"userId":{"type":"string"},"role":{"type":"string","enum":["owner","view","contribute"]},"ownerName":{"type":["string","null"]},"sharedWith":{"type":"number"},"inputTokens":{"type":"number"},"outputTokens":{"type":"number"},"model":{"type":["string","null"]},"effort":{"anyOf":[{"type":"string","enum":["low","medium","high","xhigh","max"]},{"type":"null"}]},"running":{"type":"boolean"},"runningSince":{"type":["string","null"]},"lastError":{"type":["string","null"]},"visibility":{"type":"string","enum":["private","context"]},"status":{"type":"string","enum":["open","closed","escalated"]},"closedAt":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"origin":{"default":"user","type":"string","enum":["user","task"]},"taskId":{"default":null,"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","agentId","title","pinned","contextType","contextId","userId","role","ownerName","sharedWith","inputTokens","outputTokens","model","effort","running","runningSince","lastError","visibility","status","closedAt","mode","origin","taskId","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"summary":"Delete a conversation, or leave one that was shared with you","tags":["aiAgent"],"parameters":[{"name":"conversationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"},"left":{"type":"boolean"}},"required":["deleted"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/ai/conversations/{conversationId}/shares":{"get":{"summary":"List the people a conversation is shared with","tags":["aiAgent"],"parameters":[{"name":"conversationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"access":{"type":"string","enum":["view","contribute"]},"name":{"type":"string"},"email":{"type":["string","null"]},"sharedBy":{"type":"string"},"createdAt":{"type":"string"}},"required":["userId","access","name","email","sharedBy","createdAt"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"put":{"summary":"Share a conversation with colleagues in the same context","tags":["aiAgent"],"parameters":[{"name":"conversationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"shares":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"userId":{"type":"string","minLength":1},"access":{"type":"string","enum":["view","contribute"]}},"required":["userId","access"]}}},"required":["shares"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"access":{"type":"string","enum":["view","contribute"]},"name":{"type":"string"},"email":{"type":["string","null"]},"sharedBy":{"type":"string"},"createdAt":{"type":"string"}},"required":["userId","access","name","email","sharedBy","createdAt"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/ai/share-candidates":{"get":{"summary":"List users in the current context a conversation can be shared with","tags":["aiAgent"],"parameters":[{"name":"search","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":"string"},"email":{"type":["string","null"]}},"required":["userId","name","email"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/ai/agents/{agentId}/memories":{"get":{"summary":"List what an agent remembers in the current context","tags":["aiAgent"],"parameters":[{"name":"agentId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"agentId":{"type":"string"},"text":{"type":"string"},"source":{"type":"string","enum":["agent","user"]},"conversationId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"createdBy":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","agentId","text","source","conversationId","createdBy","createdAt","updatedAt"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"post":{"summary":"Teach an agent a fact to remember in the current context","tags":["aiAgent"],"parameters":[{"name":"agentId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":600}},"required":["text"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"agentId":{"type":"string"},"text":{"type":"string"},"source":{"type":"string","enum":["agent","user"]},"conversationId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"createdBy":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","agentId","text","source","conversationId","createdBy","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/ai/memories/{memoryId}":{"put":{"summary":"Correct a remembered fact","tags":["aiAgent"],"parameters":[{"name":"memoryId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":600}},"required":["text"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"agentId":{"type":"string"},"text":{"type":"string"},"source":{"type":"string","enum":["agent","user"]},"conversationId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"createdBy":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","agentId","text","source","conversationId","createdBy","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"summary":"Make an agent forget a fact","tags":["aiAgent"],"parameters":[{"name":"memoryId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"}},"required":["deleted"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/ai/conversations/{conversationId}/proposals":{"get":{"summary":"List change proposals of a conversation with their statuses","tags":["aiAgent"],"parameters":[{"name":"conversationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"conversationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["decision_table_rules","email_send","dashboard_widgets","notification_settings","agent_memory","monitor","agent_task","api_request"]},"targetId":{"type":"string"},"targetName":{"type":"string"},"summary":{"type":"string"},"status":{"type":"string","enum":["pending","applied","rejected","failed","superseded"]},"error":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","conversationId","kind","targetId","targetName","summary","status","error","mode","createdAt","updatedAt"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/ai/proposals/{proposalId}/approve":{"post":{"summary":"Approve a pending proposal and apply the change","tags":["aiAgent"],"parameters":[{"name":"proposalId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"conversationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["decision_table_rules","email_send","dashboard_widgets","notification_settings","agent_memory","monitor","agent_task","api_request"]},"targetId":{"type":"string"},"targetName":{"type":"string"},"summary":{"type":"string"},"status":{"type":"string","enum":["pending","applied","rejected","failed","superseded"]},"error":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","conversationId","kind","targetId","targetName","summary","status","error","mode","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"mode":{"type":"string","enum":["live","test"]}},"required":["message","mode"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/ai/proposals/{proposalId}/reject":{"post":{"summary":"Reject a pending proposal","tags":["aiAgent"],"parameters":[{"name":"proposalId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"conversationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["decision_table_rules","email_send","dashboard_widgets","notification_settings","agent_memory","monitor","agent_task","api_request"]},"targetId":{"type":"string"},"targetName":{"type":"string"},"summary":{"type":"string"},"status":{"type":"string","enum":["pending","applied","rejected","failed","superseded"]},"error":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","conversationId","kind","targetId","targetName","summary","status","error","mode","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/ai/messages/{messageId}/rating":{"put":{"summary":"Rate one answer up or down","tags":["aiAgent"],"parameters":[{"name":"messageId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"rating":{"anyOf":[{"type":"string","enum":["up","down"]},{"type":"null"}]},"comment":{"type":"string","maxLength":2000}},"required":["rating"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/ai/conversations/{conversationId}/escalate":{"post":{"summary":"Ask a person to take over the thread","tags":["aiAgent"],"parameters":[{"name":"conversationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","maxLength":2000}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"agentId":{"type":"string"},"title":{"type":"string"},"pinned":{"type":"boolean"},"contextType":{"type":"string"},"contextId":{"type":"string"},"userId":{"type":"string"},"role":{"type":"string","enum":["owner","view","contribute"]},"ownerName":{"type":["string","null"]},"sharedWith":{"type":"number"},"inputTokens":{"type":"number"},"outputTokens":{"type":"number"},"model":{"type":["string","null"]},"effort":{"anyOf":[{"type":"string","enum":["low","medium","high","xhigh","max"]},{"type":"null"}]},"running":{"type":"boolean"},"runningSince":{"type":["string","null"]},"lastError":{"type":["string","null"]},"visibility":{"type":"string","enum":["private","context"]},"status":{"type":"string","enum":["open","closed","escalated"]},"closedAt":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"origin":{"default":"user","type":"string","enum":["user","task"]},"taskId":{"default":null,"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","agentId","title","pinned","contextType","contextId","userId","role","ownerName","sharedWith","inputTokens","outputTokens","model","effort","running","runningSince","lastError","visibility","status","closedAt","mode","origin","taskId","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/ai/conversations/{conversationId}/human-reply":{"post":{"summary":"Reply in the thread as a person, without running the agent","tags":["aiAgent"],"parameters":[{"name":"conversationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","minLength":1,"maxLength":8000},"reopen":{"type":"boolean"}},"required":["message"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"conversationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"role":{"type":"string","enum":["user","assistant","human"]},"blocks":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"markdown"},"text":{"type":"string"}},"required":["type","text"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"image"},"mediaType":{"type":"string","enum":["image/png","image/jpeg","image/webp","image/gif"]},"width":{"type":"number"},"height":{"type":"number"},"thumbnail":{"type":"string"},"palette":{"type":"array","items":{"type":"object","properties":{"hex":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"share":{"type":"number","minimum":0,"maximum":1}},"required":["hex","share"],"additionalProperties":false}}},"required":["type","mediaType","width","height"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"chart"},"spec":{"type":"object","properties":{"chartType":{"type":"string","enum":["timeseries","bar","pie","counter"]},"title":{"type":"string"},"data":{"maxItems":500,"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"xField":{"type":"string"},"series":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"label":{"type":"string"}},"required":["field"],"additionalProperties":false}},"labelField":{"type":"string"},"valueField":{"type":"string"},"unit":{"type":"string"}},"required":["chartType","title","data"],"additionalProperties":false}},"required":["type","spec"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"table"},"spec":{"type":"object","properties":{"title":{"type":"string"},"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"format":{"type":"string","enum":["text","number","amount","datetime"]}},"required":["key","label"],"additionalProperties":false}},"rows":{"maxItems":500,"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["columns","rows"],"additionalProperties":false}},"required":["type","spec"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"draft"},"draftKind":{"type":"string","minLength":1,"maxLength":64},"title":{"type":"string"},"summary":{"type":"string"},"draft":{}},"required":["type","draftKind","title","draft"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"widget_spec"},"spec":{"type":"object","properties":{"widgetType":{"type":"string","enum":["counter","piechart","table","timeseries","note","funnel"]},"title":{"type":"string"},"description":{"type":"string"},"dataset":{"type":"string"},"query":{"type":"string"},"width":{"type":"integer","minimum":1,"maximum":12},"height":{"type":"integer","minimum":1,"maximum":9007199254740991},"config":{"anyOf":[{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"chartType":{"type":"string","enum":["line","area","bar"]},"xAxis":{"type":"object","properties":{"dataKey":{"type":"string"},"label":{"type":"string"}},"required":["dataKey"],"additionalProperties":false},"yAxis":{"type":"object","properties":{"label":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"}},"additionalProperties":false}},"required":["chartType","xAxis","yAxis"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"format":{"type":"string","enum":["number","currency","percentage"]},"prefix":{"type":"string"},"suffix":{"type":"string"},"decimals":{"type":"number"},"size":{"type":"string","enum":["small","medium","large","xlarge"]},"currency":{"type":"string"},"locale":{"type":"string"},"accentColor":{"type":"string"},"icon":{"type":"string"},"comparison":{"type":"object","properties":{"enabled":{"type":"boolean"},"type":{"type":"string","enum":["percentage","absolute"]},"period":{"type":"string","enum":["previous","year_ago"]},"invertColors":{"type":"boolean"}},"required":["enabled","type","period"],"additionalProperties":false}},"required":["format"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"donut":{"type":"boolean"},"labelKey":{"type":"string"},"valueKey":{"type":"string"},"showPercentage":{"type":"boolean"},"legendPosition":{"type":"string","enum":["top","bottom","left","right"]},"legendValues":{"type":"string","enum":["none","value","percentage","both"]},"maxSize":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["labelKey","valueKey"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"stepField":{"type":"string","minLength":1},"countField":{"type":"string"},"steps":{"minItems":2,"type":"array","items":{"type":"object","properties":{"value":{"type":["number","string"]},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"groupBy":{"type":"string"},"cumulative":{"type":"boolean"}},"required":["stepField","steps"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"header":{"type":"string"},"width":{"type":"number"},"format":{"type":"string","enum":["text","number","currency","date","boolean"]}},"required":["key","header"],"additionalProperties":false}},"pagination":{"type":"boolean"},"pageSize":{"type":"number"}},"required":["columns"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"content":{}},"required":["content"],"additionalProperties":false},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}]},"filterMapping":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"enabled":{"type":"boolean"},"mapTo":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["enabled"],"additionalProperties":false}}},"required":["widgetType","title","dataset","query","width","height","config"],"additionalProperties":false}},"required":["type","spec"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"tool_activity"},"toolName":{"type":"string"},"summary":{"type":"string"},"status":{"type":"string","enum":["running","ok","error"]},"durationMs":{"type":"number"}},"required":["type","toolName","status"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"memory"},"memoryId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"text":{"type":"string"},"action":{"type":"string","enum":["created","updated","deleted"]}},"required":["type","memoryId","text","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"proposal"},"proposalId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["decision_table_rules","email_send","dashboard_widgets","notification_settings","agent_memory","monitor","agent_task","api_request"]},"targetId":{"type":"string"},"targetName":{"type":"string"},"summary":{"type":"string"},"preview":{"type":"string"},"previewTruncated":{"type":"boolean"},"email":{"type":"object","properties":{"subject":{"type":"string"},"body":{"type":"string"}},"required":["subject","body"],"additionalProperties":false}},"required":["type","proposalId","kind","targetId","targetName","summary","preview"],"additionalProperties":false}]}},"authorId":{"type":["string","null"]},"authorName":{"type":["string","null"]},"rating":{"anyOf":[{"type":"string","enum":["up","down"]},{"type":"null"}]},"mode":{"type":"string","enum":["live","test"]},"createdAt":{"type":"string"}},"required":["id","conversationId","role","blocks","authorId","authorName","rating","mode","createdAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/ai/support/customers/{customerId}/threads":{"get":{"summary":"Support threads of one customer, read from the organization above it","tags":["aiAgent"],"parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"title":{"type":"string"},"status":{"type":"string","enum":["open","closed","escalated"]},"openedBy":{"type":["string","null"]},"messages":{"type":"number"},"negativeRatings":{"type":"number"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","title","status","openedBy","messages","negativeRatings","createdAt","updatedAt"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/ai/conversations/{conversationId}/cancel":{"post":{"summary":"Ask the running turn in a conversation to stop","tags":["aiAgent"],"parameters":[{"name":"conversationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"stopped":{"type":"boolean"}},"required":["stopped"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/ai/conversations/{conversationId}/messages":{"post":{"description":"Responds with a text/event-stream of AiAgentStreamEvent JSON events, not the declared JSON body.","summary":"Send a user message and stream the agent's response (SSE)","tags":["aiAgent"],"parameters":[{"name":"conversationId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","minLength":1,"maxLength":8000},"pageState":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"pageContext":{"type":"string","maxLength":400},"attachments":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","const":"image"},"mediaType":{"type":"string","enum":["image/png","image/jpeg","image/webp","image/gif"]},"data":{"type":"string","minLength":1,"maxLength":2097152,"pattern":"^[A-Za-z0-9+/]+={0,2}$"},"width":{"type":"integer","minimum":1,"maximum":8000},"height":{"type":"integer","minimum":1,"maximum":8000},"palette":{"maxItems":12,"type":"array","items":{"type":"object","properties":{"hex":{"type":"string","pattern":"^#[0-9a-fA-F]{6}$"},"share":{"type":"number","minimum":0,"maximum":1}},"required":["hex","share"]}},"thumbnail":{"type":"string","maxLength":96000}},"required":["type","mediaType","data","width","height"]}}},"required":["message"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/contexts/{type}/{id}/api-keys":{"post":{"description":"A payment key (`kind: payment`, the default) calls the payment API only, optionally limited to `applicationIds`. An admin key (`kind: admin`) calls only its `endpoints`, each of which the caller must hold itself, and never the payment API.","summary":"Create a new API key","tags":["apiKeys"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"scopes":{"type":"array","items":{"type":"string"}},"expiresIn":{"type":"string","enum":["1h","24h","7d","30d","never"]},"kind":{"default":"payment","type":"string","enum":["payment","admin"]},"endpoints":{"maxItems":2000,"type":"array","items":{"type":"string","minLength":1}},"applicationIds":{"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["name"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"apiKey":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"mode":{"type":"string","enum":["live","test"]},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"createdBy":{"type":["string","null"]},"scopes":{"type":"array","items":{"type":"string"}},"webhookSecret":{"type":["string","null"]},"kind":{"type":"string","enum":["payment","admin"]},"endpoints":{"maxItems":2000,"type":"array","items":{"type":"string","minLength":1}},"applicationIds":{"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"applications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slugId":{"type":["string","null"]}},"required":["id","name","slugId"],"additionalProperties":false}},"accessSetAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","context","mode","name","createdAt","expiresAt","createdBy","webhookSecret","kind"],"additionalProperties":false},"key":{"type":"string"}},"required":["apiKey","key"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"get":{"summary":"List all API keys for a context","tags":["apiKeys"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"mode":{"type":"string","enum":["live","test"]},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"createdBy":{"type":["string","null"]},"scopes":{"type":"array","items":{"type":"string"}},"webhookSecret":{"type":["string","null"]},"kind":{"type":"string","enum":["payment","admin"]},"endpoints":{"maxItems":2000,"type":"array","items":{"type":"string","minLength":1}},"applicationIds":{"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"applications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slugId":{"type":["string","null"]}},"required":["id","name","slugId"],"additionalProperties":false}},"accessSetAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","context","mode","name","createdAt","expiresAt","createdBy","webhookSecret","kind"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/contexts/{type}/{id}/api-keys/access-options":{"get":{"description":"The endpoints the caller may give a payment key and an admin key, and the applications a payment key can be limited to.","summary":"What the caller may give an API key in a context","tags":["apiKeys"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"paymentEndpoints":{"type":"array","items":{"type":"string"}},"adminEndpoints":{"type":"array","items":{"type":"string"}},"applications":{"anyOf":[{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slugId":{"type":["string","null"]},"customerName":{"type":"string"}},"required":["id","name","slugId"],"additionalProperties":false}},{"type":"null"}]}},"required":["paymentEndpoints","adminEndpoints","applications"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/contexts/{type}/{id}/api-keys/{apiKeyId}/access":{"put":{"description":"A field left out keeps its value. Every endpoint added must be one the caller holds, and so must every endpoint of a key whose life is extended; removing an endpoint or shortening the life only narrows the key. `applicationIds` limit a payment key only. A key's kind never changes.","summary":"Change what an API key may call, or when it expires","tags":["apiKeys"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"apiKeyId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"endpoints":{"maxItems":2000,"type":"array","items":{"type":"string","minLength":1}},"applicationIds":{"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"expiresIn":{"type":"string","enum":["1h","24h","7d","30d","never"]}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"apiKey":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"mode":{"type":"string","enum":["live","test"]},"name":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"createdBy":{"type":["string","null"]},"scopes":{"type":"array","items":{"type":"string"}},"webhookSecret":{"type":["string","null"]},"kind":{"type":"string","enum":["payment","admin"]},"endpoints":{"maxItems":2000,"type":"array","items":{"type":"string","minLength":1}},"applicationIds":{"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"applications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"slugId":{"type":["string","null"]}},"required":["id","name","slugId"],"additionalProperties":false}},"accessSetAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","context","mode","name","createdAt","expiresAt","createdBy","webhookSecret","kind"],"additionalProperties":false}},"required":["apiKey"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/contexts/{type}/{id}/api-keys/{apiKeyId}":{"delete":{"summary":"Revoke an API key","tags":["apiKeys"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"apiKeyId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}}],"responses":{"204":{"description":"204","content":{"application/json":{"schema":{}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/customers/{customerId}/applications":{"get":{"summary":"Get all applications for a customer","tags":["applications"],"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","organizationId","customerId","name","slugId","createdAt","updatedAt"],"additionalProperties":false}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"post":{"summary":"Create a new application","tags":["applications"],"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"slugId":{"type":"string","minLength":1}},"required":["customerId","name","slugId"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","organizationId","customerId","name","slugId","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/customers/{customerId}/applications/{id}":{"get":{"summary":"Get an application by ID","tags":["applications"],"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","organizationId","customerId","name","slugId","createdAt","updatedAt"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"patch":{"summary":"Update an application","tags":["applications"],"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slugId":{"type":"string","minLength":1}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","organizationId","customerId","name","slugId","createdAt","updatedAt"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"summary":"Delete an application","tags":["applications"],"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","organizationId","customerId","name","slugId","createdAt","updatedAt"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/customers":{"get":{"summary":"Search customers by name, legal name, emails, contact, etc","tags":["customers"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"customerId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"sort","in":"query","schema":{"type":"string","enum":["asc","desc"]}},{"name":"page","in":"query","schema":{"default":1,"type":"number","minimum":1}},{"name":"limit","in":"query","schema":{"default":100,"type":"number","minimum":1}},{"name":"dateRange","in":"query","style":"deepObject","schema":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}}},{"name":"refresh","in":"query","schema":{"type":"boolean"}},{"name":"status","in":"query","schema":{"type":"string","enum":["ONBOARDING","ACTIVE","DORMANT","SUSPENDED","INACTIVE","ARCHIVED"]}},{"name":"excludeArchived","in":"query","description":"When true, archived customers are excluded from results. Ignored if status is provided.","schema":{"type":"boolean"}},{"name":"customerName","in":"query","schema":{"type":"string"}},{"name":"sortBy","in":"query","schema":{"type":"string","enum":["customernumber","name"]}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["status","kind","legalEntityType","name","legalName","email","financeEmail","contact","contactEmail","phone","regNo","erpId","crmId","address1","address2","zipCode","city","state","countryCode","vat.number","vat.type"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"anyOf":[{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},{"type":"string","const":""}]},"legalName":{"type":"string","minLength":1},"url":{"anyOf":[{"type":["string","null"]},{"type":"string","const":""}]},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"description":"VAT number and type; a company's only, dropped for an individual","anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"description":"Address 1","type":["string","null"]},"address2":{"description":"Address 2","type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"anyOf":[{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},{"type":"string","const":""}]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]},"erpId":{"type":["string","null"]},"crmId":{"type":["string","null"]},"relatedCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"status":{"default":"ACTIVE","description":"Customer status","type":"string","enum":["ONBOARDING","ACTIVE","DORMANT","SUSPENDED","INACTIVE","ARCHIVED"]},"kind":{"default":"STANDARD","description":"STANDARD processes payments; PROVIDER is a payment provider the organization works with","type":"string","enum":["STANDARD","PROVIDER"]},"legalEntityType":{"default":"COMPANY","description":"COMPANY or INDIVIDUAL. Shared by every customer of the same legal entity","type":"string","enum":["COMPANY","INDIVIDUAL"]},"individual":{"description":"The person, when legalEntityType is INDIVIDUAL; legalName is then their first and last name","anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","organizationId","legalName","status","kind","legalEntityType","createdAt","updatedAt"],"additionalProperties":false}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/customers/{id}":{"get":{"summary":"Get a customer by ID","tags":["customers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"anyOf":[{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},{"type":"string","const":""}]},"legalName":{"type":"string","minLength":1},"url":{"anyOf":[{"type":["string","null"]},{"type":"string","const":""}]},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"description":"VAT number and type; a company's only, dropped for an individual","anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"description":"Address 1","type":["string","null"]},"address2":{"description":"Address 2","type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"anyOf":[{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},{"type":"string","const":""}]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]},"erpId":{"type":["string","null"]},"crmId":{"type":["string","null"]},"relatedCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"status":{"default":"ACTIVE","description":"Customer status","type":"string","enum":["ONBOARDING","ACTIVE","DORMANT","SUSPENDED","INACTIVE","ARCHIVED"]},"kind":{"default":"STANDARD","description":"STANDARD processes payments; PROVIDER is a payment provider the organization works with","type":"string","enum":["STANDARD","PROVIDER"]},"legalEntityType":{"default":"COMPANY","description":"COMPANY or INDIVIDUAL. Shared by every customer of the same legal entity","type":"string","enum":["COMPANY","INDIVIDUAL"]},"individual":{"description":"The person, when legalEntityType is INDIVIDUAL; legalName is then their first and last name","anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","organizationId","legalName","status","kind","legalEntityType","createdAt","updatedAt"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/organizations/customers":{"post":{"summary":"Create a new customer","tags":["customers"],"parameters":[{"name":"organizationId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"anyOf":[{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},{"type":"string","const":""}]},"legalName":{"type":"string","minLength":1},"url":{"anyOf":[{"type":["string","null"]},{"type":"string","const":""}]},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"description":"VAT number and type; a company's only, dropped for an individual","anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}}},{"type":"null"}]},"address1":{"description":"Address 1","type":["string","null"]},"address2":{"description":"Address 2","type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"anyOf":[{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},{"type":"string","const":""}]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":"string","description":"Who to contact at the customer: one or more addresses, comma-separated"},"erpId":{"type":["string","null"]},"crmId":{"type":["string","null"]},"relatedCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"status":{"default":"ACTIVE","description":"Customer status","type":"string","enum":["ONBOARDING","ACTIVE","DORMANT","SUSPENDED","INACTIVE","ARCHIVED"]},"kind":{"default":"STANDARD","description":"STANDARD processes payments; PROVIDER is a payment provider the organization works with","type":"string","enum":["STANDARD","PROVIDER"]},"legalEntityType":{"default":"COMPANY","description":"COMPANY or INDIVIDUAL. Shared by every customer of the same legal entity","type":"string","enum":["COMPANY","INDIVIDUAL"]},"individual":{"description":"The person, when legalEntityType is INDIVIDUAL; legalName is then their first and last name","anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"]},{"type":"null"}]}},"required":["legalName","contactEmail"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"anyOf":[{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},{"type":"string","const":""}]},"legalName":{"type":"string","minLength":1},"url":{"anyOf":[{"type":["string","null"]},{"type":"string","const":""}]},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"description":"VAT number and type; a company's only, dropped for an individual","anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"description":"Address 1","type":["string","null"]},"address2":{"description":"Address 2","type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"anyOf":[{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},{"type":"string","const":""}]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]},"erpId":{"type":["string","null"]},"crmId":{"type":["string","null"]},"relatedCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"status":{"default":"ACTIVE","description":"Customer status","type":"string","enum":["ONBOARDING","ACTIVE","DORMANT","SUSPENDED","INACTIVE","ARCHIVED"]},"kind":{"default":"STANDARD","description":"STANDARD processes payments; PROVIDER is a payment provider the organization works with","type":"string","enum":["STANDARD","PROVIDER"]},"legalEntityType":{"default":"COMPANY","description":"COMPANY or INDIVIDUAL. Shared by every customer of the same legal entity","type":"string","enum":["COMPANY","INDIVIDUAL"]},"individual":{"description":"The person, when legalEntityType is INDIVIDUAL; legalName is then their first and last name","anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","organizationId","legalName","status","kind","legalEntityType","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/organizations/customers/acceptance":{"get":{"summary":"The customers the organization takes on: merchants and/or payment providers, companies and/or individuals","tags":["customers"],"parameters":[{"name":"organizationId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"acceptedCustomerKinds":{"type":"array","items":{"type":"string","enum":["STANDARD","PROVIDER"]}},"acceptedLegalEntityTypes":{"type":"array","items":{"type":"string","enum":["COMPANY","INDIVIDUAL"]}}},"required":["acceptedCustomerKinds","acceptedLegalEntityTypes"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/organizations/customers/{id}":{"patch":{"description":"Company fields (legal entity type, the individual, legal name, registration and VAT number, address, website, phone, email) belong to the profile every customer of the same company or person shares: changing one here saves a new version of it.","summary":"Update a customer","tags":["customers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"anyOf":[{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},{"type":"string","const":""}]},"legalName":{"type":"string","minLength":1},"url":{"anyOf":[{"type":["string","null"]},{"type":"string","const":""}]},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"description":"VAT number and type; a company's only, dropped for an individual","anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}}},{"type":"null"}]},"address1":{"description":"Address 1","type":["string","null"]},"address2":{"description":"Address 2","type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"anyOf":[{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},{"type":"string","const":""}]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":"string","description":"Who to contact at the customer: one or more addresses, comma-separated"},"erpId":{"type":["string","null"]},"crmId":{"type":["string","null"]},"relatedCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"status":{"type":"string","enum":["ONBOARDING","ACTIVE","DORMANT","SUSPENDED","INACTIVE","ARCHIVED"],"description":"Customer status"},"legalEntityType":{"type":"string","enum":["COMPANY","INDIVIDUAL"],"description":"COMPANY or INDIVIDUAL. Shared by every customer of the same legal entity"},"individual":{"description":"The person, when legalEntityType is INDIVIDUAL; legalName is then their first and last name","anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"]},{"type":"null"}]}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"anyOf":[{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},{"type":"string","const":""}]},"legalName":{"type":"string","minLength":1},"url":{"anyOf":[{"type":["string","null"]},{"type":"string","const":""}]},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"description":"VAT number and type; a company's only, dropped for an individual","anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"description":"Address 1","type":["string","null"]},"address2":{"description":"Address 2","type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"anyOf":[{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},{"type":"string","const":""}]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]},"erpId":{"type":["string","null"]},"crmId":{"type":["string","null"]},"relatedCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"status":{"default":"ACTIVE","description":"Customer status","type":"string","enum":["ONBOARDING","ACTIVE","DORMANT","SUSPENDED","INACTIVE","ARCHIVED"]},"kind":{"default":"STANDARD","description":"STANDARD processes payments; PROVIDER is a payment provider the organization works with","type":"string","enum":["STANDARD","PROVIDER"]},"legalEntityType":{"default":"COMPANY","description":"COMPANY or INDIVIDUAL. Shared by every customer of the same legal entity","type":"string","enum":["COMPANY","INDIVIDUAL"]},"individual":{"description":"The person, when legalEntityType is INDIVIDUAL; legalName is then their first and last name","anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","organizationId","legalName","status","kind","legalEntityType","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string","enum":["NOT_CONTROLLER","VERSION_CONFLICT"]}},"required":["message","code"],"additionalProperties":false}}}}}},"delete":{"summary":"Delete a customer","tags":["customers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"anyOf":[{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},{"type":"string","const":""}]},"legalName":{"type":"string","minLength":1},"url":{"anyOf":[{"type":["string","null"]},{"type":"string","const":""}]},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"description":"VAT number and type; a company's only, dropped for an individual","anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"description":"Address 1","type":["string","null"]},"address2":{"description":"Address 2","type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"anyOf":[{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},{"type":"string","const":""}]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]},"erpId":{"type":["string","null"]},"crmId":{"type":["string","null"]},"relatedCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"status":{"default":"ACTIVE","description":"Customer status","type":"string","enum":["ONBOARDING","ACTIVE","DORMANT","SUSPENDED","INACTIVE","ARCHIVED"]},"kind":{"default":"STANDARD","description":"STANDARD processes payments; PROVIDER is a payment provider the organization works with","type":"string","enum":["STANDARD","PROVIDER"]},"legalEntityType":{"default":"COMPANY","description":"COMPANY or INDIVIDUAL. Shared by every customer of the same legal entity","type":"string","enum":["COMPANY","INDIVIDUAL"]},"individual":{"description":"The person, when legalEntityType is INDIVIDUAL; legalName is then their first and last name","anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","organizationId","legalName","status","kind","legalEntityType","createdAt","updatedAt"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/customers/{id}/act-as":{"post":{"description":"Checks that the caller may work in this customer with their organization roles and returns the context to select for it. Users only.","summary":"Act on behalf of a customer","tags":["customers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"description":{"type":"string"},"providerDataVisible":{"type":"boolean"},"customerKind":{"type":"string","enum":["STANDARD","PROVIDER"]},"liveAllowed":{"type":"boolean"},"modeAccess":{"type":"string","enum":["both","test","live"]},"applications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slugId":{"type":["string","null"]}},"required":["id","name","slugId"],"additionalProperties":false}}},"required":["context","name"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/customers/{id}/legal-entity":{"get":{"summary":"Get the company profile shared by every customer of this company","tags":["customers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"origin":{"type":"string","enum":["MIGRATED","OPERATOR","ERP_SYNC","PROVISIONED","SELF_SERVICE","ORGANIZATION"]},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string"},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["personKey","roles","firstName","lastName"],"additionalProperties":false}},"owners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string"},"addedInVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byYourOrganization":{"type":"boolean"},"uploadedByName":{"type":["string","null"]}},"required":["id","kind","fileName","fileType","fileSize","uploadedAt","addedInVersion","byYourOrganization","uploadedByName"],"additionalProperties":false}},"documentStorage":{"type":"boolean"},"updatedAt":{"type":"string"},"isController":{"type":"boolean"},"sharedWithYou":{"anyOf":[{"type":"object","properties":{"consentedAt":{"type":"string"}},"required":["consentedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["id","version","origin","company","people","owners","documents","documentStorage","updatedAt","isController","sharedWithYou"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"put":{"description":"Replaces company details, people and corporate owners. The change is seen by every customer of the same company.","summary":"Save a new version of the shared company profile","tags":["customers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"expectedVersion":{"type":"integer","minimum":1,"maximum":9007199254740991},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"]},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}}},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"]},"people":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string","minLength":1,"maxLength":64},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["roles","firstName","lastName"]}},"owners":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"]}}},"required":["expectedVersion","company","people","owners"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"origin":{"type":"string","enum":["MIGRATED","OPERATOR","ERP_SYNC","PROVISIONED","SELF_SERVICE","ORGANIZATION"]},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string"},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["personKey","roles","firstName","lastName"],"additionalProperties":false}},"owners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string"},"addedInVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byYourOrganization":{"type":"boolean"},"uploadedByName":{"type":["string","null"]}},"required":["id","kind","fileName","fileType","fileSize","uploadedAt","addedInVersion","byYourOrganization","uploadedByName"],"additionalProperties":false}},"documentStorage":{"type":"boolean"},"updatedAt":{"type":"string"},"isController":{"type":"boolean"},"sharedWithYou":{"anyOf":[{"type":"object","properties":{"consentedAt":{"type":"string"}},"required":["consentedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["id","version","origin","company","people","owners","documents","documentStorage","updatedAt","isController","sharedWithYou"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string","enum":["NOT_CONTROLLER","VERSION_CONFLICT"]}},"required":["message","code"],"additionalProperties":false}}}}}}},"/api/v1/customers/{id}/legal-entity/versions":{"get":{"summary":"List the versions of the shared company profile, newest first","tags":["customers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"changeReason":{"type":"string","enum":["MIGRATED","CREATED","DETAILS_CHANGE","ADDRESS_CHANGE","DIRECTOR_CHANGE","UBO_CHANGE","PEOPLE_CHANGE","OWNERSHIP_CHANGE","DOCUMENTS_CHANGE","MERGED"]},"changedFields":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"byYourOrganization":{"type":"boolean"},"createdByName":{"type":["string","null"]}},"required":["version","changeReason","changedFields","createdAt","byYourOrganization","createdByName"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/customers/{id}/legal-entity/shares":{"get":{"summary":"The providers this customer keeps up to date with its company profile","tags":["customers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"organizationName":{"type":"string"},"accountName":{"type":["string","null"]},"applicationId":{"type":["string","null"]},"consentedAt":{"type":"string"},"revokedAt":{"type":["string","null"]}},"required":["id","organizationName","accountName","applicationId","consentedAt","revokedAt"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/customers/{id}/legal-entity/shares/{shareId}/revoke":{"post":{"description":"The provider keeps the profile as it is now, as its own record; later changes no longer reach it.","summary":"Stop keeping a provider up to date","tags":["customers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"shareId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationName":{"type":"string"},"accountName":{"type":["string","null"]},"applicationId":{"type":["string","null"]},"consentedAt":{"type":"string"},"revokedAt":{"type":["string","null"]}},"required":["id","organizationName","accountName","applicationId","consentedAt","revokedAt"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/customers/{id}/legal-entity/documents":{"post":{"summary":"Add a company document, as a new version of the shared profile","tags":["customers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"expectedVersion":{"type":"integer","minimum":1,"maximum":9007199254740991},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string","minLength":1,"maxLength":200},"fileType":{"type":"string","enum":["application/pdf","image/png","image/jpeg","image/jpg"]},"contentBase64":{"type":"string","minLength":1,"maxLength":13981018}},"required":["expectedVersion","kind","fileName","fileType","contentBase64"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"origin":{"type":"string","enum":["MIGRATED","OPERATOR","ERP_SYNC","PROVISIONED","SELF_SERVICE","ORGANIZATION"]},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string"},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["personKey","roles","firstName","lastName"],"additionalProperties":false}},"owners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string"},"addedInVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byYourOrganization":{"type":"boolean"},"uploadedByName":{"type":["string","null"]}},"required":["id","kind","fileName","fileType","fileSize","uploadedAt","addedInVersion","byYourOrganization","uploadedByName"],"additionalProperties":false}},"documentStorage":{"type":"boolean"},"updatedAt":{"type":"string"},"isController":{"type":"boolean"},"sharedWithYou":{"anyOf":[{"type":"object","properties":{"consentedAt":{"type":"string"}},"required":["consentedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["id","version","origin","company","people","owners","documents","documentStorage","updatedAt","isController","sharedWithYou"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string","enum":["NOT_CONTROLLER","VERSION_CONFLICT"]}},"required":["message","code"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/customers/{id}/legal-entity/documents/{documentId}/remove":{"post":{"summary":"Remove a company document, as a new version; earlier versions keep it","tags":["customers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"documentId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"expectedVersion":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["expectedVersion"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"origin":{"type":"string","enum":["MIGRATED","OPERATOR","ERP_SYNC","PROVISIONED","SELF_SERVICE","ORGANIZATION"]},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string"},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["personKey","roles","firstName","lastName"],"additionalProperties":false}},"owners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string"},"addedInVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byYourOrganization":{"type":"boolean"},"uploadedByName":{"type":["string","null"]}},"required":["id","kind","fileName","fileType","fileSize","uploadedAt","addedInVersion","byYourOrganization","uploadedByName"],"additionalProperties":false}},"documentStorage":{"type":"boolean"},"updatedAt":{"type":"string"},"isController":{"type":"boolean"},"sharedWithYou":{"anyOf":[{"type":"object","properties":{"consentedAt":{"type":"string"}},"required":["consentedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["id","version","origin","company","people","owners","documents","documentStorage","updatedAt","isController","sharedWithYou"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string","enum":["NOT_CONTROLLER","VERSION_CONFLICT"]}},"required":["message","code"],"additionalProperties":false}}}}}}},"/api/v1/customers/{id}/legal-entity/documents/{documentId}/download":{"get":{"summary":"Download a company document — one of any version of the customer's company profile","tags":["customers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"documentId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/customers/{id}/legal-entity/versions/{version}":{"get":{"summary":"Get one version of the shared company profile","tags":["customers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"changeReason":{"type":"string","enum":["MIGRATED","CREATED","DETAILS_CHANGE","ADDRESS_CHANGE","DIRECTOR_CHANGE","UBO_CHANGE","PEOPLE_CHANGE","OWNERSHIP_CHANGE","DOCUMENTS_CHANGE","MERGED"]},"changedFields":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"byYourOrganization":{"type":"boolean"},"createdByName":{"type":["string","null"]},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string"},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["personKey","roles","firstName","lastName"],"additionalProperties":false}},"owners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string"},"addedInVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byYourOrganization":{"type":"boolean"},"uploadedByName":{"type":["string","null"]}},"required":["id","kind","fileName","fileType","fileSize","uploadedAt","addedInVersion","byYourOrganization","uploadedByName"],"additionalProperties":false}}},"required":["version","changeReason","changedFields","createdAt","byYourOrganization","createdByName","company","people","owners","documents"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/kyb-reviews":{"get":{"summary":"Reviews of this organization's customers, newest first","tags":["kybReviews"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"customerId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"sort","in":"query","schema":{"type":"string","enum":["asc","desc"]}},{"name":"page","in":"query","schema":{"default":1,"type":"number","minimum":1}},{"name":"limit","in":"query","schema":{"default":100,"type":"number","minimum":1}},{"name":"dateRange","in":"query","style":"deepObject","schema":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}}},{"name":"refresh","in":"query","schema":{"type":"boolean"}},{"name":"open","in":"query","schema":{"type":"boolean"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["status","trigger","changeReason","riskRating","customerName","dueAt","createdAt"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"customerId":{"type":"string"},"customerName":{"type":"string"},"status":{"type":"string","enum":["REVIEW_REQUIRED","IN_REVIEW","INFO_REQUESTED","APPROVED","REJECTED","SUPERSEDED"]},"trigger":{"type":"string","enum":["ENTITY_CHANGE","SCHEDULED","MANUAL","ONBOARDING"]},"changeReason":{"anyOf":[{"type":"string","enum":["MIGRATED","CREATED","DETAILS_CHANGE","ADDRESS_CHANGE","DIRECTOR_CHANGE","UBO_CHANGE","PEOPLE_CHANGE","OWNERSHIP_CHANGE","DOCUMENTS_CHANGE","MERGED"]},{"type":"null"}]},"entityVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"riskRating":{"anyOf":[{"type":"string","enum":["LOW","MEDIUM","HIGH"]},{"type":"null"}]},"dueAt":{"type":["string","null"]},"assignedToName":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","customerId","customerName","status","trigger","changeReason","entityVersion","riskRating","dueAt","assignedToName","decidedAt","createdAt"],"additionalProperties":false}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"post":{"summary":"Open a review of a customer by hand","tags":["kybReviews"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"note":{"type":"string","maxLength":2000}},"required":["customerId"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"customerId":{"type":"string"},"customerName":{"type":"string"},"status":{"type":"string","enum":["REVIEW_REQUIRED","IN_REVIEW","INFO_REQUESTED","APPROVED","REJECTED","SUPERSEDED"]},"trigger":{"type":"string","enum":["ENTITY_CHANGE","SCHEDULED","MANUAL","ONBOARDING"]},"changeReason":{"anyOf":[{"type":"string","enum":["MIGRATED","CREATED","DETAILS_CHANGE","ADDRESS_CHANGE","DIRECTOR_CHANGE","UBO_CHANGE","PEOPLE_CHANGE","OWNERSHIP_CHANGE","DOCUMENTS_CHANGE","MERGED"]},{"type":"null"}]},"entityVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"riskRating":{"anyOf":[{"type":"string","enum":["LOW","MEDIUM","HIGH"]},{"type":"null"}]},"dueAt":{"type":["string","null"]},"assignedToName":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","customerId","customerName","status","trigger","changeReason","entityVersion","riskRating","dueAt","assignedToName","decidedAt","createdAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/kyb-reviews/pending-count":{"get":{"summary":"How many reviews are open, and how many of them are overdue — the nav badge","tags":["kybReviews"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number"},"overdue":{"type":"number"}},"required":["count","overdue"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/kyb-reviews/summary":{"get":{"summary":"A customer's effective review, its next review date and its open review","tags":["kybReviews"],"parameters":[{"name":"customerId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"customerId":{"type":"string"},"effective":{"anyOf":[{"type":"object","properties":{"reviewId":{"type":"string"},"riskRating":{"anyOf":[{"type":"string","enum":["LOW","MEDIUM","HIGH"]},{"type":"null"}]},"entityVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"decidedAt":{"type":["string","null"]}},"required":["reviewId","riskRating","entityVersion","decidedAt"],"additionalProperties":false},{"type":"null"}]},"nextReviewAt":{"type":["string","null"]},"open":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"customerId":{"type":"string"},"customerName":{"type":"string"},"status":{"type":"string","enum":["REVIEW_REQUIRED","IN_REVIEW","INFO_REQUESTED","APPROVED","REJECTED","SUPERSEDED"]},"trigger":{"type":"string","enum":["ENTITY_CHANGE","SCHEDULED","MANUAL","ONBOARDING"]},"changeReason":{"anyOf":[{"type":"string","enum":["MIGRATED","CREATED","DETAILS_CHANGE","ADDRESS_CHANGE","DIRECTOR_CHANGE","UBO_CHANGE","PEOPLE_CHANGE","OWNERSHIP_CHANGE","DOCUMENTS_CHANGE","MERGED"]},{"type":"null"}]},"entityVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"riskRating":{"anyOf":[{"type":"string","enum":["LOW","MEDIUM","HIGH"]},{"type":"null"}]},"dueAt":{"type":["string","null"]},"assignedToName":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","customerId","customerName","status","trigger","changeReason","entityVersion","riskRating","dueAt","assignedToName","decidedAt","createdAt"],"additionalProperties":false},{"type":"null"}]}},"required":["customerId","effective","nextReviewAt","open"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/kyb-reviews/{id}":{"get":{"summary":"One review, with the version under review and the one to compare it with","tags":["kybReviews"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"customerId":{"type":"string"},"customerName":{"type":"string"},"status":{"type":"string","enum":["REVIEW_REQUIRED","IN_REVIEW","INFO_REQUESTED","APPROVED","REJECTED","SUPERSEDED"]},"trigger":{"type":"string","enum":["ENTITY_CHANGE","SCHEDULED","MANUAL","ONBOARDING"]},"changeReason":{"anyOf":[{"type":"string","enum":["MIGRATED","CREATED","DETAILS_CHANGE","ADDRESS_CHANGE","DIRECTOR_CHANGE","UBO_CHANGE","PEOPLE_CHANGE","OWNERSHIP_CHANGE","DOCUMENTS_CHANGE","MERGED"]},{"type":"null"}]},"entityVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"riskRating":{"anyOf":[{"type":"string","enum":["LOW","MEDIUM","HIGH"]},{"type":"null"}]},"dueAt":{"type":["string","null"]},"assignedToName":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"note":{"type":["string","null"]},"screeningNotes":{"type":["string","null"]},"decidedByName":{"type":["string","null"]},"previousReviewId":{"type":["string","null"]},"previousRiskRating":{"anyOf":[{"type":"string","enum":["LOW","MEDIUM","HIGH"]},{"type":"null"}]},"version":{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"changeReason":{"type":"string","enum":["MIGRATED","CREATED","DETAILS_CHANGE","ADDRESS_CHANGE","DIRECTOR_CHANGE","UBO_CHANGE","PEOPLE_CHANGE","OWNERSHIP_CHANGE","DOCUMENTS_CHANGE","MERGED"]},"changedFields":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"byYourOrganization":{"type":"boolean"},"createdByName":{"type":["string","null"]},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string"},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["personKey","roles","firstName","lastName"],"additionalProperties":false}},"owners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string"},"addedInVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byYourOrganization":{"type":"boolean"},"uploadedByName":{"type":["string","null"]}},"required":["id","kind","fileName","fileType","fileSize","uploadedAt","addedInVersion","byYourOrganization","uploadedByName"],"additionalProperties":false}}},"required":["version","changeReason","changedFields","createdAt","byYourOrganization","createdByName","company","people","owners","documents"],"additionalProperties":false},"baseline":{"anyOf":[{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"changeReason":{"type":"string","enum":["MIGRATED","CREATED","DETAILS_CHANGE","ADDRESS_CHANGE","DIRECTOR_CHANGE","UBO_CHANGE","PEOPLE_CHANGE","OWNERSHIP_CHANGE","DOCUMENTS_CHANGE","MERGED"]},"changedFields":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"byYourOrganization":{"type":"boolean"},"createdByName":{"type":["string","null"]},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string"},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["personKey","roles","firstName","lastName"],"additionalProperties":false}},"owners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string"},"addedInVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byYourOrganization":{"type":"boolean"},"uploadedByName":{"type":["string","null"]}},"required":["id","kind","fileName","fileType","fileSize","uploadedAt","addedInVersion","byYourOrganization","uploadedByName"],"additionalProperties":false}}},"required":["version","changeReason","changedFields","createdAt","byYourOrganization","createdByName","company","people","owners","documents"],"additionalProperties":false},{"type":"null"}]},"baselineKind":{"type":"string","enum":["LAST_APPROVED","PREVIOUS_VERSION","NONE"]},"isLatestVersion":{"type":"boolean"},"onboarding":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["DRAFT","SUBMITTED","INFO_REQUESTED","APPROVED","REJECTED"]},"founderEmail":{"type":["string","null"]},"noUboDeclared":{"type":"boolean"},"agreementTitle":{"type":["string","null"]},"agreementVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"acceptedName":{"type":["string","null"]},"acceptedAt":{"type":["string","null"]}},"required":["status","founderEmail","noUboDeclared","agreementTitle","agreementVersion","acceptedName","acceptedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["id","customerId","customerName","status","trigger","changeReason","entityVersion","riskRating","dueAt","assignedToName","decidedAt","createdAt","note","screeningNotes","decidedByName","previousReviewId","previousRiskRating","version","baseline","baselineKind","isLatestVersion"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/kyb-reviews/{id}/claim":{"post":{"summary":"Take an open review: it is IN_REVIEW and assigned to you","tags":["kybReviews"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"customerId":{"type":"string"},"customerName":{"type":"string"},"status":{"type":"string","enum":["REVIEW_REQUIRED","IN_REVIEW","INFO_REQUESTED","APPROVED","REJECTED","SUPERSEDED"]},"trigger":{"type":"string","enum":["ENTITY_CHANGE","SCHEDULED","MANUAL","ONBOARDING"]},"changeReason":{"anyOf":[{"type":"string","enum":["MIGRATED","CREATED","DETAILS_CHANGE","ADDRESS_CHANGE","DIRECTOR_CHANGE","UBO_CHANGE","PEOPLE_CHANGE","OWNERSHIP_CHANGE","DOCUMENTS_CHANGE","MERGED"]},{"type":"null"}]},"entityVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"riskRating":{"anyOf":[{"type":"string","enum":["LOW","MEDIUM","HIGH"]},{"type":"null"}]},"dueAt":{"type":["string","null"]},"assignedToName":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","customerId","customerName","status","trigger","changeReason","entityVersion","riskRating","dueAt","assignedToName","decidedAt","createdAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/kyb-reviews/{id}/decision":{"post":{"summary":"Approve (with a risk rating), reject, or ask the customer for information","tags":["kybReviews"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"type":"string","enum":["APPROVED","REJECTED","INFO_REQUESTED"]},"riskRating":{"type":"string","enum":["LOW","MEDIUM","HIGH"]},"screeningNotes":{"type":"string","maxLength":10000},"note":{"type":"string","maxLength":5000}},"required":["outcome"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"customerId":{"type":"string"},"customerName":{"type":"string"},"status":{"type":"string","enum":["REVIEW_REQUIRED","IN_REVIEW","INFO_REQUESTED","APPROVED","REJECTED","SUPERSEDED"]},"trigger":{"type":"string","enum":["ENTITY_CHANGE","SCHEDULED","MANUAL","ONBOARDING"]},"changeReason":{"anyOf":[{"type":"string","enum":["MIGRATED","CREATED","DETAILS_CHANGE","ADDRESS_CHANGE","DIRECTOR_CHANGE","UBO_CHANGE","PEOPLE_CHANGE","OWNERSHIP_CHANGE","DOCUMENTS_CHANGE","MERGED"]},{"type":"null"}]},"entityVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"riskRating":{"anyOf":[{"type":"string","enum":["LOW","MEDIUM","HIGH"]},{"type":"null"}]},"dueAt":{"type":["string","null"]},"assignedToName":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","customerId","customerName","status","trigger","changeReason","entityVersion","riskRating","dueAt","assignedToName","decidedAt","createdAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/onboarding/applications":{"get":{"summary":"The applications the caller started","tags":["onboarding"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"customerId":{"type":"string"},"organizationName":{"type":"string"},"signupCode":{"type":"string"},"status":{"type":"string","enum":["DRAFT","SUBMITTED","INFO_REQUESTED","APPROVED","REJECTED"]},"legalName":{"type":"string"},"kind":{"type":"string","enum":["STANDARD","PROVIDER"]},"legalEntityType":{"type":"string","enum":["COMPANY","INDIVIDUAL"]},"updatedAt":{"type":"string"}},"required":["id","customerId","organizationName","signupCode","status","legalName","kind","legalEntityType","updatedAt"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/onboarding/applications/{id}":{"get":{"summary":"One of the caller's applications","tags":["onboarding"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationName":{"type":"string"},"signupCode":{"type":"string"},"status":{"type":"string","enum":["DRAFT","SUBMITTED","INFO_REQUESTED","APPROVED","REJECTED"]},"customerId":{"type":"string"},"kind":{"type":"string","enum":["STANDARD","PROVIDER"]},"profile":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"origin":{"type":"string","enum":["MIGRATED","OPERATOR","ERP_SYNC","PROVISIONED","SELF_SERVICE","ORGANIZATION"]},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string"},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["personKey","roles","firstName","lastName"],"additionalProperties":false}},"owners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string"},"addedInVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byYourOrganization":{"type":"boolean"},"uploadedByName":{"type":["string","null"]}},"required":["id","kind","fileName","fileType","fileSize","uploadedAt","addedInVersion","byYourOrganization","uploadedByName"],"additionalProperties":false}},"documentStorage":{"type":"boolean"},"updatedAt":{"type":"string"},"isController":{"type":"boolean"},"sharedWithYou":{"anyOf":[{"type":"object","properties":{"consentedAt":{"type":"string"}},"required":["consentedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["id","version","origin","company","people","owners","documents","documentStorage","updatedAt","isController","sharedWithYou"],"additionalProperties":false},"noUboDeclared":{"type":"boolean"},"agreement":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"body":{"type":"string"},"publishedAt":{"type":"string"}},"required":["id","version","title","body","publishedAt"],"additionalProperties":false},{"type":"null"}]},"acceptance":{"anyOf":[{"type":"object","properties":{"agreementId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acceptedName":{"type":"string"},"acceptedAt":{"type":"string"}},"required":["agreementId","version","acceptedName","acceptedAt"],"additionalProperties":false},{"type":"null"}]},"checklist":{"type":"object","properties":{"company":{"type":"boolean"},"people":{"type":"boolean"},"agreement":{"type":"boolean"}},"required":["company","people","agreement"],"additionalProperties":false},"decisionNote":{"type":["string","null"]},"submittedAt":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"editable":{"type":"boolean"}},"required":["id","organizationName","signupCode","status","customerId","kind","profile","noUboDeclared","agreement","acceptance","checklist","decisionNote","submittedAt","decidedAt","editable"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/onboarding/programs/{code}/application":{"post":{"summary":"Start an application — another one, too: the company becomes a customer in onboarding, of the link's kind","tags":["onboarding"],"parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"]},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}}},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"]}},"required":["company"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationName":{"type":"string"},"signupCode":{"type":"string"},"status":{"type":"string","enum":["DRAFT","SUBMITTED","INFO_REQUESTED","APPROVED","REJECTED"]},"customerId":{"type":"string"},"kind":{"type":"string","enum":["STANDARD","PROVIDER"]},"profile":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"origin":{"type":"string","enum":["MIGRATED","OPERATOR","ERP_SYNC","PROVISIONED","SELF_SERVICE","ORGANIZATION"]},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string"},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["personKey","roles","firstName","lastName"],"additionalProperties":false}},"owners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string"},"addedInVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byYourOrganization":{"type":"boolean"},"uploadedByName":{"type":["string","null"]}},"required":["id","kind","fileName","fileType","fileSize","uploadedAt","addedInVersion","byYourOrganization","uploadedByName"],"additionalProperties":false}},"documentStorage":{"type":"boolean"},"updatedAt":{"type":"string"},"isController":{"type":"boolean"},"sharedWithYou":{"anyOf":[{"type":"object","properties":{"consentedAt":{"type":"string"}},"required":["consentedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["id","version","origin","company","people","owners","documents","documentStorage","updatedAt","isController","sharedWithYou"],"additionalProperties":false},"noUboDeclared":{"type":"boolean"},"agreement":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"body":{"type":"string"},"publishedAt":{"type":"string"}},"required":["id","version","title","body","publishedAt"],"additionalProperties":false},{"type":"null"}]},"acceptance":{"anyOf":[{"type":"object","properties":{"agreementId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acceptedName":{"type":"string"},"acceptedAt":{"type":"string"}},"required":["agreementId","version","acceptedName","acceptedAt"],"additionalProperties":false},{"type":"null"}]},"checklist":{"type":"object","properties":{"company":{"type":"boolean"},"people":{"type":"boolean"},"agreement":{"type":"boolean"}},"required":["company","people","agreement"],"additionalProperties":false},"decisionNote":{"type":["string","null"]},"submittedAt":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"editable":{"type":"boolean"}},"required":["id","organizationName","signupCode","status","customerId","kind","profile","noUboDeclared","agreement","acceptance","checklist","decisionNote","submittedAt","decidedAt","editable"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/onboarding/applications/{id}/company":{"put":{"summary":"Change the company details","tags":["onboarding"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"expectedVersion":{"type":"integer","minimum":1,"maximum":9007199254740991},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"]},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}}},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"]}},"required":["expectedVersion","company"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationName":{"type":"string"},"signupCode":{"type":"string"},"status":{"type":"string","enum":["DRAFT","SUBMITTED","INFO_REQUESTED","APPROVED","REJECTED"]},"customerId":{"type":"string"},"kind":{"type":"string","enum":["STANDARD","PROVIDER"]},"profile":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"origin":{"type":"string","enum":["MIGRATED","OPERATOR","ERP_SYNC","PROVISIONED","SELF_SERVICE","ORGANIZATION"]},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string"},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["personKey","roles","firstName","lastName"],"additionalProperties":false}},"owners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string"},"addedInVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byYourOrganization":{"type":"boolean"},"uploadedByName":{"type":["string","null"]}},"required":["id","kind","fileName","fileType","fileSize","uploadedAt","addedInVersion","byYourOrganization","uploadedByName"],"additionalProperties":false}},"documentStorage":{"type":"boolean"},"updatedAt":{"type":"string"},"isController":{"type":"boolean"},"sharedWithYou":{"anyOf":[{"type":"object","properties":{"consentedAt":{"type":"string"}},"required":["consentedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["id","version","origin","company","people","owners","documents","documentStorage","updatedAt","isController","sharedWithYou"],"additionalProperties":false},"noUboDeclared":{"type":"boolean"},"agreement":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"body":{"type":"string"},"publishedAt":{"type":"string"}},"required":["id","version","title","body","publishedAt"],"additionalProperties":false},{"type":"null"}]},"acceptance":{"anyOf":[{"type":"object","properties":{"agreementId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acceptedName":{"type":"string"},"acceptedAt":{"type":"string"}},"required":["agreementId","version","acceptedName","acceptedAt"],"additionalProperties":false},{"type":"null"}]},"checklist":{"type":"object","properties":{"company":{"type":"boolean"},"people":{"type":"boolean"},"agreement":{"type":"boolean"}},"required":["company","people","agreement"],"additionalProperties":false},"decisionNote":{"type":["string","null"]},"submittedAt":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"editable":{"type":"boolean"}},"required":["id","organizationName","signupCode","status","customerId","kind","profile","noUboDeclared","agreement","acceptance","checklist","decisionNote","submittedAt","decidedAt","editable"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string","enum":["NOT_CONTROLLER","VERSION_CONFLICT"]}},"required":["message","code"],"additionalProperties":false},{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}]}}}}}}},"/api/v1/onboarding/applications/{id}/people":{"put":{"summary":"Set the directors, beneficial owners and corporate owners","tags":["onboarding"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"expectedVersion":{"type":"integer","minimum":1,"maximum":9007199254740991},"people":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string","minLength":1,"maxLength":64},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["roles","firstName","lastName"]}},"owners":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"]}},"noUboDeclared":{"type":"boolean"}},"required":["expectedVersion","people","owners","noUboDeclared"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationName":{"type":"string"},"signupCode":{"type":"string"},"status":{"type":"string","enum":["DRAFT","SUBMITTED","INFO_REQUESTED","APPROVED","REJECTED"]},"customerId":{"type":"string"},"kind":{"type":"string","enum":["STANDARD","PROVIDER"]},"profile":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"origin":{"type":"string","enum":["MIGRATED","OPERATOR","ERP_SYNC","PROVISIONED","SELF_SERVICE","ORGANIZATION"]},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string"},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["personKey","roles","firstName","lastName"],"additionalProperties":false}},"owners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string"},"addedInVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byYourOrganization":{"type":"boolean"},"uploadedByName":{"type":["string","null"]}},"required":["id","kind","fileName","fileType","fileSize","uploadedAt","addedInVersion","byYourOrganization","uploadedByName"],"additionalProperties":false}},"documentStorage":{"type":"boolean"},"updatedAt":{"type":"string"},"isController":{"type":"boolean"},"sharedWithYou":{"anyOf":[{"type":"object","properties":{"consentedAt":{"type":"string"}},"required":["consentedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["id","version","origin","company","people","owners","documents","documentStorage","updatedAt","isController","sharedWithYou"],"additionalProperties":false},"noUboDeclared":{"type":"boolean"},"agreement":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"body":{"type":"string"},"publishedAt":{"type":"string"}},"required":["id","version","title","body","publishedAt"],"additionalProperties":false},{"type":"null"}]},"acceptance":{"anyOf":[{"type":"object","properties":{"agreementId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acceptedName":{"type":"string"},"acceptedAt":{"type":"string"}},"required":["agreementId","version","acceptedName","acceptedAt"],"additionalProperties":false},{"type":"null"}]},"checklist":{"type":"object","properties":{"company":{"type":"boolean"},"people":{"type":"boolean"},"agreement":{"type":"boolean"}},"required":["company","people","agreement"],"additionalProperties":false},"decisionNote":{"type":["string","null"]},"submittedAt":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"editable":{"type":"boolean"}},"required":["id","organizationName","signupCode","status","customerId","kind","profile","noUboDeclared","agreement","acceptance","checklist","decisionNote","submittedAt","decidedAt","editable"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string","enum":["NOT_CONTROLLER","VERSION_CONFLICT"]}},"required":["message","code"],"additionalProperties":false},{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}]}}}}}}},"/api/v1/onboarding/applications/{id}/documents":{"post":{"summary":"Add a company document","tags":["onboarding"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"expectedVersion":{"type":"integer","minimum":1,"maximum":9007199254740991},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string","minLength":1,"maxLength":200},"fileType":{"type":"string","enum":["application/pdf","image/png","image/jpeg","image/jpg"]},"contentBase64":{"type":"string","minLength":1,"maxLength":13981018}},"required":["expectedVersion","kind","fileName","fileType","contentBase64"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationName":{"type":"string"},"signupCode":{"type":"string"},"status":{"type":"string","enum":["DRAFT","SUBMITTED","INFO_REQUESTED","APPROVED","REJECTED"]},"customerId":{"type":"string"},"kind":{"type":"string","enum":["STANDARD","PROVIDER"]},"profile":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"origin":{"type":"string","enum":["MIGRATED","OPERATOR","ERP_SYNC","PROVISIONED","SELF_SERVICE","ORGANIZATION"]},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string"},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["personKey","roles","firstName","lastName"],"additionalProperties":false}},"owners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string"},"addedInVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byYourOrganization":{"type":"boolean"},"uploadedByName":{"type":["string","null"]}},"required":["id","kind","fileName","fileType","fileSize","uploadedAt","addedInVersion","byYourOrganization","uploadedByName"],"additionalProperties":false}},"documentStorage":{"type":"boolean"},"updatedAt":{"type":"string"},"isController":{"type":"boolean"},"sharedWithYou":{"anyOf":[{"type":"object","properties":{"consentedAt":{"type":"string"}},"required":["consentedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["id","version","origin","company","people","owners","documents","documentStorage","updatedAt","isController","sharedWithYou"],"additionalProperties":false},"noUboDeclared":{"type":"boolean"},"agreement":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"body":{"type":"string"},"publishedAt":{"type":"string"}},"required":["id","version","title","body","publishedAt"],"additionalProperties":false},{"type":"null"}]},"acceptance":{"anyOf":[{"type":"object","properties":{"agreementId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acceptedName":{"type":"string"},"acceptedAt":{"type":"string"}},"required":["agreementId","version","acceptedName","acceptedAt"],"additionalProperties":false},{"type":"null"}]},"checklist":{"type":"object","properties":{"company":{"type":"boolean"},"people":{"type":"boolean"},"agreement":{"type":"boolean"}},"required":["company","people","agreement"],"additionalProperties":false},"decisionNote":{"type":["string","null"]},"submittedAt":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"editable":{"type":"boolean"}},"required":["id","organizationName","signupCode","status","customerId","kind","profile","noUboDeclared","agreement","acceptance","checklist","decisionNote","submittedAt","decidedAt","editable"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string","enum":["NOT_CONTROLLER","VERSION_CONFLICT"]}},"required":["message","code"],"additionalProperties":false},{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}]}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/onboarding/applications/{id}/documents/{documentId}/remove":{"post":{"summary":"Remove a company document","tags":["onboarding"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"documentId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"expectedVersion":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["expectedVersion"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationName":{"type":"string"},"signupCode":{"type":"string"},"status":{"type":"string","enum":["DRAFT","SUBMITTED","INFO_REQUESTED","APPROVED","REJECTED"]},"customerId":{"type":"string"},"kind":{"type":"string","enum":["STANDARD","PROVIDER"]},"profile":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"origin":{"type":"string","enum":["MIGRATED","OPERATOR","ERP_SYNC","PROVISIONED","SELF_SERVICE","ORGANIZATION"]},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string"},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["personKey","roles","firstName","lastName"],"additionalProperties":false}},"owners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string"},"addedInVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byYourOrganization":{"type":"boolean"},"uploadedByName":{"type":["string","null"]}},"required":["id","kind","fileName","fileType","fileSize","uploadedAt","addedInVersion","byYourOrganization","uploadedByName"],"additionalProperties":false}},"documentStorage":{"type":"boolean"},"updatedAt":{"type":"string"},"isController":{"type":"boolean"},"sharedWithYou":{"anyOf":[{"type":"object","properties":{"consentedAt":{"type":"string"}},"required":["consentedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["id","version","origin","company","people","owners","documents","documentStorage","updatedAt","isController","sharedWithYou"],"additionalProperties":false},"noUboDeclared":{"type":"boolean"},"agreement":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"body":{"type":"string"},"publishedAt":{"type":"string"}},"required":["id","version","title","body","publishedAt"],"additionalProperties":false},{"type":"null"}]},"acceptance":{"anyOf":[{"type":"object","properties":{"agreementId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acceptedName":{"type":"string"},"acceptedAt":{"type":"string"}},"required":["agreementId","version","acceptedName","acceptedAt"],"additionalProperties":false},{"type":"null"}]},"checklist":{"type":"object","properties":{"company":{"type":"boolean"},"people":{"type":"boolean"},"agreement":{"type":"boolean"}},"required":["company","people","agreement"],"additionalProperties":false},"decisionNote":{"type":["string","null"]},"submittedAt":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"editable":{"type":"boolean"}},"required":["id","organizationName","signupCode","status","customerId","kind","profile","noUboDeclared","agreement","acceptance","checklist","decisionNote","submittedAt","decidedAt","editable"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"anyOf":[{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string","enum":["NOT_CONTROLLER","VERSION_CONFLICT"]}},"required":["message","code"],"additionalProperties":false},{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}]}}}}}}},"/api/v1/onboarding/applications/{id}/documents/{documentId}/download":{"get":{"summary":"Download a company document of the application","tags":["onboarding"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"documentId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/onboarding/applications/{id}/agreement":{"post":{"summary":"Accept the organization's agreement for the application's kind of customer","tags":["onboarding"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"agreementId":{"type":"string"},"acceptedName":{"type":"string","minLength":2,"maxLength":200}},"required":["agreementId","acceptedName"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationName":{"type":"string"},"signupCode":{"type":"string"},"status":{"type":"string","enum":["DRAFT","SUBMITTED","INFO_REQUESTED","APPROVED","REJECTED"]},"customerId":{"type":"string"},"kind":{"type":"string","enum":["STANDARD","PROVIDER"]},"profile":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"origin":{"type":"string","enum":["MIGRATED","OPERATOR","ERP_SYNC","PROVISIONED","SELF_SERVICE","ORGANIZATION"]},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string"},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["personKey","roles","firstName","lastName"],"additionalProperties":false}},"owners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string"},"addedInVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byYourOrganization":{"type":"boolean"},"uploadedByName":{"type":["string","null"]}},"required":["id","kind","fileName","fileType","fileSize","uploadedAt","addedInVersion","byYourOrganization","uploadedByName"],"additionalProperties":false}},"documentStorage":{"type":"boolean"},"updatedAt":{"type":"string"},"isController":{"type":"boolean"},"sharedWithYou":{"anyOf":[{"type":"object","properties":{"consentedAt":{"type":"string"}},"required":["consentedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["id","version","origin","company","people","owners","documents","documentStorage","updatedAt","isController","sharedWithYou"],"additionalProperties":false},"noUboDeclared":{"type":"boolean"},"agreement":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"body":{"type":"string"},"publishedAt":{"type":"string"}},"required":["id","version","title","body","publishedAt"],"additionalProperties":false},{"type":"null"}]},"acceptance":{"anyOf":[{"type":"object","properties":{"agreementId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acceptedName":{"type":"string"},"acceptedAt":{"type":"string"}},"required":["agreementId","version","acceptedName","acceptedAt"],"additionalProperties":false},{"type":"null"}]},"checklist":{"type":"object","properties":{"company":{"type":"boolean"},"people":{"type":"boolean"},"agreement":{"type":"boolean"}},"required":["company","people","agreement"],"additionalProperties":false},"decisionNote":{"type":["string","null"]},"submittedAt":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"editable":{"type":"boolean"}},"required":["id","organizationName","signupCode","status","customerId","kind","profile","noUboDeclared","agreement","acceptance","checklist","decisionNote","submittedAt","decidedAt","editable"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/onboarding/applications/{id}/submit":{"post":{"summary":"Submit the application for review","tags":["onboarding"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationName":{"type":"string"},"signupCode":{"type":"string"},"status":{"type":"string","enum":["DRAFT","SUBMITTED","INFO_REQUESTED","APPROVED","REJECTED"]},"customerId":{"type":"string"},"kind":{"type":"string","enum":["STANDARD","PROVIDER"]},"profile":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"origin":{"type":"string","enum":["MIGRATED","OPERATOR","ERP_SYNC","PROVISIONED","SELF_SERVICE","ORGANIZATION"]},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string"},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["personKey","roles","firstName","lastName"],"additionalProperties":false}},"owners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string"},"addedInVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byYourOrganization":{"type":"boolean"},"uploadedByName":{"type":["string","null"]}},"required":["id","kind","fileName","fileType","fileSize","uploadedAt","addedInVersion","byYourOrganization","uploadedByName"],"additionalProperties":false}},"documentStorage":{"type":"boolean"},"updatedAt":{"type":"string"},"isController":{"type":"boolean"},"sharedWithYou":{"anyOf":[{"type":"object","properties":{"consentedAt":{"type":"string"}},"required":["consentedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["id","version","origin","company","people","owners","documents","documentStorage","updatedAt","isController","sharedWithYou"],"additionalProperties":false},"noUboDeclared":{"type":"boolean"},"agreement":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"body":{"type":"string"},"publishedAt":{"type":"string"}},"required":["id","version","title","body","publishedAt"],"additionalProperties":false},{"type":"null"}]},"acceptance":{"anyOf":[{"type":"object","properties":{"agreementId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acceptedName":{"type":"string"},"acceptedAt":{"type":"string"}},"required":["agreementId","version","acceptedName","acceptedAt"],"additionalProperties":false},{"type":"null"}]},"checklist":{"type":"object","properties":{"company":{"type":"boolean"},"people":{"type":"boolean"},"agreement":{"type":"boolean"}},"required":["company","people","agreement"],"additionalProperties":false},"decisionNote":{"type":["string","null"]},"submittedAt":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"editable":{"type":"boolean"}},"required":["id","organizationName","signupCode","status","customerId","kind","profile","noUboDeclared","agreement","acceptance","checklist","decisionNote","submittedAt","decidedAt","editable"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/onboarding-program":{"get":{"summary":"This organization's signup links, one per kind of customer: on/off, code, agreement","tags":["onboardingAdmin"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"links":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["STANDARD","PROVIDER"]},"enabled":{"type":"boolean"},"signupCode":{"type":"string"},"agreement":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"body":{"type":"string"},"publishedAt":{"type":"string"}},"required":["id","version","title","body","publishedAt"],"additionalProperties":false},{"type":"null"}]},"agreements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"body":{"type":"string"},"publishedAt":{"type":"string"}},"required":["id","version","title","body","publishedAt"],"additionalProperties":false}}},"required":["kind","enabled","signupCode","agreement","agreements"],"additionalProperties":false}}},"required":["links"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"put":{"summary":"Switch self-signup for one kind of customer on or off","tags":["onboardingAdmin"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["STANDARD","PROVIDER"]},"enabled":{"type":"boolean"}},"required":["kind","enabled"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"links":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["STANDARD","PROVIDER"]},"enabled":{"type":"boolean"},"signupCode":{"type":"string"},"agreement":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"body":{"type":"string"},"publishedAt":{"type":"string"}},"required":["id","version","title","body","publishedAt"],"additionalProperties":false},{"type":"null"}]},"agreements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"body":{"type":"string"},"publishedAt":{"type":"string"}},"required":["id","version","title","body","publishedAt"],"additionalProperties":false}}},"required":["kind","enabled","signupCode","agreement","agreements"],"additionalProperties":false}}},"required":["links"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/onboarding-program/rotate-code":{"post":{"summary":"Retire one kind's signup link and issue a new one","tags":["onboardingAdmin"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["STANDARD","PROVIDER"]}},"required":["kind"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"links":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["STANDARD","PROVIDER"]},"enabled":{"type":"boolean"},"signupCode":{"type":"string"},"agreement":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"body":{"type":"string"},"publishedAt":{"type":"string"}},"required":["id","version","title","body","publishedAt"],"additionalProperties":false},{"type":"null"}]},"agreements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"body":{"type":"string"},"publishedAt":{"type":"string"}},"required":["id","version","title","body","publishedAt"],"additionalProperties":false}}},"required":["kind","enabled","signupCode","agreement","agreements"],"additionalProperties":false}}},"required":["links"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/onboarding-program/agreements":{"post":{"summary":"Publish a new version of one kind's customer agreement","tags":["onboardingAdmin"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["STANDARD","PROVIDER"]},"title":{"type":"string","minLength":1,"maxLength":200},"body":{"type":"string","minLength":20,"maxLength":100000}},"required":["kind","title","body"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"links":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["STANDARD","PROVIDER"]},"enabled":{"type":"boolean"},"signupCode":{"type":"string"},"agreement":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"body":{"type":"string"},"publishedAt":{"type":"string"}},"required":["id","version","title","body","publishedAt"],"additionalProperties":false},{"type":"null"}]},"agreements":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"title":{"type":"string"},"body":{"type":"string"},"publishedAt":{"type":"string"}},"required":["id","version","title","body","publishedAt"],"additionalProperties":false}}},"required":["kind","enabled","signupCode","agreement","agreements"],"additionalProperties":false}}},"required":["links"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/onboarding-program/applications":{"get":{"summary":"Applications through this organization's signup link, newest first","tags":["onboardingAdmin"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"customerId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"sort","in":"query","schema":{"type":"string","enum":["asc","desc"]}},{"name":"page","in":"query","schema":{"default":1,"type":"number","minimum":1}},{"name":"limit","in":"query","schema":{"default":100,"type":"number","minimum":1}},{"name":"dateRange","in":"query","style":"deepObject","schema":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}}},{"name":"refresh","in":"query","schema":{"type":"boolean"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["status","kind","legalEntityType","legalName","founderEmail","createdAt","submittedAt"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"customerId":{"type":"string"},"legalName":{"type":"string"},"kind":{"type":"string","enum":["STANDARD","PROVIDER"]},"legalEntityType":{"type":"string","enum":["COMPANY","INDIVIDUAL"]},"founderEmail":{"type":["string","null"]},"status":{"type":"string","enum":["DRAFT","SUBMITTED","INFO_REQUESTED","APPROVED","REJECTED"]},"reviewId":{"type":["string","null"]},"submittedAt":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","customerId","legalName","kind","legalEntityType","founderEmail","status","reviewId","submittedAt","decidedAt","createdAt","updatedAt"],"additionalProperties":false}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/public/onboarding/programs/{code}":{"get":{"summary":"Whose signup link this is, and for which kind of customer","tags":["onboardingPublic"],"parameters":[{"name":"code","in":"path","required":true,"schema":{"type":"string","minLength":1,"maxLength":64}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"organizationName":{"type":"string"},"kind":{"type":"string","enum":["STANDARD","PROVIDER"]},"enabled":{"type":"boolean"},"acceptedLegalEntityTypes":{"type":"array","items":{"type":"string","enum":["COMPANY","INDIVIDUAL"]}}},"required":["organizationName","kind","enabled","acceptedLegalEntityTypes"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/dashboards":{"get":{"description":"Returns a paginated list of dashboards the user can access based on their current context and permissions","summary":"List dashboards accessible in current context","tags":["dashboards"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"customerId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"sort","in":"query","schema":{"type":"string","enum":["asc","desc"]}},{"name":"page","in":"query","schema":{"default":1,"type":"number","minimum":1}},{"name":"limit","in":"query","schema":{"default":100,"type":"number","minimum":1}},{"name":"dateRange","in":"query","style":"deepObject","schema":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}}},{"name":"refresh","in":"query","schema":{"type":"boolean"}},{"name":"sortBy","in":"query","schema":{"type":"string","enum":["customernumber","name"]}},{"name":"visibility","in":"query","schema":{"type":"string","enum":["private","internal","public"]}},{"name":"count","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"default":"organization","type":"string","enum":["organization","partner","customer","user"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"visibility":{"default":"internal","type":"string","enum":["private","internal","public"]},"name":{"type":"string","minLength":1},"description":{"type":"string"},"layoutType":{"default":"grid","type":"string","enum":["grid","flex","fixed"]},"isHomePage":{"default":false,"type":"boolean"},"globalFilters":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"date_range"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"default":{"type":"object","properties":{"preset":{"type":"string"},"custom":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"additionalProperties":false},"timezone":{"type":"string"}},"additionalProperties":false}},"required":["id","type","label","enabled"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"text"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"placeholder":{"type":"string"},"default":{"type":"string"}},"required":["id","type","label","enabled"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"select"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"default":{"type":"string"}},"required":["id","type","label","enabled","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"multi_select"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"default":{"type":"array","items":{"type":"string"}}},"required":["id","type","label","enabled","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"number_range"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"default":{"type":"object","properties":{"from":{"type":"number"},"to":{"type":"number"}},"additionalProperties":false}},"required":["id","type","label","enabled"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"search_filter"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"placeholder":{"type":"string"},"default":{"type":"string"},"negate":{"type":"boolean"}},"required":["id","type","label","enabled"],"additionalProperties":false}]}},"widgets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dashboardId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"widgetType":{"type":"string","enum":["counter","piechart","table","timeseries","note","funnel"]},"title":{"type":"string"},"description":{"type":"string"},"query":{"type":"string"},"dataset":{"type":"string"},"positionX":{"type":"integer","minimum":0,"maximum":9007199254740991},"positionY":{"type":"integer","minimum":0,"maximum":9007199254740991},"width":{"type":"integer","minimum":1,"maximum":9007199254740991},"height":{"type":"integer","minimum":1,"maximum":9007199254740991},"config":{"anyOf":[{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"chartType":{"type":"string","enum":["line","area","bar"]},"xAxis":{"type":"object","properties":{"dataKey":{"type":"string"},"label":{"type":"string"}},"required":["dataKey"],"additionalProperties":false},"yAxis":{"type":"object","properties":{"label":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"}},"additionalProperties":false}},"required":["chartType","xAxis","yAxis"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"format":{"type":"string","enum":["number","currency","percentage"]},"prefix":{"type":"string"},"suffix":{"type":"string"},"decimals":{"type":"number"},"size":{"type":"string","enum":["small","medium","large","xlarge"]},"currency":{"type":"string"},"locale":{"type":"string"},"accentColor":{"type":"string"},"icon":{"type":"string"},"comparison":{"type":"object","properties":{"enabled":{"type":"boolean"},"type":{"type":"string","enum":["percentage","absolute"]},"period":{"type":"string","enum":["previous","year_ago"]},"invertColors":{"type":"boolean"}},"required":["enabled","type","period"],"additionalProperties":false}},"required":["format"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"donut":{"type":"boolean"},"labelKey":{"type":"string"},"valueKey":{"type":"string"},"showPercentage":{"type":"boolean"},"legendPosition":{"type":"string","enum":["top","bottom","left","right"]},"legendValues":{"type":"string","enum":["none","value","percentage","both"]},"maxSize":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["labelKey","valueKey"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"stepField":{"type":"string","minLength":1},"countField":{"type":"string"},"steps":{"minItems":2,"type":"array","items":{"type":"object","properties":{"value":{"type":["number","string"]},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"groupBy":{"type":"string"},"cumulative":{"type":"boolean"}},"required":["stepField","steps"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"header":{"type":"string"},"width":{"type":"number"},"format":{"type":"string","enum":["text","number","currency","date","boolean"]}},"required":["key","header"],"additionalProperties":false}},"pagination":{"type":"boolean"},"pageSize":{"type":"number"}},"required":["columns"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"content":{}},"required":["content"],"additionalProperties":false},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}]},"filterMapping":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"enabled":{"type":"boolean"},"mapTo":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["enabled"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["dashboardId","widgetType","title","query","dataset","positionX","positionY","width","height","config"],"additionalProperties":false}},"pages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dashboardId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"sequenceNumber":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["dashboardId","name","sequenceNumber"],"additionalProperties":false}},"createdBy":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["contextType","contextId","visibility","name","layoutType","isHomePage"],"additionalProperties":false}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"post":{"description":"Creates a new dashboard in the current context or specified context","summary":"Create a new dashboard","tags":["dashboards"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"visibility":{"default":"internal","type":"string","enum":["private","internal","public"]},"name":{"type":"string","minLength":1},"description":{"type":"string"},"layoutType":{"default":"grid","type":"string","enum":["grid","flex","fixed"]},"isHomePage":{"default":false,"type":"boolean"},"globalFilters":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"date_range"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"default":{"type":"object","properties":{"preset":{"type":"string"},"custom":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}}},"timezone":{"type":"string"}}}},"required":["id","type","label"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"text"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"placeholder":{"type":"string"},"default":{"type":"string"}},"required":["id","type","label"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"select"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"]}},"default":{"type":"string"}},"required":["id","type","label","options"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"multi_select"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"]}},"default":{"type":"array","items":{"type":"string"}}},"required":["id","type","label","options"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"number_range"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"default":{"type":"object","properties":{"from":{"type":"number"},"to":{"type":"number"}}}},"required":["id","type","label"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"search_filter"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"placeholder":{"type":"string"},"default":{"type":"string"},"negate":{"type":"boolean"}},"required":["id","type","label"]}]}},"widgets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dashboardId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"widgetType":{"type":"string","enum":["counter","piechart","table","timeseries","note","funnel"]},"title":{"type":"string"},"description":{"type":"string"},"query":{"type":"string"},"dataset":{"type":"string"},"positionX":{"type":"integer","minimum":0,"maximum":9007199254740991},"positionY":{"type":"integer","minimum":0,"maximum":9007199254740991},"width":{"type":"integer","minimum":1,"maximum":9007199254740991},"height":{"type":"integer","minimum":1,"maximum":9007199254740991},"config":{"anyOf":[{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"chartType":{"type":"string","enum":["line","area","bar"]},"xAxis":{"type":"object","properties":{"dataKey":{"type":"string"},"label":{"type":"string"}},"required":["dataKey"]},"yAxis":{"type":"object","properties":{"label":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"}}}},"required":["chartType","xAxis","yAxis"]},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"format":{"type":"string","enum":["number","currency","percentage"]},"prefix":{"type":"string"},"suffix":{"type":"string"},"decimals":{"type":"number"},"size":{"type":"string","enum":["small","medium","large","xlarge"]},"currency":{"type":"string"},"locale":{"type":"string"},"accentColor":{"type":"string"},"icon":{"type":"string"},"comparison":{"type":"object","properties":{"enabled":{"type":"boolean"},"type":{"type":"string","enum":["percentage","absolute"]},"period":{"type":"string","enum":["previous","year_ago"]},"invertColors":{"type":"boolean"}},"required":["enabled","type","period"]}},"required":["format"]},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"donut":{"type":"boolean"},"labelKey":{"type":"string"},"valueKey":{"type":"string"},"showPercentage":{"type":"boolean"},"legendPosition":{"type":"string","enum":["top","bottom","left","right"]},"legendValues":{"type":"string","enum":["none","value","percentage","both"]},"maxSize":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["labelKey","valueKey"]},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"stepField":{"type":"string","minLength":1},"countField":{"type":"string"},"steps":{"minItems":2,"type":"array","items":{"type":"object","properties":{"value":{"type":["number","string"]},"label":{"type":"string"}},"required":["value","label"]}},"groupBy":{"type":"string"},"cumulative":{"type":"boolean"}},"required":["stepField","steps"]},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"header":{"type":"string"},"width":{"type":"number"},"format":{"type":"string","enum":["text","number","currency","date","boolean"]}},"required":["key","header"]}},"pagination":{"type":"boolean"},"pageSize":{"type":"number"}},"required":["columns"]},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"content":{"default":"","type":"string"}}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}]},"filterMapping":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"enabled":{"type":"boolean"},"mapTo":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["enabled"]}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["dashboardId","widgetType","title","query","dataset","positionX","positionY","width","height","config"]}},"pages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dashboardId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"sequenceNumber":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["dashboardId","name","sequenceNumber"]}},"createdBy":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer","user"]},"contextId":{"type":"string"}},"required":["name"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"default":"organization","type":"string","enum":["organization","partner","customer","user"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"visibility":{"default":"internal","type":"string","enum":["private","internal","public"]},"name":{"type":"string","minLength":1},"description":{"type":"string"},"layoutType":{"default":"grid","type":"string","enum":["grid","flex","fixed"]},"isHomePage":{"default":false,"type":"boolean"},"globalFilters":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"date_range"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"default":{"type":"object","properties":{"preset":{"type":"string"},"custom":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"additionalProperties":false},"timezone":{"type":"string"}},"additionalProperties":false}},"required":["id","type","label","enabled"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"text"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"placeholder":{"type":"string"},"default":{"type":"string"}},"required":["id","type","label","enabled"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"select"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"default":{"type":"string"}},"required":["id","type","label","enabled","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"multi_select"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"default":{"type":"array","items":{"type":"string"}}},"required":["id","type","label","enabled","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"number_range"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"default":{"type":"object","properties":{"from":{"type":"number"},"to":{"type":"number"}},"additionalProperties":false}},"required":["id","type","label","enabled"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"search_filter"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"placeholder":{"type":"string"},"default":{"type":"string"},"negate":{"type":"boolean"}},"required":["id","type","label","enabled"],"additionalProperties":false}]}},"widgets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dashboardId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"widgetType":{"type":"string","enum":["counter","piechart","table","timeseries","note","funnel"]},"title":{"type":"string"},"description":{"type":"string"},"query":{"type":"string"},"dataset":{"type":"string"},"positionX":{"type":"integer","minimum":0,"maximum":9007199254740991},"positionY":{"type":"integer","minimum":0,"maximum":9007199254740991},"width":{"type":"integer","minimum":1,"maximum":9007199254740991},"height":{"type":"integer","minimum":1,"maximum":9007199254740991},"config":{"anyOf":[{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"chartType":{"type":"string","enum":["line","area","bar"]},"xAxis":{"type":"object","properties":{"dataKey":{"type":"string"},"label":{"type":"string"}},"required":["dataKey"],"additionalProperties":false},"yAxis":{"type":"object","properties":{"label":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"}},"additionalProperties":false}},"required":["chartType","xAxis","yAxis"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"format":{"type":"string","enum":["number","currency","percentage"]},"prefix":{"type":"string"},"suffix":{"type":"string"},"decimals":{"type":"number"},"size":{"type":"string","enum":["small","medium","large","xlarge"]},"currency":{"type":"string"},"locale":{"type":"string"},"accentColor":{"type":"string"},"icon":{"type":"string"},"comparison":{"type":"object","properties":{"enabled":{"type":"boolean"},"type":{"type":"string","enum":["percentage","absolute"]},"period":{"type":"string","enum":["previous","year_ago"]},"invertColors":{"type":"boolean"}},"required":["enabled","type","period"],"additionalProperties":false}},"required":["format"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"donut":{"type":"boolean"},"labelKey":{"type":"string"},"valueKey":{"type":"string"},"showPercentage":{"type":"boolean"},"legendPosition":{"type":"string","enum":["top","bottom","left","right"]},"legendValues":{"type":"string","enum":["none","value","percentage","both"]},"maxSize":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["labelKey","valueKey"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"stepField":{"type":"string","minLength":1},"countField":{"type":"string"},"steps":{"minItems":2,"type":"array","items":{"type":"object","properties":{"value":{"type":["number","string"]},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"groupBy":{"type":"string"},"cumulative":{"type":"boolean"}},"required":["stepField","steps"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"header":{"type":"string"},"width":{"type":"number"},"format":{"type":"string","enum":["text","number","currency","date","boolean"]}},"required":["key","header"],"additionalProperties":false}},"pagination":{"type":"boolean"},"pageSize":{"type":"number"}},"required":["columns"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"content":{}},"required":["content"],"additionalProperties":false},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}]},"filterMapping":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"enabled":{"type":"boolean"},"mapTo":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["enabled"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["dashboardId","widgetType","title","query","dataset","positionX","positionY","width","height","config"],"additionalProperties":false}},"pages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dashboardId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"sequenceNumber":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["dashboardId","name","sequenceNumber"],"additionalProperties":false}},"createdBy":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["contextType","contextId","visibility","name","layoutType","isHomePage"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/dashboards/home":{"get":{"description":"Returns the home page dashboard for the current user's context. Priority: private > internal > public.","summary":"Get the home page dashboard","tags":["dashboards"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"default":"organization","type":"string","enum":["organization","partner","customer","user"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"visibility":{"default":"internal","type":"string","enum":["private","internal","public"]},"name":{"type":"string","minLength":1},"description":{"type":"string"},"layoutType":{"default":"grid","type":"string","enum":["grid","flex","fixed"]},"isHomePage":{"default":false,"type":"boolean"},"globalFilters":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"date_range"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"default":{"type":"object","properties":{"preset":{"type":"string"},"custom":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"additionalProperties":false},"timezone":{"type":"string"}},"additionalProperties":false}},"required":["id","type","label","enabled"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"text"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"placeholder":{"type":"string"},"default":{"type":"string"}},"required":["id","type","label","enabled"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"select"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"default":{"type":"string"}},"required":["id","type","label","enabled","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"multi_select"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"default":{"type":"array","items":{"type":"string"}}},"required":["id","type","label","enabled","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"number_range"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"default":{"type":"object","properties":{"from":{"type":"number"},"to":{"type":"number"}},"additionalProperties":false}},"required":["id","type","label","enabled"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"search_filter"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"placeholder":{"type":"string"},"default":{"type":"string"},"negate":{"type":"boolean"}},"required":["id","type","label","enabled"],"additionalProperties":false}]}},"widgets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dashboardId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"widgetType":{"type":"string","enum":["counter","piechart","table","timeseries","note","funnel"]},"title":{"type":"string"},"description":{"type":"string"},"query":{"type":"string"},"dataset":{"type":"string"},"positionX":{"type":"integer","minimum":0,"maximum":9007199254740991},"positionY":{"type":"integer","minimum":0,"maximum":9007199254740991},"width":{"type":"integer","minimum":1,"maximum":9007199254740991},"height":{"type":"integer","minimum":1,"maximum":9007199254740991},"config":{"anyOf":[{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"chartType":{"type":"string","enum":["line","area","bar"]},"xAxis":{"type":"object","properties":{"dataKey":{"type":"string"},"label":{"type":"string"}},"required":["dataKey"],"additionalProperties":false},"yAxis":{"type":"object","properties":{"label":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"}},"additionalProperties":false}},"required":["chartType","xAxis","yAxis"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"format":{"type":"string","enum":["number","currency","percentage"]},"prefix":{"type":"string"},"suffix":{"type":"string"},"decimals":{"type":"number"},"size":{"type":"string","enum":["small","medium","large","xlarge"]},"currency":{"type":"string"},"locale":{"type":"string"},"accentColor":{"type":"string"},"icon":{"type":"string"},"comparison":{"type":"object","properties":{"enabled":{"type":"boolean"},"type":{"type":"string","enum":["percentage","absolute"]},"period":{"type":"string","enum":["previous","year_ago"]},"invertColors":{"type":"boolean"}},"required":["enabled","type","period"],"additionalProperties":false}},"required":["format"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"donut":{"type":"boolean"},"labelKey":{"type":"string"},"valueKey":{"type":"string"},"showPercentage":{"type":"boolean"},"legendPosition":{"type":"string","enum":["top","bottom","left","right"]},"legendValues":{"type":"string","enum":["none","value","percentage","both"]},"maxSize":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["labelKey","valueKey"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"stepField":{"type":"string","minLength":1},"countField":{"type":"string"},"steps":{"minItems":2,"type":"array","items":{"type":"object","properties":{"value":{"type":["number","string"]},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"groupBy":{"type":"string"},"cumulative":{"type":"boolean"}},"required":["stepField","steps"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"header":{"type":"string"},"width":{"type":"number"},"format":{"type":"string","enum":["text","number","currency","date","boolean"]}},"required":["key","header"],"additionalProperties":false}},"pagination":{"type":"boolean"},"pageSize":{"type":"number"}},"required":["columns"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"content":{}},"required":["content"],"additionalProperties":false},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}]},"filterMapping":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"enabled":{"type":"boolean"},"mapTo":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["enabled"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["dashboardId","widgetType","title","query","dataset","positionX","positionY","width","height","config"],"additionalProperties":false}},"pages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dashboardId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"sequenceNumber":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["dashboardId","name","sequenceNumber"],"additionalProperties":false}},"createdBy":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["contextType","contextId","visibility","name","layoutType","isHomePage"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/dashboards/{dashboardId}":{"get":{"description":"Returns a single dashboard by its ID if the user has access to it","summary":"Get a dashboard by ID","tags":["dashboards"],"parameters":[{"name":"dashboardId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"default":"organization","type":"string","enum":["organization","partner","customer","user"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"visibility":{"default":"internal","type":"string","enum":["private","internal","public"]},"name":{"type":"string","minLength":1},"description":{"type":"string"},"layoutType":{"default":"grid","type":"string","enum":["grid","flex","fixed"]},"isHomePage":{"default":false,"type":"boolean"},"globalFilters":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"date_range"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"default":{"type":"object","properties":{"preset":{"type":"string"},"custom":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"additionalProperties":false},"timezone":{"type":"string"}},"additionalProperties":false}},"required":["id","type","label","enabled"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"text"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"placeholder":{"type":"string"},"default":{"type":"string"}},"required":["id","type","label","enabled"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"select"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"default":{"type":"string"}},"required":["id","type","label","enabled","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"multi_select"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"default":{"type":"array","items":{"type":"string"}}},"required":["id","type","label","enabled","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"number_range"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"default":{"type":"object","properties":{"from":{"type":"number"},"to":{"type":"number"}},"additionalProperties":false}},"required":["id","type","label","enabled"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"search_filter"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"placeholder":{"type":"string"},"default":{"type":"string"},"negate":{"type":"boolean"}},"required":["id","type","label","enabled"],"additionalProperties":false}]}},"widgets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dashboardId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"widgetType":{"type":"string","enum":["counter","piechart","table","timeseries","note","funnel"]},"title":{"type":"string"},"description":{"type":"string"},"query":{"type":"string"},"dataset":{"type":"string"},"positionX":{"type":"integer","minimum":0,"maximum":9007199254740991},"positionY":{"type":"integer","minimum":0,"maximum":9007199254740991},"width":{"type":"integer","minimum":1,"maximum":9007199254740991},"height":{"type":"integer","minimum":1,"maximum":9007199254740991},"config":{"anyOf":[{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"chartType":{"type":"string","enum":["line","area","bar"]},"xAxis":{"type":"object","properties":{"dataKey":{"type":"string"},"label":{"type":"string"}},"required":["dataKey"],"additionalProperties":false},"yAxis":{"type":"object","properties":{"label":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"}},"additionalProperties":false}},"required":["chartType","xAxis","yAxis"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"format":{"type":"string","enum":["number","currency","percentage"]},"prefix":{"type":"string"},"suffix":{"type":"string"},"decimals":{"type":"number"},"size":{"type":"string","enum":["small","medium","large","xlarge"]},"currency":{"type":"string"},"locale":{"type":"string"},"accentColor":{"type":"string"},"icon":{"type":"string"},"comparison":{"type":"object","properties":{"enabled":{"type":"boolean"},"type":{"type":"string","enum":["percentage","absolute"]},"period":{"type":"string","enum":["previous","year_ago"]},"invertColors":{"type":"boolean"}},"required":["enabled","type","period"],"additionalProperties":false}},"required":["format"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"donut":{"type":"boolean"},"labelKey":{"type":"string"},"valueKey":{"type":"string"},"showPercentage":{"type":"boolean"},"legendPosition":{"type":"string","enum":["top","bottom","left","right"]},"legendValues":{"type":"string","enum":["none","value","percentage","both"]},"maxSize":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["labelKey","valueKey"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"stepField":{"type":"string","minLength":1},"countField":{"type":"string"},"steps":{"minItems":2,"type":"array","items":{"type":"object","properties":{"value":{"type":["number","string"]},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"groupBy":{"type":"string"},"cumulative":{"type":"boolean"}},"required":["stepField","steps"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"header":{"type":"string"},"width":{"type":"number"},"format":{"type":"string","enum":["text","number","currency","date","boolean"]}},"required":["key","header"],"additionalProperties":false}},"pagination":{"type":"boolean"},"pageSize":{"type":"number"}},"required":["columns"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"content":{}},"required":["content"],"additionalProperties":false},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}]},"filterMapping":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"enabled":{"type":"boolean"},"mapTo":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["enabled"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["dashboardId","widgetType","title","query","dataset","positionX","positionY","width","height","config"],"additionalProperties":false}},"pages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dashboardId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"sequenceNumber":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["dashboardId","name","sequenceNumber"],"additionalProperties":false}},"createdBy":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["contextType","contextId","visibility","name","layoutType","isHomePage"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"put":{"description":"Updates an existing dashboard if the user has permission","summary":"Update a dashboard","tags":["dashboards"],"parameters":[{"name":"dashboardId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"visibility":{"type":"string","enum":["private","internal","public"]},"name":{"type":"string","minLength":1},"description":{"type":"string"},"layoutType":{"type":"string","enum":["grid","flex","fixed"]},"isHomePage":{"type":"boolean"},"globalFilters":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"date_range"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"default":{"type":"object","properties":{"preset":{"type":"string"},"custom":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}}},"timezone":{"type":"string"}}}},"required":["id","type","label"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"text"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"placeholder":{"type":"string"},"default":{"type":"string"}},"required":["id","type","label"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"select"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"]}},"default":{"type":"string"}},"required":["id","type","label","options"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"multi_select"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"]}},"default":{"type":"array","items":{"type":"string"}}},"required":["id","type","label","options"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"number_range"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"default":{"type":"object","properties":{"from":{"type":"number"},"to":{"type":"number"}}}},"required":["id","type","label"]},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"search_filter"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"placeholder":{"type":"string"},"default":{"type":"string"},"negate":{"type":"boolean"}},"required":["id","type","label"]}]}},"widgets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dashboardId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"widgetType":{"type":"string","enum":["counter","piechart","table","timeseries","note","funnel"]},"title":{"type":"string"},"description":{"type":"string"},"query":{"type":"string"},"dataset":{"type":"string"},"positionX":{"type":"integer","minimum":0,"maximum":9007199254740991},"positionY":{"type":"integer","minimum":0,"maximum":9007199254740991},"width":{"type":"integer","minimum":1,"maximum":9007199254740991},"height":{"type":"integer","minimum":1,"maximum":9007199254740991},"config":{"anyOf":[{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"chartType":{"type":"string","enum":["line","area","bar"]},"xAxis":{"type":"object","properties":{"dataKey":{"type":"string"},"label":{"type":"string"}},"required":["dataKey"]},"yAxis":{"type":"object","properties":{"label":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"}}}},"required":["chartType","xAxis","yAxis"]},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"format":{"type":"string","enum":["number","currency","percentage"]},"prefix":{"type":"string"},"suffix":{"type":"string"},"decimals":{"type":"number"},"size":{"type":"string","enum":["small","medium","large","xlarge"]},"currency":{"type":"string"},"locale":{"type":"string"},"accentColor":{"type":"string"},"icon":{"type":"string"},"comparison":{"type":"object","properties":{"enabled":{"type":"boolean"},"type":{"type":"string","enum":["percentage","absolute"]},"period":{"type":"string","enum":["previous","year_ago"]},"invertColors":{"type":"boolean"}},"required":["enabled","type","period"]}},"required":["format"]},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"donut":{"type":"boolean"},"labelKey":{"type":"string"},"valueKey":{"type":"string"},"showPercentage":{"type":"boolean"},"legendPosition":{"type":"string","enum":["top","bottom","left","right"]},"legendValues":{"type":"string","enum":["none","value","percentage","both"]},"maxSize":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["labelKey","valueKey"]},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"stepField":{"type":"string","minLength":1},"countField":{"type":"string"},"steps":{"minItems":2,"type":"array","items":{"type":"object","properties":{"value":{"type":["number","string"]},"label":{"type":"string"}},"required":["value","label"]}},"groupBy":{"type":"string"},"cumulative":{"type":"boolean"}},"required":["stepField","steps"]},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"header":{"type":"string"},"width":{"type":"number"},"format":{"type":"string","enum":["text","number","currency","date","boolean"]}},"required":["key","header"]}},"pagination":{"type":"boolean"},"pageSize":{"type":"number"}},"required":["columns"]},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"content":{"default":"","type":"string"}}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}]},"filterMapping":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"enabled":{"type":"boolean"},"mapTo":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["enabled"]}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["dashboardId","widgetType","title","query","dataset","positionX","positionY","width","height","config"]}},"pages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dashboardId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"sequenceNumber":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["dashboardId","name","sequenceNumber"]}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"default":"organization","type":"string","enum":["organization","partner","customer","user"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"visibility":{"default":"internal","type":"string","enum":["private","internal","public"]},"name":{"type":"string","minLength":1},"description":{"type":"string"},"layoutType":{"default":"grid","type":"string","enum":["grid","flex","fixed"]},"isHomePage":{"default":false,"type":"boolean"},"globalFilters":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"date_range"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"default":{"type":"object","properties":{"preset":{"type":"string"},"custom":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"}},"additionalProperties":false},"timezone":{"type":"string"}},"additionalProperties":false}},"required":["id","type","label","enabled"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"text"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"placeholder":{"type":"string"},"default":{"type":"string"}},"required":["id","type","label","enabled"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"select"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"default":{"type":"string"}},"required":["id","type","label","enabled","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"multi_select"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"default":{"type":"array","items":{"type":"string"}}},"required":["id","type","label","enabled","options"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"number_range"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"default":{"type":"object","properties":{"from":{"type":"number"},"to":{"type":"number"}},"additionalProperties":false}},"required":["id","type","label","enabled"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","const":"search_filter"},"label":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"placeholder":{"type":"string"},"default":{"type":"string"},"negate":{"type":"boolean"}},"required":["id","type","label","enabled"],"additionalProperties":false}]}},"widgets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dashboardId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"widgetType":{"type":"string","enum":["counter","piechart","table","timeseries","note","funnel"]},"title":{"type":"string"},"description":{"type":"string"},"query":{"type":"string"},"dataset":{"type":"string"},"positionX":{"type":"integer","minimum":0,"maximum":9007199254740991},"positionY":{"type":"integer","minimum":0,"maximum":9007199254740991},"width":{"type":"integer","minimum":1,"maximum":9007199254740991},"height":{"type":"integer","minimum":1,"maximum":9007199254740991},"config":{"anyOf":[{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"chartType":{"type":"string","enum":["line","area","bar"]},"xAxis":{"type":"object","properties":{"dataKey":{"type":"string"},"label":{"type":"string"}},"required":["dataKey"],"additionalProperties":false},"yAxis":{"type":"object","properties":{"label":{"type":"string"},"min":{"type":"number"},"max":{"type":"number"}},"additionalProperties":false}},"required":["chartType","xAxis","yAxis"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"format":{"type":"string","enum":["number","currency","percentage"]},"prefix":{"type":"string"},"suffix":{"type":"string"},"decimals":{"type":"number"},"size":{"type":"string","enum":["small","medium","large","xlarge"]},"currency":{"type":"string"},"locale":{"type":"string"},"accentColor":{"type":"string"},"icon":{"type":"string"},"comparison":{"type":"object","properties":{"enabled":{"type":"boolean"},"type":{"type":"string","enum":["percentage","absolute"]},"period":{"type":"string","enum":["previous","year_ago"]},"invertColors":{"type":"boolean"}},"required":["enabled","type","period"],"additionalProperties":false}},"required":["format"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"donut":{"type":"boolean"},"labelKey":{"type":"string"},"valueKey":{"type":"string"},"showPercentage":{"type":"boolean"},"legendPosition":{"type":"string","enum":["top","bottom","left","right"]},"legendValues":{"type":"string","enum":["none","value","percentage","both"]},"maxSize":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["labelKey","valueKey"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"stepField":{"type":"string","minLength":1},"countField":{"type":"string"},"steps":{"minItems":2,"type":"array","items":{"type":"object","properties":{"value":{"type":["number","string"]},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"groupBy":{"type":"string"},"cumulative":{"type":"boolean"}},"required":["stepField","steps"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"columns":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"header":{"type":"string"},"width":{"type":"number"},"format":{"type":"string","enum":["text","number","currency","date","boolean"]}},"required":["key","header"],"additionalProperties":false}},"pagination":{"type":"boolean"},"pageSize":{"type":"number"}},"required":["columns"],"additionalProperties":false},{"type":"object","properties":{"legend":{"type":"boolean"},"tooltip":{"type":"boolean"},"colors":{"type":"array","items":{"type":"string"}},"borderStyle":{"type":"string","enum":["none","solid","dashed","dotted"]},"customCss":{"type":"string"},"aiConversationId":{"type":"string"},"content":{}},"required":["content"],"additionalProperties":false},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}]},"filterMapping":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"enabled":{"type":"boolean"},"mapTo":{"anyOf":[{"type":"string"},{"type":"array","items":{"type":"string"}}]}},"required":["enabled"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["dashboardId","widgetType","title","query","dataset","positionX","positionY","width","height","config"],"additionalProperties":false}},"pages":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"dashboardId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"sequenceNumber":{"type":"integer","minimum":0,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["dashboardId","name","sequenceNumber"],"additionalProperties":false}},"createdBy":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["contextType","contextId","visibility","name","layoutType","isHomePage"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"description":"Deletes a dashboard and all associated widgets if the user has permission","summary":"Delete a dashboard","tags":["dashboards"],"parameters":[{"name":"dashboardId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"204":{"description":"204","content":{"application/json":{"schema":{}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/decision-tables":{"post":{"summary":"Create a new decision table","tags":["decisionTables"],"parameters":[{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slugId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-z0-9-]+$"},"description":{"type":"string"},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field"]}},"hitPolicy":{"default":"first","type":"string","enum":["first","collect"]},"inputs":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}}}},"required":["id","label"]}},"outputs":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}}}},"required":["id","label"]}},"rules":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"]}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"]}},"providerId":{"type":"string"},"serviceConnectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["name","slugId"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"slugId":{"type":"string"},"description":{"type":["string","null"]},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"type":"string","enum":["first","collect"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"serviceConnectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"providerId":{"type":["string","null"]},"managedByApplicationId":{"type":["string","null"]},"currentVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdBy":{"type":["string","null"]}},"required":["id","context","name","slugId","description","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules","createdAt","updatedAt","createdBy"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"get":{"summary":"List all decision tables","tags":["decisionTables"],"parameters":[{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"slugId":{"type":"string"},"description":{"type":["string","null"]},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"type":"string","enum":["first","collect"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"serviceConnectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"providerId":{"type":["string","null"]},"managedByApplicationId":{"type":["string","null"]},"currentVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdBy":{"type":["string","null"]}},"required":["id","context","name","slugId","description","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules","createdAt","updatedAt","createdBy"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/decision-tables/{decisionTableId}":{"get":{"summary":"Get a specific decision table by ID","tags":["decisionTables"],"parameters":[{"name":"decisionTableId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"slugId":{"type":"string"},"description":{"type":["string","null"]},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"type":"string","enum":["first","collect"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"serviceConnectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"providerId":{"type":["string","null"]},"managedByApplicationId":{"type":["string","null"]},"currentVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdBy":{"type":["string","null"]}},"required":["id","context","name","slugId","description","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules","createdAt","updatedAt","createdBy"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"summary":"Delete a decision table","tags":["decisionTables"],"parameters":[{"name":"decisionTableId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"204":{"description":"204","content":{"application/json":{"schema":{}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/decision-tables/by-slug/{slugId}":{"get":{"summary":"Get a specific decision table by slug ID","tags":["decisionTables"],"parameters":[{"name":"slugId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"slugId":{"type":"string"},"description":{"type":["string","null"]},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"type":"string","enum":["first","collect"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"serviceConnectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"providerId":{"type":["string","null"]},"managedByApplicationId":{"type":["string","null"]},"currentVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdBy":{"type":["string","null"]}},"required":["id","context","name","slugId","description","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules","createdAt","updatedAt","createdBy"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"put":{"summary":"Upsert (create or update) a decision table by slug ID","tags":["decisionTables"],"parameters":[{"name":"slugId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"description":{"type":"string"},"hitPolicy":{"type":"string","enum":["first","collect"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}}}},"required":["id","label"]}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}}}},"required":["id","label"]}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"]}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"]}}},"required":["name","hitPolicy","inputs","outputs","rules"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"slugId":{"type":"string"},"description":{"type":["string","null"]},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"type":"string","enum":["first","collect"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"serviceConnectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"providerId":{"type":["string","null"]},"managedByApplicationId":{"type":["string","null"]},"currentVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdBy":{"type":["string","null"]}},"required":["id","context","name","slugId","description","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules","createdAt","updatedAt","createdBy"],"additionalProperties":false}}}},"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"slugId":{"type":"string"},"description":{"type":["string","null"]},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"type":"string","enum":["first","collect"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"serviceConnectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"providerId":{"type":["string","null"]},"managedByApplicationId":{"type":["string","null"]},"currentVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdBy":{"type":["string","null"]}},"required":["id","context","name","slugId","description","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules","createdAt","updatedAt","createdBy"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/decision-tables/{decisionTableId}/metadata":{"patch":{"summary":"Update decision table metadata (name, description, hit policy, slugId)","tags":["decisionTables"],"parameters":[{"name":"decisionTableId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slugId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-z0-9-]+$"},"description":{"type":["string","null"]},"hitPolicy":{"type":"string","enum":["first","collect"]},"kind":{"type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"type":"boolean"},"priority":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field"]}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"slugId":{"type":"string"},"description":{"type":["string","null"]},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"type":"string","enum":["first","collect"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"serviceConnectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"providerId":{"type":["string","null"]},"managedByApplicationId":{"type":["string","null"]},"currentVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdBy":{"type":["string","null"]}},"required":["id","context","name","slugId","description","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules","createdAt","updatedAt","createdBy"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/decision-tables/{decisionTableId}/schema":{"put":{"summary":"Update decision table schema (columns) - replaces all columns, and the rules when given","tags":["decisionTables"],"parameters":[{"name":"decisionTableId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}}}},"required":["id","label"]}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}}}},"required":["id","label"]}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"]}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"]}}},"required":["inputs","outputs"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"slugId":{"type":"string"},"description":{"type":["string","null"]},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"type":"string","enum":["first","collect"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"serviceConnectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"providerId":{"type":["string","null"]},"managedByApplicationId":{"type":["string","null"]},"currentVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdBy":{"type":["string","null"]}},"required":["id","context","name","slugId","description","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules","createdAt","updatedAt","createdBy"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/decision-tables/{decisionTableId}/rules":{"put":{"summary":"Update decision table rules - replaces all rules","tags":["decisionTables"],"parameters":[{"name":"decisionTableId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"]}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"]}}},"required":["rules"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"slugId":{"type":"string"},"description":{"type":["string","null"]},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"type":"string","enum":["first","collect"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"serviceConnectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"providerId":{"type":["string","null"]},"managedByApplicationId":{"type":["string","null"]},"currentVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdBy":{"type":["string","null"]}},"required":["id","context","name","slugId","description","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules","createdAt","updatedAt","createdBy"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/decision-tables/{decisionTableId}/mode-copy":{"get":{"summary":"Read a decision table for a copy to the other mode","tags":["decisionTables"],"parameters":[{"name":"decisionTableId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"versionId","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"tables":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slugId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-z0-9-]+$"},"description":{"type":"string"},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"default":"first","type":"string","enum":["first","collect"]},"inputs":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"providerId":{"type":"string"},"serviceConnectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["name","slugId","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules"],"additionalProperties":false}},"references":{"type":"object","properties":{"plansCopied":{"type":"array","items":{"type":"string"}},"plansNotCopied":{"type":"array","items":{"type":"string"}},"perModeFields":{"type":"array","items":{"type":"string"}}},"required":["plansCopied","plansNotCopied","perModeFields"],"additionalProperties":false}},"required":["tables","references"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"reason":{"type":"string","enum":["copy-exists","name-taken","account-fees","no-table","rule-exists","columns-differ","changed"]},"names":{"type":"array","items":{"type":"string"}}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/decision-tables/mode-copy":{"post":{"summary":"Write a decision table copied from the other mode","tags":["decisionTables"],"parameters":[{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"tables":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slugId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-z0-9-]+$"},"description":{"type":"string"},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field"]}},"hitPolicy":{"default":"first","type":"string","enum":["first","collect"]},"inputs":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}}}},"required":["id","label"]}},"outputs":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}}}},"required":["id","label"]}},"rules":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"]}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"]}},"providerId":{"type":"string"},"serviceConnectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["name","slugId"]}},"replace":{"type":"boolean"},"dryRun":{"type":"boolean"}},"required":["tables"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"slugId":{"type":"string"},"description":{"type":["string","null"]},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"type":"string","enum":["first","collect"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"serviceConnectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"providerId":{"type":["string","null"]},"managedByApplicationId":{"type":["string","null"]},"currentVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdBy":{"type":["string","null"]}},"required":["id","context","name","slugId","description","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules","createdAt","updatedAt","createdBy"],"additionalProperties":false},"replaces":{"type":"array","items":{"type":"string"}}},"required":["replaces"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"reason":{"type":"string","enum":["copy-exists","name-taken","account-fees","no-table","rule-exists","columns-differ","changed"]},"names":{"type":"array","items":{"type":"string"}}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/decision-tables/mode-copy/rule":{"post":{"summary":"Write one rule copied from the other mode","tags":["decisionTables"],"parameters":[{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"slugId":{"type":"string","minLength":1},"kind":{"type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"rule":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"]}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}}}},"required":["id","label"]}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}}}},"required":["id","label"]}},"above":{"maxItems":1000,"type":"array","items":{"type":"string"}},"replace":{"type":"boolean"},"dryRun":{"type":"boolean"}},"required":["slugId","kind","rule","inputs","outputs","above"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"slugId":{"type":"string"},"description":{"type":["string","null"]},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"type":"string","enum":["first","collect"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"serviceConnectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"providerId":{"type":["string","null"]},"managedByApplicationId":{"type":["string","null"]},"currentVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdBy":{"type":["string","null"]}},"required":["id","context","name","slugId","description","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules","createdAt","updatedAt","createdBy"],"additionalProperties":false},"tableName":{"type":"string"},"outcome":{"type":"string","enum":["added","replaced","unchanged"]},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"columnsAdded":{"type":"array","items":{"type":"string"}}},"required":["tableName","outcome","position","columnsAdded"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"reason":{"type":"string","enum":["copy-exists","name-taken","account-fees","no-table","rule-exists","columns-differ","changed"]},"names":{"type":"array","items":{"type":"string"}}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/decision-tables/{decisionTableId}/versions":{"get":{"summary":"List the versions of a decision table","tags":["decisionTables"],"parameters":[{"name":"decisionTableId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"decisionTableId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"change":{"type":"string","enum":["baseline","created","edited","rolled-back","copied","imported","duplicated"]},"sourceVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sourceMode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"sourceContext":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["type","id","name"],"additionalProperties":false},{"type":"null"}]},"sourceTableId":{"type":["string","null"]},"sourceLabel":{"type":["string","null"]},"changes":{"anyOf":[{"type":"object","properties":{"rulesAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rulesRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rulesChanged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rulesReordered":{"type":"boolean"},"columnsChanged":{"type":"boolean"},"settings":{"type":"array","items":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]}},"details":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"moreDetails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["rulesAdded","rulesRemoved","rulesChanged","rulesReordered","columnsChanged","settings"],"additionalProperties":false},{"type":"null"}]},"name":{"type":"string"},"enabled":{"type":"boolean"},"ruleCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdBy":{"type":["string","null"]},"createdByName":{"type":["string","null"]},"createdAt":{"type":"string"},"isCurrent":{"type":"boolean"}},"required":["id","decisionTableId","version","change","sourceVersion","sourceMode","changes","name","enabled","ruleCount","createdBy","createdByName","createdAt","isCurrent"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/decision-tables/{decisionTableId}/versions/{versionId}":{"get":{"summary":"Get one version of a decision table","tags":["decisionTables"],"parameters":[{"name":"decisionTableId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"decisionTableId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"change":{"type":"string","enum":["baseline","created","edited","rolled-back","copied","imported","duplicated"]},"sourceVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sourceMode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"sourceContext":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["type","id","name"],"additionalProperties":false},{"type":"null"}]},"sourceTableId":{"type":["string","null"]},"sourceLabel":{"type":["string","null"]},"changes":{"anyOf":[{"type":"object","properties":{"rulesAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rulesRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rulesChanged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rulesReordered":{"type":"boolean"},"columnsChanged":{"type":"boolean"},"settings":{"type":"array","items":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]}},"details":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"moreDetails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["rulesAdded","rulesRemoved","rulesChanged","rulesReordered","columnsChanged","settings"],"additionalProperties":false},{"type":"null"}]},"name":{"type":"string"},"enabled":{"type":"boolean"},"ruleCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdBy":{"type":["string","null"]},"createdByName":{"type":["string","null"]},"createdAt":{"type":"string"},"isCurrent":{"type":"boolean"},"slugId":{"type":"string"},"description":{"type":["string","null"]},"kind":{"type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"preConditions":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"type":"string","enum":["first","collect"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}}},"required":["id","decisionTableId","version","change","sourceVersion","sourceMode","changes","name","enabled","ruleCount","createdBy","createdByName","createdAt","isCurrent","slugId","description","kind","preConditions","hitPolicy","inputs","outputs","rules"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/decision-tables/{decisionTableId}/versions/{versionId}/rollback":{"post":{"summary":"Roll a decision table back to an older version","tags":["decisionTables"],"parameters":[{"name":"decisionTableId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"slugId":{"type":"string"},"description":{"type":["string","null"]},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"type":"string","enum":["first","collect"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"serviceConnectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"providerId":{"type":["string","null"]},"managedByApplicationId":{"type":["string","null"]},"currentVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdBy":{"type":["string","null"]}},"required":["id","context","name","slugId","description","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules","createdAt","updatedAt","createdBy"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/decision-tables/export":{"post":{"summary":"Export rule sets as a rule export file","tags":["decisionTables"],"parameters":[{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"kind":{"type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"versionId":{"type":"string"},"includeReferencedPlans":{"type":"boolean"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"format":{"type":"string","const":"babelpay.rules"},"formatVersion":{"type":"integer","minimum":1,"maximum":9007199254740991},"exportedAt":{"type":"string"},"source":{"type":"object","properties":{"environment":{"type":"string","maxLength":40},"mode":{"type":"string","enum":["live","test"]},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","maxLength":100},"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"required":["type","id"],"additionalProperties":false}},"additionalProperties":false},"decisionTables":{"default":[],"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slugId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-z0-9-]+$"},"description":{"type":"string"},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"default":"first","type":"string","enum":["first","collect"]},"inputs":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"providerId":{"type":"string"},"serviceConnectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["name","slugId","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules"],"additionalProperties":false}},"velocityMetrics":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"references":{"type":"object","properties":{"routingPlansIncluded":{"type":"array","items":{"type":"string"}},"routingPlansNotIncluded":{"type":"array","items":{"type":"string"}},"velocityFieldsRead":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}},"required":["format","formatVersion","exportedAt","decisionTables"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/decision-tables/import":{"post":{"summary":"Import rule sets","tags":["decisionTables"],"parameters":[{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"tables":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slugId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-z0-9-]+$"},"description":{"type":"string"},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field"]}},"hitPolicy":{"default":"first","type":"string","enum":["first","collect"]},"inputs":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}}}},"required":["id","label"]}},"outputs":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}}}},"required":["id","label"]}},"rules":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"]}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"]}},"providerId":{"type":"string"},"serviceConnectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["name","slugId"]}},"resolutions":{"default":[],"type":"array","items":{"type":"object","properties":{"slugId":{"type":"string"},"action":{"type":"string","enum":["create","replace","create-copy","skip"]},"newSlugId":{"type":"string","maxLength":100,"pattern":"^[a-z0-9-]+$"},"newName":{"type":"string","minLength":1,"maxLength":200},"expectedUpdatedAt":{"type":"string"},"placeAfter":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["slugId","action"]}},"importDisabled":{"type":"boolean"},"origin":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"file"},"fileName":{"type":"string","maxLength":200},"source":{"type":"object","properties":{"environment":{"type":"string","maxLength":40},"mode":{"type":"string","enum":["live","test"]},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","maxLength":100},"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"required":["type","id"]}}}},"required":["kind","fileName"]},{"type":"object","properties":{"kind":{"type":"string","const":"duplicate"},"tableId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["kind","tableId"]},{"type":"object","properties":{"kind":{"type":"string","const":"context-copy"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["type","id"]},"tableId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","context"]}]},"dryRun":{"type":"boolean"}},"required":["tables","origin"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"tables":{"type":"array","items":{"type":"object","properties":{"slugId":{"type":"string"},"name":{"type":"string"},"kind":{"type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"status":{"type":"string","enum":["create","replace","unchanged","conflict","invalid","refused"]},"reason":{"type":"string","enum":["name-taken","kind-differs","hidden","account-fees","managed","invalid"]},"message":{"type":"string"},"existing":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"updatedAt":{"type":"string"},"enabled":{"type":"boolean"}},"required":["id","name","updatedAt","enabled"],"additionalProperties":false},"changes":{"type":"object","properties":{"rulesAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rulesRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rulesChanged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"rulesReordered":{"type":"boolean"},"columnsChanged":{"type":"boolean"},"settings":{"type":"array","items":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]}},"details":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"moreDetails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["rulesAdded","rulesRemoved","rulesChanged","rulesReordered","columnsChanged","settings"],"additionalProperties":false},"references":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["velocityFieldMissing","routingPlanMissing","providerAccountMissing"]},"names":{"type":"array","items":{"type":"string"}}},"required":["type","names"],"additionalProperties":false}},"suggested":{"type":"object","properties":{"newSlugId":{"type":"string"},"newName":{"type":"string"}},"required":["newSlugId","newName"],"additionalProperties":false},"allowedActions":{"type":"array","items":{"type":"string","enum":["create","replace","create-copy","skip"]}}},"required":["slugId","name","kind","status","references","suggested","allowedActions"],"additionalProperties":false}},"written":{"type":"array","items":{"type":"object","properties":{"slugId":{"type":"string"},"id":{"type":"string"},"name":{"type":"string"},"outcome":{"type":"string","enum":["created","replaced","skipped"]}},"required":["slugId","name","outcome"],"additionalProperties":false}}},"required":["tables"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"reason":{"type":"string","const":"changed"},"names":{"type":"array","items":{"type":"string"}}},"required":["message","reason","names"],"additionalProperties":false}}}}}}},"/api/v1/decision-tables/{decisionTableId}/rules/{ruleId}/copy":{"post":{"summary":"Copy one rule into another rule set","tags":["decisionTables"],"parameters":[{"name":"decisionTableId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"ruleId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"target":{"type":"object","properties":{"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["contextType","contextId"]},"targetTableId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"replace":{"type":"boolean"},"dryRun":{"type":"boolean"}},"required":["target","targetTableId"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"slugId":{"type":"string"},"description":{"type":["string","null"]},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"type":"string","enum":["first","collect"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"serviceConnectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"providerId":{"type":["string","null"]},"managedByApplicationId":{"type":["string","null"]},"currentVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdBy":{"type":["string","null"]}},"required":["id","context","name","slugId","description","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules","createdAt","updatedAt","createdBy"],"additionalProperties":false},"tableName":{"type":"string"},"outcome":{"type":"string","enum":["added","replaced","unchanged"]},"position":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"columnsAdded":{"type":"array","items":{"type":"string"}}},"required":["tableName","outcome","position","columnsAdded"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"reason":{"type":"string","enum":["copy-exists","name-taken","account-fees","no-table","rule-exists","columns-differ","changed"]},"names":{"type":"array","items":{"type":"string"}}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/decision-tables/reorder":{"post":{"summary":"Reorder decision tables of a given kind by setting their priority","tags":["decisionTables"],"parameters":[{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"decisionTableIds":{"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["kind","decisionTableIds"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"slugId":{"type":"string"},"description":{"type":["string","null"]},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"type":"string","enum":["first","collect"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"serviceConnectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"providerId":{"type":["string","null"]},"managedByApplicationId":{"type":["string","null"]},"currentVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdBy":{"type":["string","null"]}},"required":["id","context","name","slugId","description","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules","createdAt","updatedAt","createdBy"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/decision-tables/{decisionTableId}/test":{"post":{"summary":"Test a decision table with input values","tags":["decisionTables"],"parameters":[{"name":"decisionTableId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"matchedRuleIds":{"type":"array","items":{"type":"string"}},"outputs":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}}},"required":["matchedRuleIds","outputs"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/fx/rates":{"get":{"summary":"Get the FX rate table for a context","tags":["fx"],"parameters":[{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"baseCurrency":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9]{2,10}$"},{"type":"null"}]},"rates":{"type":"array","items":{"type":"object","properties":{"baseCurrency":{"type":"string","pattern":"^[A-Za-z0-9]{2,10}$"},"quoteCurrency":{"type":"string","pattern":"^[A-Za-z0-9]{2,10}$"},"rate":{"type":"number","exclusiveMinimum":0},"source":{"type":"string","enum":["provider","manual"]},"provider":{"type":["string","null"]},"asOf":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["baseCurrency","quoteCurrency","rate","source"],"additionalProperties":false}}},"required":["contextType","contextId","rates"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/fx/rates/override":{"put":{"summary":"Override a single FX rate (permission-gated)","tags":["fx"],"parameters":[{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"baseCurrency":{"type":"string","pattern":"^[A-Za-z0-9]{2,10}$"},"quoteCurrency":{"type":"string","pattern":"^[A-Za-z0-9]{2,10}$"},"rate":{"type":"number","exclusiveMinimum":0}},"required":["baseCurrency","quoteCurrency","rate"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"baseCurrency":{"type":"string","pattern":"^[A-Za-z0-9]{2,10}$"},"quoteCurrency":{"type":"string","pattern":"^[A-Za-z0-9]{2,10}$"},"rate":{"type":"number","exclusiveMinimum":0},"source":{"type":"string","enum":["provider","manual"]},"provider":{"type":["string","null"]},"asOf":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["baseCurrency","quoteCurrency","rate","source"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"summary":"Undo a manual FX rate override (permission-gated)","tags":["fx"],"parameters":[{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string"}},{"name":"baseCurrency","in":"query","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9]{2,10}$"}},{"name":"quoteCurrency","in":"query","required":true,"schema":{"type":"string","pattern":"^[A-Za-z0-9]{2,10}$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/fx/refresh":{"post":{"summary":"Refresh FX rates from the provider","tags":["fx"],"parameters":[{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"baseCurrency":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9]{2,10}$"},{"type":"null"}]},"rates":{"type":"array","items":{"type":"object","properties":{"baseCurrency":{"type":"string","pattern":"^[A-Za-z0-9]{2,10}$"},"quoteCurrency":{"type":"string","pattern":"^[A-Za-z0-9]{2,10}$"},"rate":{"type":"number","exclusiveMinimum":0},"source":{"type":"string","enum":["provider","manual"]},"provider":{"type":["string","null"]},"asOf":{"type":["string","null"]},"updatedAt":{"type":["string","null"]}},"required":["baseCurrency","quoteCurrency","rate","source"],"additionalProperties":false}}},"required":["contextType","contextId","rates"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"502":{"description":"502","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/organizations":{"get":{"summary":"List organizations the user has access to","tags":["organizations"],"parameters":[{"name":"page","in":"query","schema":{"default":1,"type":"number"}},{"name":"pageSize","in":"query","schema":{"default":50,"type":"number","minimum":1,"maximum":500}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"status":{"type":"string","enum":["ACTIVE","INACTIVE","SUSPENDED"]},"locale":{"default":"en","type":"string","enum":["en","sv","no","da","fi","de","fr","es","it","nl","pl","pt","ru","ja","zh","ko","ar","he"]},"businessModel":{"default":"PAYMENT_PROVIDER","type":"string","enum":["PAYMENT_PROVIDER","GATEWAY"]},"acceptedCustomerKinds":{"default":["STANDARD","PROVIDER"],"minItems":1,"type":"array","items":{"type":"string","enum":["STANDARD","PROVIDER"]},"description":"The types of company customer the organization takes on: STANDARD (merchants), PROVIDER (payment providers) or both"},"acceptedLegalEntityTypes":{"default":["COMPANY"],"minItems":1,"type":"array","items":{"type":"string","enum":["COMPANY","INDIVIDUAL"]},"description":"The kinds of customer the organization takes on: COMPANY, INDIVIDUAL or both"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","status","locale","businessModel","acceptedCustomerKinds","acceptedLegalEntityTypes","createdAt","updatedAt"],"additionalProperties":false}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}}}},"post":{"summary":"Create a new organization","tags":["organizations"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"status":{"type":"string","enum":["ACTIVE","INACTIVE","SUSPENDED"]},"locale":{"default":"en","type":"string","enum":["en","sv","no","da","fi","de","fr","es","it","nl","pl","pt","ru","ja","zh","ko","ar","he"]},"businessModel":{"default":"PAYMENT_PROVIDER","type":"string","enum":["PAYMENT_PROVIDER","GATEWAY"]},"acceptedCustomerKinds":{"default":["STANDARD","PROVIDER"],"minItems":1,"type":"array","items":{"type":"string","enum":["STANDARD","PROVIDER"]},"description":"The types of company customer the organization takes on: STANDARD (merchants), PROVIDER (payment providers) or both"},"acceptedLegalEntityTypes":{"default":["COMPANY"],"minItems":1,"type":"array","items":{"type":"string","enum":["COMPANY","INDIVIDUAL"]},"description":"The kinds of customer the organization takes on: COMPANY, INDIVIDUAL or both"}},"required":["name","status"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"status":{"type":"string","enum":["ACTIVE","INACTIVE","SUSPENDED"]},"locale":{"default":"en","type":"string","enum":["en","sv","no","da","fi","de","fr","es","it","nl","pl","pt","ru","ja","zh","ko","ar","he"]},"businessModel":{"default":"PAYMENT_PROVIDER","type":"string","enum":["PAYMENT_PROVIDER","GATEWAY"]},"acceptedCustomerKinds":{"default":["STANDARD","PROVIDER"],"minItems":1,"type":"array","items":{"type":"string","enum":["STANDARD","PROVIDER"]},"description":"The types of company customer the organization takes on: STANDARD (merchants), PROVIDER (payment providers) or both"},"acceptedLegalEntityTypes":{"default":["COMPANY"],"minItems":1,"type":"array","items":{"type":"string","enum":["COMPANY","INDIVIDUAL"]},"description":"The kinds of customer the organization takes on: COMPANY, INDIVIDUAL or both"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","status","locale","businessModel","acceptedCustomerKinds","acceptedLegalEntityTypes","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}":{"get":{"summary":"Get an organization by ID","tags":["organizations"],"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"status":{"type":"string","enum":["ACTIVE","INACTIVE","SUSPENDED"]},"locale":{"default":"en","type":"string","enum":["en","sv","no","da","fi","de","fr","es","it","nl","pl","pt","ru","ja","zh","ko","ar","he"]},"businessModel":{"default":"PAYMENT_PROVIDER","type":"string","enum":["PAYMENT_PROVIDER","GATEWAY"]},"acceptedCustomerKinds":{"default":["STANDARD","PROVIDER"],"minItems":1,"type":"array","items":{"type":"string","enum":["STANDARD","PROVIDER"]},"description":"The types of company customer the organization takes on: STANDARD (merchants), PROVIDER (payment providers) or both"},"acceptedLegalEntityTypes":{"default":["COMPANY"],"minItems":1,"type":"array","items":{"type":"string","enum":["COMPANY","INDIVIDUAL"]},"description":"The kinds of customer the organization takes on: COMPANY, INDIVIDUAL or both"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","status","locale","businessModel","acceptedCustomerKinds","acceptedLegalEntityTypes","createdAt","updatedAt"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"patch":{"summary":"Update an organization","tags":["organizations"],"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"status":{"type":"string","enum":["ACTIVE","INACTIVE","SUSPENDED"]},"locale":{"type":"string","enum":["en","sv","no","da","fi","de","fr","es","it","nl","pl","pt","ru","ja","zh","ko","ar","he"]},"businessModel":{"type":"string","enum":["PAYMENT_PROVIDER","GATEWAY"]},"acceptedCustomerKinds":{"minItems":1,"type":"array","items":{"type":"string","enum":["STANDARD","PROVIDER"]},"description":"The types of company customer the organization takes on: STANDARD (merchants), PROVIDER (payment providers) or both"},"acceptedLegalEntityTypes":{"minItems":1,"type":"array","items":{"type":"string","enum":["COMPANY","INDIVIDUAL"]},"description":"The kinds of customer the organization takes on: COMPANY, INDIVIDUAL or both"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"status":{"type":"string","enum":["ACTIVE","INACTIVE","SUSPENDED"]},"locale":{"default":"en","type":"string","enum":["en","sv","no","da","fi","de","fr","es","it","nl","pl","pt","ru","ja","zh","ko","ar","he"]},"businessModel":{"default":"PAYMENT_PROVIDER","type":"string","enum":["PAYMENT_PROVIDER","GATEWAY"]},"acceptedCustomerKinds":{"default":["STANDARD","PROVIDER"],"minItems":1,"type":"array","items":{"type":"string","enum":["STANDARD","PROVIDER"]},"description":"The types of company customer the organization takes on: STANDARD (merchants), PROVIDER (payment providers) or both"},"acceptedLegalEntityTypes":{"default":["COMPANY"],"minItems":1,"type":"array","items":{"type":"string","enum":["COMPANY","INDIVIDUAL"]},"description":"The kinds of customer the organization takes on: COMPANY, INDIVIDUAL or both"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","status","locale","businessModel","acceptedCustomerKinds","acceptedLegalEntityTypes","createdAt","updatedAt"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/customers/sync":{"get":{"summary":"Sync organization's customers from Financial system","tags":["organizations"],"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/legal-entity":{"get":{"summary":"Get the organization's legal entity","tags":["organizations"],"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"origin":{"type":"string","enum":["MIGRATED","OPERATOR","ERP_SYNC","PROVISIONED","SELF_SERVICE","ORGANIZATION"]},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string"},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["personKey","roles","firstName","lastName"],"additionalProperties":false}},"owners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string"},"addedInVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byYourOrganization":{"type":"boolean"},"uploadedByName":{"type":["string","null"]}},"required":["id","kind","fileName","fileType","fileSize","uploadedAt","addedInVersion","byYourOrganization","uploadedByName"],"additionalProperties":false}},"documentStorage":{"type":"boolean"},"updatedAt":{"type":"string"},"isController":{"type":"boolean"},"sharedWithYou":{"anyOf":[{"type":"object","properties":{"consentedAt":{"type":"string"}},"required":["consentedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["id","version","origin","company","people","owners","documents","documentStorage","updatedAt","isController","sharedWithYou"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"put":{"description":"Replaces company details, people and corporate owners.","summary":"Save a new version of the organization's legal entity","tags":["organizations"],"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"expectedVersion":{"type":"integer","minimum":1,"maximum":9007199254740991},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"]},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}}},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"]},"people":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string","minLength":1,"maxLength":64},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["roles","firstName","lastName"]}},"owners":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"]}}},"required":["expectedVersion","company","people","owners"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"origin":{"type":"string","enum":["MIGRATED","OPERATOR","ERP_SYNC","PROVISIONED","SELF_SERVICE","ORGANIZATION"]},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string"},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["personKey","roles","firstName","lastName"],"additionalProperties":false}},"owners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string"},"addedInVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byYourOrganization":{"type":"boolean"},"uploadedByName":{"type":["string","null"]}},"required":["id","kind","fileName","fileType","fileSize","uploadedAt","addedInVersion","byYourOrganization","uploadedByName"],"additionalProperties":false}},"documentStorage":{"type":"boolean"},"updatedAt":{"type":"string"},"isController":{"type":"boolean"},"sharedWithYou":{"anyOf":[{"type":"object","properties":{"consentedAt":{"type":"string"}},"required":["consentedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["id","version","origin","company","people","owners","documents","documentStorage","updatedAt","isController","sharedWithYou"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string","enum":["NOT_CONTROLLER","VERSION_CONFLICT"]}},"required":["message","code"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/legal-entity/versions":{"get":{"summary":"List the versions of the organization's legal entity, newest first","tags":["organizations"],"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"changeReason":{"type":"string","enum":["MIGRATED","CREATED","DETAILS_CHANGE","ADDRESS_CHANGE","DIRECTOR_CHANGE","UBO_CHANGE","PEOPLE_CHANGE","OWNERSHIP_CHANGE","DOCUMENTS_CHANGE","MERGED"]},"changedFields":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"byYourOrganization":{"type":"boolean"},"createdByName":{"type":["string","null"]}},"required":["version","changeReason","changedFields","createdAt","byYourOrganization","createdByName"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/legal-entity/versions/{version}":{"get":{"summary":"Get one version of the organization's legal entity","tags":["organizations"],"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"version","in":"path","required":true,"schema":{"type":"integer","minimum":1,"maximum":9007199254740991}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"changeReason":{"type":"string","enum":["MIGRATED","CREATED","DETAILS_CHANGE","ADDRESS_CHANGE","DIRECTOR_CHANGE","UBO_CHANGE","PEOPLE_CHANGE","OWNERSHIP_CHANGE","DOCUMENTS_CHANGE","MERGED"]},"changedFields":{"type":"array","items":{"type":"string"}},"createdAt":{"type":"string"},"byYourOrganization":{"type":"boolean"},"createdByName":{"type":["string","null"]},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string"},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["personKey","roles","firstName","lastName"],"additionalProperties":false}},"owners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string"},"addedInVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byYourOrganization":{"type":"boolean"},"uploadedByName":{"type":["string","null"]}},"required":["id","kind","fileName","fileType","fileSize","uploadedAt","addedInVersion","byYourOrganization","uploadedByName"],"additionalProperties":false}}},"required":["version","changeReason","changedFields","createdAt","byYourOrganization","createdByName","company","people","owners","documents"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/legal-entity/documents":{"post":{"summary":"Add a company document, as a new version of the organization's legal entity","tags":["organizations"],"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"expectedVersion":{"type":"integer","minimum":1,"maximum":9007199254740991},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string","minLength":1,"maxLength":200},"fileType":{"type":"string","enum":["application/pdf","image/png","image/jpeg","image/jpg"]},"contentBase64":{"type":"string","minLength":1,"maxLength":13981018}},"required":["expectedVersion","kind","fileName","fileType","contentBase64"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"origin":{"type":"string","enum":["MIGRATED","OPERATOR","ERP_SYNC","PROVISIONED","SELF_SERVICE","ORGANIZATION"]},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string"},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["personKey","roles","firstName","lastName"],"additionalProperties":false}},"owners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string"},"addedInVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byYourOrganization":{"type":"boolean"},"uploadedByName":{"type":["string","null"]}},"required":["id","kind","fileName","fileType","fileSize","uploadedAt","addedInVersion","byYourOrganization","uploadedByName"],"additionalProperties":false}},"documentStorage":{"type":"boolean"},"updatedAt":{"type":"string"},"isController":{"type":"boolean"},"sharedWithYou":{"anyOf":[{"type":"object","properties":{"consentedAt":{"type":"string"}},"required":["consentedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["id","version","origin","company","people","owners","documents","documentStorage","updatedAt","isController","sharedWithYou"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string","enum":["NOT_CONTROLLER","VERSION_CONFLICT"]}},"required":["message","code"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/legal-entity/documents/{documentId}/remove":{"post":{"summary":"Remove a company document, as a new version; earlier versions keep it","tags":["organizations"],"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"documentId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"expectedVersion":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["expectedVersion"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"origin":{"type":"string","enum":["MIGRATED","OPERATOR","ERP_SYNC","PROVISIONED","SELF_SERVICE","ORGANIZATION"]},"company":{"type":"object","properties":{"legalEntityType":{"anyOf":[{"type":"string","enum":["COMPANY","INDIVIDUAL"]},{"type":"null"}]},"individual":{"anyOf":[{"type":"object","properties":{"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"nationalId":{"description":"Personal identity number, e.g. a Swedish personnummer","type":["string","null"]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["firstName","lastName"],"additionalProperties":false},{"type":"null"}]},"legalName":{"type":"string","minLength":1},"regNo":{"description":"Registration number","type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"type":["string","null"]},"type":{"anyOf":[{"type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]},{"type":"null"}]}},"additionalProperties":false},{"type":"null"}]},"legalForm":{"description":"Legal form, e.g. Aktiebolag, GmbH, Ltd","type":["string","null"]},"incorporationDate":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"url":{"type":["string","null"]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"people":{"type":"array","items":{"type":"object","properties":{"personKey":{"type":"string"},"roles":{"minItems":1,"type":"array","items":{"type":"string","enum":["DIRECTOR","UBO","SIGNATORY","SHAREHOLDER"]}},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"dateOfBirth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},{"type":"null"}]},"nationality":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"residenceCountry":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]},"controlType":{"anyOf":[{"type":"string","enum":["OWNERSHIP","VOTING","OTHER_CONTROL","SENIOR_MANAGER"]},{"type":"null"}]},"pepDeclared":{"description":"Declared to be a politically exposed person","type":["boolean","null"]}},"required":["personKey","roles","firstName","lastName"],"additionalProperties":false}},"owners":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]},"ownershipPercent":{"anyOf":[{"type":"string","pattern":"^\\d{1,3}(\\.\\d{1,4})?$"},{"type":"null"}]}},"required":["name"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["REGISTRY_EXTRACT","ARTICLES","SHAREHOLDER_REGISTER","UBO_DECLARATION","OTHER"]},"fileName":{"type":"string"},"fileType":{"type":"string"},"fileSize":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"uploadedAt":{"type":"string"},"addedInVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"byYourOrganization":{"type":"boolean"},"uploadedByName":{"type":["string","null"]}},"required":["id","kind","fileName","fileType","fileSize","uploadedAt","addedInVersion","byYourOrganization","uploadedByName"],"additionalProperties":false}},"documentStorage":{"type":"boolean"},"updatedAt":{"type":"string"},"isController":{"type":"boolean"},"sharedWithYou":{"anyOf":[{"type":"object","properties":{"consentedAt":{"type":"string"}},"required":["consentedAt"],"additionalProperties":false},{"type":"null"}]}},"required":["id","version","origin","company","people","owners","documents","documentStorage","updatedAt","isController","sharedWithYou"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string","enum":["NOT_CONTROLLER","VERSION_CONFLICT"]}},"required":["message","code"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/legal-entity/documents/{documentId}/download":{"get":{"summary":"Download a document of any version of the organization's legal entity","tags":["organizations"],"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"documentId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/services/definitions":{"get":{"summary":"Get the service definitions available to a context","tags":["serviceConnections"],"parameters":[{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"interfaces":{"type":"array","items":{"type":"string","enum":["erp","payment","analytics","crm","iplookup","binlookup","cardinspect","exchange","cryptoexchange","devicefingerprint","threeds","risk","email","sms","ai","bank","observability"]}},"contexts":{"type":"array","items":{"type":"string","enum":["organization","partner","customer"]}},"authTypes":{"type":"array","items":{"type":"string","enum":["oauth","api_key"]}},"allowsMultipleConnections":{"default":true,"type":"boolean"},"uiMetadata":{"type":"object","properties":{"icon":{"type":"string"},"category":{"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["text","password","select","textarea","number","email","url","checkbox","multiselect"]},"required":{"type":"boolean"},"placeholder":{"type":"string"},"description":{"type":"string"},"help":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"meaning":{"type":"string"}},"required":["value","meaning"],"additionalProperties":false}},"links":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string","format":"uri"}},"required":["label","url"],"additionalProperties":false}}},"required":["text"],"additionalProperties":false},"default":{},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"validation":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"modes":{"type":"array","items":{"type":"string","enum":["test","live"]}},"showWhen":{"type":"object","properties":{"field":{"type":"string"},"equals":{},"notEquals":{}},"required":["field"],"additionalProperties":false}},"required":["name","label","type"],"additionalProperties":false}},"description":{"type":"string"},"testing":{"type":"object","properties":{"intro":{"type":"string"},"cards":{"type":"array","items":{"type":"object","properties":{"pan":{"type":"string"},"brand":{"type":"string"},"expiry":{"type":"string"},"cvv":{"type":"string"},"scenario":{"type":"string"}},"required":["pan","scenario"],"additionalProperties":false}},"triggers":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"value":{"type":"string"},"effect":{"type":"string"}},"required":["field","value","effect"],"additionalProperties":false}},"notes":{"type":"array","items":{"type":"string"}},"links":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string","format":"uri"}},"required":["label","url"],"additionalProperties":false}}},"additionalProperties":false}},"additionalProperties":false},"supportsWhiteLabel":{"type":"boolean"},"supportedPaymentOptions":{"type":"array","items":{"type":"string"}},"outputFields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean"]},"description":{"type":"string"}},"required":["id","label","type"],"additionalProperties":false}},"capabilities":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"defaults":{"type":"object","properties":{"constraints":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"allow":{"readOnly":true,"type":"array","items":{"type":"string"}},"deny":{"readOnly":true,"type":"array","items":{"type":"string"}}},"additionalProperties":false}}},"additionalProperties":false},"options":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"operations":{"readOnly":true,"type":"array","items":{"type":"string"}},"constraints":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"allow":{"readOnly":true,"type":"array","items":{"type":"string"}},"deny":{"readOnly":true,"type":"array","items":{"type":"string"}}},"additionalProperties":false}},"flows":{"readOnly":true,"type":"array","items":{"type":"string"}},"notes":{"type":"string"},"retired":{"type":"boolean"}},"required":["option","operations"],"additionalProperties":false}}},"required":["options"],"additionalProperties":false}},"environments":{"type":"object","properties":{"field":{"type":"string"},"test":{"type":"string"},"live":{"type":"string"},"credentialField":{"type":"string"}},"additionalProperties":false}},"required":["id","name","description","interfaces","contexts","authTypes","allowsMultipleConnections"],"additionalProperties":false}}}}}}}},"/api/v1/services/interfaces/{interface}":{"get":{"summary":"Get services implementing a specific interface","tags":["serviceConnections"],"parameters":[{"name":"interface","in":"path","required":true,"schema":{"type":"string","enum":["erp","payment","analytics","crm","iplookup","binlookup","cardinspect","exchange","cryptoexchange","devicefingerprint","threeds","risk","email","sms","ai","bank","observability"]}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"interfaces":{"type":"array","items":{"type":"string","enum":["erp","payment","analytics","crm","iplookup","binlookup","cardinspect","exchange","cryptoexchange","devicefingerprint","threeds","risk","email","sms","ai","bank","observability"]}},"contexts":{"type":"array","items":{"type":"string","enum":["organization","partner","customer"]}},"authTypes":{"type":"array","items":{"type":"string","enum":["oauth","api_key"]}},"allowsMultipleConnections":{"default":true,"type":"boolean"},"uiMetadata":{"type":"object","properties":{"icon":{"type":"string"},"category":{"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["text","password","select","textarea","number","email","url","checkbox","multiselect"]},"required":{"type":"boolean"},"placeholder":{"type":"string"},"description":{"type":"string"},"help":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"meaning":{"type":"string"}},"required":["value","meaning"],"additionalProperties":false}},"links":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string","format":"uri"}},"required":["label","url"],"additionalProperties":false}}},"required":["text"],"additionalProperties":false},"default":{},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"validation":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"modes":{"type":"array","items":{"type":"string","enum":["test","live"]}},"showWhen":{"type":"object","properties":{"field":{"type":"string"},"equals":{},"notEquals":{}},"required":["field"],"additionalProperties":false}},"required":["name","label","type"],"additionalProperties":false}},"description":{"type":"string"},"testing":{"type":"object","properties":{"intro":{"type":"string"},"cards":{"type":"array","items":{"type":"object","properties":{"pan":{"type":"string"},"brand":{"type":"string"},"expiry":{"type":"string"},"cvv":{"type":"string"},"scenario":{"type":"string"}},"required":["pan","scenario"],"additionalProperties":false}},"triggers":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"value":{"type":"string"},"effect":{"type":"string"}},"required":["field","value","effect"],"additionalProperties":false}},"notes":{"type":"array","items":{"type":"string"}},"links":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string","format":"uri"}},"required":["label","url"],"additionalProperties":false}}},"additionalProperties":false}},"additionalProperties":false},"supportsWhiteLabel":{"type":"boolean"},"supportedPaymentOptions":{"type":"array","items":{"type":"string"}},"outputFields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean"]},"description":{"type":"string"}},"required":["id","label","type"],"additionalProperties":false}},"capabilities":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"defaults":{"type":"object","properties":{"constraints":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"allow":{"readOnly":true,"type":"array","items":{"type":"string"}},"deny":{"readOnly":true,"type":"array","items":{"type":"string"}}},"additionalProperties":false}}},"additionalProperties":false},"options":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"operations":{"readOnly":true,"type":"array","items":{"type":"string"}},"constraints":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"allow":{"readOnly":true,"type":"array","items":{"type":"string"}},"deny":{"readOnly":true,"type":"array","items":{"type":"string"}}},"additionalProperties":false}},"flows":{"readOnly":true,"type":"array","items":{"type":"string"}},"notes":{"type":"string"},"retired":{"type":"boolean"}},"required":["option","operations"],"additionalProperties":false}}},"required":["options"],"additionalProperties":false}},"environments":{"type":"object","properties":{"field":{"type":"string"},"test":{"type":"string"},"live":{"type":"string"},"credentialField":{"type":"string"}},"additionalProperties":false}},"required":["id","name","description","interfaces","contexts","authTypes","allowsMultipleConnections"],"additionalProperties":false}}}}}}}},"/api/v1/services/contexts/{context}":{"get":{"summary":"Get services available for a specific context","tags":["serviceConnections"],"parameters":[{"name":"context","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"interfaces":{"type":"array","items":{"type":"string","enum":["erp","payment","analytics","crm","iplookup","binlookup","cardinspect","exchange","cryptoexchange","devicefingerprint","threeds","risk","email","sms","ai","bank","observability"]}},"contexts":{"type":"array","items":{"type":"string","enum":["organization","partner","customer"]}},"authTypes":{"type":"array","items":{"type":"string","enum":["oauth","api_key"]}},"allowsMultipleConnections":{"default":true,"type":"boolean"},"uiMetadata":{"type":"object","properties":{"icon":{"type":"string"},"category":{"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["text","password","select","textarea","number","email","url","checkbox","multiselect"]},"required":{"type":"boolean"},"placeholder":{"type":"string"},"description":{"type":"string"},"help":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"meaning":{"type":"string"}},"required":["value","meaning"],"additionalProperties":false}},"links":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string","format":"uri"}},"required":["label","url"],"additionalProperties":false}}},"required":["text"],"additionalProperties":false},"default":{},"options":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"label":{"type":"string"}},"required":["value","label"],"additionalProperties":false}},"validation":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"modes":{"type":"array","items":{"type":"string","enum":["test","live"]}},"showWhen":{"type":"object","properties":{"field":{"type":"string"},"equals":{},"notEquals":{}},"required":["field"],"additionalProperties":false}},"required":["name","label","type"],"additionalProperties":false}},"description":{"type":"string"},"testing":{"type":"object","properties":{"intro":{"type":"string"},"cards":{"type":"array","items":{"type":"object","properties":{"pan":{"type":"string"},"brand":{"type":"string"},"expiry":{"type":"string"},"cvv":{"type":"string"},"scenario":{"type":"string"}},"required":["pan","scenario"],"additionalProperties":false}},"triggers":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"value":{"type":"string"},"effect":{"type":"string"}},"required":["field","value","effect"],"additionalProperties":false}},"notes":{"type":"array","items":{"type":"string"}},"links":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string","format":"uri"}},"required":["label","url"],"additionalProperties":false}}},"additionalProperties":false}},"additionalProperties":false},"supportsWhiteLabel":{"type":"boolean"},"supportedPaymentOptions":{"type":"array","items":{"type":"string"}},"outputFields":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean"]},"description":{"type":"string"}},"required":["id","label","type"],"additionalProperties":false}},"capabilities":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"defaults":{"type":"object","properties":{"constraints":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"allow":{"readOnly":true,"type":"array","items":{"type":"string"}},"deny":{"readOnly":true,"type":"array","items":{"type":"string"}}},"additionalProperties":false}}},"additionalProperties":false},"options":{"readOnly":true,"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"operations":{"readOnly":true,"type":"array","items":{"type":"string"}},"constraints":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"allow":{"readOnly":true,"type":"array","items":{"type":"string"}},"deny":{"readOnly":true,"type":"array","items":{"type":"string"}}},"additionalProperties":false}},"flows":{"readOnly":true,"type":"array","items":{"type":"string"}},"notes":{"type":"string"},"retired":{"type":"boolean"}},"required":["option","operations"],"additionalProperties":false}}},"required":["options"],"additionalProperties":false}},"environments":{"type":"object","properties":{"field":{"type":"string"},"test":{"type":"string"},"live":{"type":"string"},"credentialField":{"type":"string"}},"additionalProperties":false}},"required":["id","name","description","interfaces","contexts","authTypes","allowsMultipleConnections"],"additionalProperties":false}}}}}}}},"/api/v1/service-connections":{"get":{"summary":"List service connections for current context","tags":["serviceConnections"],"parameters":[{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serviceId":{"type":"string"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authenticationType":{"type":"string","const":"oauth"},"name":{"type":"string","minLength":1},"status":{"type":"string","enum":["ACTIVE","INACTIVE","PENDING","ERROR","EXPIRED"]},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"lastSyncedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"managedByApplicationId":{"type":["string","null"]},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"clientId":{"type":"string"},"tokenExpiry":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","serviceId","slugId","contextType","contextId","authenticationType","name","status","config","createdAt","updatedAt","clientId","tokenExpiry"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serviceId":{"type":"string"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authenticationType":{"type":"string","const":"api_key"},"name":{"type":"string","minLength":1},"status":{"type":"string","enum":["ACTIVE","INACTIVE","PENDING","ERROR","EXPIRED"]},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"lastSyncedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"managedByApplicationId":{"type":["string","null"]},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"refreshToken":{"type":"string"},"tokenExpiry":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","serviceId","slugId","contextType","contextId","authenticationType","name","status","config","createdAt","updatedAt"],"additionalProperties":false}]}}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/service-connections/{slugId}":{"get":{"summary":"Get a service connection by slugId (context from auth header)","tags":["serviceConnections"],"parameters":[{"name":"slugId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serviceId":{"type":"string"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authenticationType":{"type":"string","const":"oauth"},"name":{"type":"string","minLength":1},"status":{"type":"string","enum":["ACTIVE","INACTIVE","PENDING","ERROR","EXPIRED"]},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"lastSyncedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"managedByApplicationId":{"type":["string","null"]},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"clientId":{"type":"string"},"tokenExpiry":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","serviceId","slugId","contextType","contextId","authenticationType","name","status","config","createdAt","updatedAt","clientId","tokenExpiry"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serviceId":{"type":"string"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authenticationType":{"type":"string","const":"api_key"},"name":{"type":"string","minLength":1},"status":{"type":"string","enum":["ACTIVE","INACTIVE","PENDING","ERROR","EXPIRED"]},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"lastSyncedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"managedByApplicationId":{"type":["string","null"]},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"refreshToken":{"type":"string"},"tokenExpiry":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","serviceId","slugId","contextType","contextId","authenticationType","name","status","config","createdAt","updatedAt"],"additionalProperties":false}]}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/service-connections/oauth":{"post":{"summary":"Initiate an OAuth service connection flow","tags":["serviceConnections"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"serviceId":{"type":"string"},"providerSlug":{"type":"string"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authenticationType":{"type":"string","const":"oauth"},"name":{"type":"string","minLength":1},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["serviceId","contextType","contextId","authenticationType","name","config"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"authorizationUrl":{"type":"string","format":"uri"},"state":{"type":"string"}},"required":["authorizationUrl","state"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/oauth/callback":{"get":{"summary":"Complete a service connection OAuth flow","tags":["serviceConnections"],"parameters":[{"name":"code","in":"query","required":true,"schema":{"type":"string"}},{"name":"state","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serviceId":{"type":"string"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authenticationType":{"type":"string","const":"oauth"},"name":{"type":"string","minLength":1},"status":{"type":"string","enum":["ACTIVE","INACTIVE","PENDING","ERROR","EXPIRED"]},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"lastSyncedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"managedByApplicationId":{"type":["string","null"]},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"clientId":{"type":"string"},"tokenExpiry":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","serviceId","slugId","contextType","contextId","authenticationType","name","status","config","createdAt","updatedAt","clientId","tokenExpiry"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serviceId":{"type":"string"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authenticationType":{"type":"string","const":"api_key"},"name":{"type":"string","minLength":1},"status":{"type":"string","enum":["ACTIVE","INACTIVE","PENDING","ERROR","EXPIRED"]},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"lastSyncedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"managedByApplicationId":{"type":["string","null"]},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"refreshToken":{"type":"string"},"tokenExpiry":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","serviceId","slugId","contextType","contextId","authenticationType","name","status","config","createdAt","updatedAt"],"additionalProperties":false}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/service-connections/api-key":{"post":{"summary":"Create an API key service connection","tags":["serviceConnections"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"serviceId":{"type":"string"},"providerSlug":{"type":"string"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authenticationType":{"type":"string","const":"api_key"},"name":{"type":"string","minLength":1},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["serviceId","contextType","contextId","authenticationType","name","config"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serviceId":{"type":"string"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authenticationType":{"type":"string","const":"oauth"},"name":{"type":"string","minLength":1},"status":{"type":"string","enum":["ACTIVE","INACTIVE","PENDING","ERROR","EXPIRED"]},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"lastSyncedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"managedByApplicationId":{"type":["string","null"]},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"clientId":{"type":"string"},"tokenExpiry":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","serviceId","slugId","contextType","contextId","authenticationType","name","status","config","createdAt","updatedAt","clientId","tokenExpiry"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serviceId":{"type":"string"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authenticationType":{"type":"string","const":"api_key"},"name":{"type":"string","minLength":1},"status":{"type":"string","enum":["ACTIVE","INACTIVE","PENDING","ERROR","EXPIRED"]},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"lastSyncedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"managedByApplicationId":{"type":["string","null"]},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"refreshToken":{"type":"string"},"tokenExpiry":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","serviceId","slugId","contextType","contextId","authenticationType","name","status","config","createdAt","updatedAt"],"additionalProperties":false}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/service-connections/{id}/test":{"post":{"summary":"Test a service connection","tags":["serviceConnections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["ACTIVE","INACTIVE","PENDING","ERROR","EXPIRED"]},"message":{"type":"string"}},"required":["status"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/service-connections/{id}":{"put":{"summary":"Update a service connection","tags":["serviceConnections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serviceId":{"type":"string"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authenticationType":{"type":"string","const":"oauth"},"name":{"type":"string","minLength":1},"status":{"type":"string","enum":["ACTIVE","INACTIVE","PENDING","ERROR","EXPIRED"]},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"lastSyncedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"managedByApplicationId":{"type":["string","null"]},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"clientId":{"type":"string"},"tokenExpiry":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","serviceId","slugId","contextType","contextId","authenticationType","name","status","config","createdAt","updatedAt","clientId","tokenExpiry"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serviceId":{"type":"string"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authenticationType":{"type":"string","const":"api_key"},"name":{"type":"string","minLength":1},"status":{"type":"string","enum":["ACTIVE","INACTIVE","PENDING","ERROR","EXPIRED"]},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"lastSyncedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"managedByApplicationId":{"type":["string","null"]},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"refreshToken":{"type":"string"},"tokenExpiry":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","serviceId","slugId","contextType","contextId","authenticationType","name","status","config","createdAt","updatedAt"],"additionalProperties":false}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"summary":"Delete a service connection","tags":["serviceConnections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"openTransactions":{"type":"number"},"recentTransactions":{"type":"number"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/service-connections/{id}/fees":{"get":{"summary":"The provider fees of a provider account","tags":["serviceConnections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["manual","provider"]},"editable":{"type":"boolean"},"providerName":{"type":["string","null"]},"tables":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"slugId":{"type":"string"},"description":{"type":["string","null"]},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"type":"string","enum":["first","collect"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"serviceConnectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"providerId":{"type":["string","null"]},"managedByApplicationId":{"type":["string","null"]},"currentVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdBy":{"type":["string","null"]}},"required":["id","context","name","slugId","description","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules","createdAt","updatedAt","createdBy"],"additionalProperties":false}}},"required":["connectionId","source","editable","tables"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"post":{"summary":"Add a provider fee rule set to a provider account","tags":["serviceConnections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}}}},"required":["id","label"]}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"]}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"]}}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"slugId":{"type":"string"},"description":{"type":["string","null"]},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"type":"string","enum":["first","collect"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"serviceConnectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"providerId":{"type":["string","null"]},"managedByApplicationId":{"type":["string","null"]},"currentVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdBy":{"type":["string","null"]}},"required":["id","context","name","slugId","description","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules","createdAt","updatedAt","createdBy"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/service-connections/{id}/fees/{tableId}":{"put":{"summary":"Change one of a provider account's fee rule sets","tags":["serviceConnections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"tableId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200},"enabled":{"type":"boolean"},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}}}},"required":["id","label"]}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"]}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"]}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"slugId":{"type":"string"},"description":{"type":["string","null"]},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"type":"string","enum":["first","collect"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"serviceConnectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"providerId":{"type":["string","null"]},"managedByApplicationId":{"type":["string","null"]},"currentVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdBy":{"type":["string","null"]}},"required":["id","context","name","slugId","description","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules","createdAt","updatedAt","createdBy"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"summary":"Remove one of a provider account's fee rule sets","tags":["serviceConnections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"tableId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/service-connections/{id}/versions":{"get":{"summary":"The versions of a provider account","tags":["serviceConnections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"entityType":{"type":"string","enum":["service-connection","account-fees","provider","provider-policy","settings","decision-table","provider-settings","provider-inputs"]},"entityKey":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"change":{"type":"string"},"sourceVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"changes":{"anyOf":[{"type":"object","properties":{"details":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"field"},"path":{"type":"string"},"label":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"secret"},"path":{"type":"string"},"label":{"type":"string"},"action":{"type":"string","enum":["set","replaced","cleared"]}},"required":["type","path","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"path":{"type":"string"},"label":{"type":"string"},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","path","added","removed"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-table"},"table":{"type":"string"},"action":{"type":"string","enum":["added","removed"]}},"required":["type","table","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-rule"},"table":{"type":"string"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","table","detail"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","detail"],"additionalProperties":false}]}},"moreDetails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["details"],"additionalProperties":false},{"type":"null"}]},"note":{"type":["string","null"]},"actor":{"type":"object","properties":{"type":{"type":"string","enum":["user","api","system"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"onBehalf":{"type":"boolean"}},"required":["type","id","name","onBehalf"],"additionalProperties":false},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string"},"isCurrent":{"type":"boolean"}},"required":["id","entityType","entityKey","version","change","sourceVersion","changes","note","actor","mode","createdAt","isCurrent"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/service-connections/{id}/versions/{versionId}":{"get":{"summary":"One version of a provider account (secrets only as set or not)","tags":["serviceConnections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"entityType":{"type":"string","enum":["service-connection","account-fees","provider","provider-policy","settings","decision-table","provider-settings","provider-inputs"]},"entityKey":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"change":{"type":"string"},"sourceVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"changes":{"anyOf":[{"type":"object","properties":{"details":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"field"},"path":{"type":"string"},"label":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"secret"},"path":{"type":"string"},"label":{"type":"string"},"action":{"type":"string","enum":["set","replaced","cleared"]}},"required":["type","path","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"path":{"type":"string"},"label":{"type":"string"},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","path","added","removed"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-table"},"table":{"type":"string"},"action":{"type":"string","enum":["added","removed"]}},"required":["type","table","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-rule"},"table":{"type":"string"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","table","detail"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","detail"],"additionalProperties":false}]}},"moreDetails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["details"],"additionalProperties":false},{"type":"null"}]},"note":{"type":["string","null"]},"actor":{"type":"object","properties":{"type":{"type":"string","enum":["user","api","system"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"onBehalf":{"type":"boolean"}},"required":["type","id","name","onBehalf"],"additionalProperties":false},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string"},"isCurrent":{"type":"boolean"},"snapshot":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","entityType","entityKey","version","change","sourceVersion","changes","note","actor","mode","createdAt","isCurrent","snapshot"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/service-connections/{id}/versions/{versionId}/restore":{"post":{"description":"Restores the account's name and non-secret settings as a new version. Secrets, slug and identity are kept. Refused (409) when the account changed since `expectedVersion`.","summary":"Write an older version of a provider account back","tags":["serviceConnections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"expectedVersion":{"type":"integer","minimum":1,"maximum":9007199254740991},"note":{"type":"string","maxLength":500}},"required":["expectedVersion"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serviceId":{"type":"string"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authenticationType":{"type":"string","const":"oauth"},"name":{"type":"string","minLength":1},"status":{"type":"string","enum":["ACTIVE","INACTIVE","PENDING","ERROR","EXPIRED"]},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"lastSyncedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"managedByApplicationId":{"type":["string","null"]},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"clientId":{"type":"string"},"tokenExpiry":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","serviceId","slugId","contextType","contextId","authenticationType","name","status","config","createdAt","updatedAt","clientId","tokenExpiry"],"additionalProperties":false},{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"serviceId":{"type":"string"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"authenticationType":{"type":"string","const":"api_key"},"name":{"type":"string","minLength":1},"status":{"type":"string","enum":["ACTIVE","INACTIVE","PENDING","ERROR","EXPIRED"]},"config":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"lastSyncedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"managedByApplicationId":{"type":["string","null"]},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"clientId":{"type":"string"},"clientSecret":{"type":"string"},"refreshToken":{"type":"string"},"tokenExpiry":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","serviceId","slugId","contextType","contextId","authenticationType","name","status","config","createdAt","updatedAt"],"additionalProperties":false}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/service-connections/{id}/fees/versions":{"get":{"summary":"The versions of a provider account's fees","tags":["serviceConnections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"entityType":{"type":"string","enum":["service-connection","account-fees","provider","provider-policy","settings","decision-table","provider-settings","provider-inputs"]},"entityKey":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"change":{"type":"string"},"sourceVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"changes":{"anyOf":[{"type":"object","properties":{"details":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"field"},"path":{"type":"string"},"label":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"secret"},"path":{"type":"string"},"label":{"type":"string"},"action":{"type":"string","enum":["set","replaced","cleared"]}},"required":["type","path","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"path":{"type":"string"},"label":{"type":"string"},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","path","added","removed"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-table"},"table":{"type":"string"},"action":{"type":"string","enum":["added","removed"]}},"required":["type","table","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-rule"},"table":{"type":"string"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","table","detail"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","detail"],"additionalProperties":false}]}},"moreDetails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["details"],"additionalProperties":false},{"type":"null"}]},"note":{"type":["string","null"]},"actor":{"type":"object","properties":{"type":{"type":"string","enum":["user","api","system"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"onBehalf":{"type":"boolean"}},"required":["type","id","name","onBehalf"],"additionalProperties":false},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string"},"isCurrent":{"type":"boolean"}},"required":["id","entityType","entityKey","version","change","sourceVersion","changes","note","actor","mode","createdAt","isCurrent"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/service-connections/{id}/fees/versions/{versionId}":{"get":{"summary":"One version of a provider account's fees","tags":["serviceConnections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"entityType":{"type":"string","enum":["service-connection","account-fees","provider","provider-policy","settings","decision-table","provider-settings","provider-inputs"]},"entityKey":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"change":{"type":"string"},"sourceVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"changes":{"anyOf":[{"type":"object","properties":{"details":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"field"},"path":{"type":"string"},"label":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"secret"},"path":{"type":"string"},"label":{"type":"string"},"action":{"type":"string","enum":["set","replaced","cleared"]}},"required":["type","path","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"path":{"type":"string"},"label":{"type":"string"},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","path","added","removed"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-table"},"table":{"type":"string"},"action":{"type":"string","enum":["added","removed"]}},"required":["type","table","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-rule"},"table":{"type":"string"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","table","detail"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","detail"],"additionalProperties":false}]}},"moreDetails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["details"],"additionalProperties":false},{"type":"null"}]},"note":{"type":["string","null"]},"actor":{"type":"object","properties":{"type":{"type":"string","enum":["user","api","system"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"onBehalf":{"type":"boolean"}},"required":["type","id","name","onBehalf"],"additionalProperties":false},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string"},"isCurrent":{"type":"boolean"},"snapshot":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","entityType","entityKey","version","change","sourceVersion","changes","note","actor","mode","createdAt","isCurrent","snapshot"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/service-connections/{id}/fees/versions/{versionId}/restore":{"post":{"summary":"Put a provider account's own fee rule sets back as an older version held them","tags":["serviceConnections"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"expectedVersion":{"type":"integer","minimum":1,"maximum":9007199254740991},"note":{"type":"string","maxLength":500}},"required":["expectedVersion"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"connectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"source":{"type":"string","enum":["manual","provider"]},"editable":{"type":"boolean"},"providerName":{"type":["string","null"]},"tables":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"slugId":{"type":"string"},"description":{"type":["string","null"]},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"type":"string","enum":["first","collect"]},"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"serviceConnectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"providerId":{"type":["string","null"]},"managedByApplicationId":{"type":["string","null"]},"currentVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdBy":{"type":["string","null"]}},"required":["id","context","name","slugId","description","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules","createdAt","updatedAt","createdBy"],"additionalProperties":false}}},"required":["connectionId","source","editable","tables"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/providers":{"get":{"summary":"List providers for the current context","tags":["providers"],"parameters":[{"name":"serviceInterface","in":"query","schema":{"type":"string"}},{"name":"connectorId","in":"query","schema":{"type":"string"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"connectorId":{"type":"string"},"serviceInterface":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"enabled":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"enabled":{"type":"boolean"},"operations":{"readOnly":true,"type":"array","items":{"type":"string"}},"constraints":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"allow":{"readOnly":true,"type":"array","items":{"type":"string"}},"deny":{"readOnly":true,"type":"array","items":{"type":"string"}}},"additionalProperties":false}}},"required":["option"],"additionalProperties":false}},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"metadata":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operatorName":{"type":["string","null"]},"publishedOfferings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","slugId","connectorId","serviceInterface","contextType","contextId","name","enabled","capabilities","createdAt","updatedAt"],"additionalProperties":false}}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"post":{"summary":"Define a provider over a connector","tags":["providers"],"parameters":[{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"connectorId":{"type":"string"},"serviceInterface":{"type":"string"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"enabled":{"default":true,"type":"boolean"},"capabilities":{"default":[],"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"enabled":{"type":"boolean"},"operations":{"readOnly":true,"type":"array","items":{"type":"string"}},"constraints":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"allow":{"readOnly":true,"type":"array","items":{"type":"string"}},"deny":{"readOnly":true,"type":"array","items":{"type":"string"}}}}}},"required":["option"]}},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}}},{"type":"null"}]},"metadata":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]}},"required":["slugId","connectorId","serviceInterface","name"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"connectorId":{"type":"string"},"serviceInterface":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"enabled":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"enabled":{"type":"boolean"},"operations":{"readOnly":true,"type":"array","items":{"type":"string"}},"constraints":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"allow":{"readOnly":true,"type":"array","items":{"type":"string"}},"deny":{"readOnly":true,"type":"array","items":{"type":"string"}}},"additionalProperties":false}}},"required":["option"],"additionalProperties":false}},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"metadata":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operatorName":{"type":["string","null"]},"publishedOfferings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","slugId","connectorId","serviceInterface","contextType","contextId","name","enabled","capabilities","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"violations":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"operations":{"type":"array","items":{"type":"string"}},"dimension":{"type":"string"},"message":{"type":"string"}},"required":["option","message"],"additionalProperties":false}}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/providers/{slugId}":{"get":{"summary":"Get one provider by slug","tags":["providers"],"parameters":[{"name":"slugId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"connectorId":{"type":"string"},"serviceInterface":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"enabled":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"enabled":{"type":"boolean"},"operations":{"readOnly":true,"type":"array","items":{"type":"string"}},"constraints":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"allow":{"readOnly":true,"type":"array","items":{"type":"string"}},"deny":{"readOnly":true,"type":"array","items":{"type":"string"}}},"additionalProperties":false}}},"required":["option"],"additionalProperties":false}},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"metadata":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operatorName":{"type":["string","null"]},"publishedOfferings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","slugId","connectorId","serviceInterface","contextType","contextId","name","enabled","capabilities","createdAt","updatedAt"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"patch":{"summary":"Change a provider's narrowing or display identity","tags":["providers"],"parameters":[{"name":"slugId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"enabled":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"enabled":{"type":"boolean"},"operations":{"readOnly":true,"type":"array","items":{"type":"string"}},"constraints":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"allow":{"readOnly":true,"type":"array","items":{"type":"string"}},"deny":{"readOnly":true,"type":"array","items":{"type":"string"}}}}}},"required":["option"]}},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}}},{"type":"null"}]},"metadata":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"connectorId":{"type":"string"},"serviceInterface":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"enabled":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"enabled":{"type":"boolean"},"operations":{"readOnly":true,"type":"array","items":{"type":"string"}},"constraints":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"allow":{"readOnly":true,"type":"array","items":{"type":"string"}},"deny":{"readOnly":true,"type":"array","items":{"type":"string"}}},"additionalProperties":false}}},"required":["option"],"additionalProperties":false}},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"metadata":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operatorName":{"type":["string","null"]},"publishedOfferings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","slugId","connectorId","serviceInterface","contextType","contextId","name","enabled","capabilities","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"violations":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"operations":{"type":"array","items":{"type":"string"}},"dimension":{"type":"string"},"message":{"type":"string"}},"required":["option","message"],"additionalProperties":false}}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"summary":"Delete a provider that has no accounts","tags":["providers"],"parameters":[{"name":"slugId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"204":{"description":"204","content":{"application/json":{"schema":{}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"accountCount":{"type":"number"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/providers/{slugId}/versions":{"get":{"summary":"The versions of a provider","tags":["providers"],"parameters":[{"name":"slugId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"entityType":{"type":"string","enum":["service-connection","account-fees","provider","provider-policy","settings","decision-table","provider-settings","provider-inputs"]},"entityKey":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"change":{"type":"string"},"sourceVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"changes":{"anyOf":[{"type":"object","properties":{"details":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"field"},"path":{"type":"string"},"label":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"secret"},"path":{"type":"string"},"label":{"type":"string"},"action":{"type":"string","enum":["set","replaced","cleared"]}},"required":["type","path","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"path":{"type":"string"},"label":{"type":"string"},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","path","added","removed"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-table"},"table":{"type":"string"},"action":{"type":"string","enum":["added","removed"]}},"required":["type","table","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-rule"},"table":{"type":"string"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","table","detail"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","detail"],"additionalProperties":false}]}},"moreDetails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["details"],"additionalProperties":false},{"type":"null"}]},"note":{"type":["string","null"]},"actor":{"type":"object","properties":{"type":{"type":"string","enum":["user","api","system"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"onBehalf":{"type":"boolean"}},"required":["type","id","name","onBehalf"],"additionalProperties":false},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string"},"isCurrent":{"type":"boolean"}},"required":["id","entityType","entityKey","version","change","sourceVersion","changes","note","actor","mode","createdAt","isCurrent"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/providers/{slugId}/versions/{versionId}":{"get":{"summary":"One version of a provider","tags":["providers"],"parameters":[{"name":"slugId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"entityType":{"type":"string","enum":["service-connection","account-fees","provider","provider-policy","settings","decision-table","provider-settings","provider-inputs"]},"entityKey":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"change":{"type":"string"},"sourceVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"changes":{"anyOf":[{"type":"object","properties":{"details":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"field"},"path":{"type":"string"},"label":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"secret"},"path":{"type":"string"},"label":{"type":"string"},"action":{"type":"string","enum":["set","replaced","cleared"]}},"required":["type","path","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"path":{"type":"string"},"label":{"type":"string"},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","path","added","removed"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-table"},"table":{"type":"string"},"action":{"type":"string","enum":["added","removed"]}},"required":["type","table","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-rule"},"table":{"type":"string"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","table","detail"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","detail"],"additionalProperties":false}]}},"moreDetails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["details"],"additionalProperties":false},{"type":"null"}]},"note":{"type":["string","null"]},"actor":{"type":"object","properties":{"type":{"type":"string","enum":["user","api","system"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"onBehalf":{"type":"boolean"}},"required":["type","id","name","onBehalf"],"additionalProperties":false},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string"},"isCurrent":{"type":"boolean"},"snapshot":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","entityType","entityKey","version","change","sourceVersion","changes","note","actor","mode","createdAt","isCurrent","snapshot"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/providers/{slugId}/versions/{versionId}/restore":{"post":{"description":"Restores the provider's switch, narrowing, name, description and branding as a new version. A provider serves both modes, so it is restored from live only.","summary":"Write an older version of a provider back","tags":["providers"],"parameters":[{"name":"slugId","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"expectedVersion":{"type":"integer","minimum":1,"maximum":9007199254740991},"note":{"type":"string","maxLength":500}},"required":["expectedVersion"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"connectorId":{"type":"string"},"serviceInterface":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"enabled":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"enabled":{"type":"boolean"},"operations":{"readOnly":true,"type":"array","items":{"type":"string"}},"constraints":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"allow":{"readOnly":true,"type":"array","items":{"type":"string"}},"deny":{"readOnly":true,"type":"array","items":{"type":"string"}}},"additionalProperties":false}}},"required":["option"],"additionalProperties":false}},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"metadata":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operatorName":{"type":["string","null"]},"publishedOfferings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","slugId","connectorId","serviceInterface","contextType","contextId","name","enabled","capabilities","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"violations":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"operations":{"type":"array","items":{"type":"string"}},"dimension":{"type":"string"},"message":{"type":"string"}},"required":["option","message"],"additionalProperties":false}}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-policies":{"get":{"description":"Returns the policy stored on an organization or customer, the connectors it may currently attach, and the candidates it may choose from (the parent's effective set).","summary":"Get the connector availability policy for a context","tags":["providerPolicies"],"parameters":[{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"policy":{"type":"object","properties":{"mode":{"default":"inherit","type":"string","enum":["inherit","allowlist"]},"allowed":{"default":[],"type":"array","items":{"type":"string","minLength":1}}},"required":["mode","allowed"],"additionalProperties":false},"effective":{"type":"array","items":{"type":"string"}},"candidates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"connectorId":{"type":"string"},"serviceInterface":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"enabled":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"enabled":{"type":"boolean"},"operations":{"readOnly":true,"type":"array","items":{"type":"string"}},"constraints":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"allow":{"readOnly":true,"type":"array","items":{"type":"string"}},"deny":{"readOnly":true,"type":"array","items":{"type":"string"}}},"additionalProperties":false}}},"required":["option"],"additionalProperties":false}},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"metadata":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operatorName":{"type":["string","null"]},"publishedOfferings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","slugId","connectorId","serviceInterface","contextType","contextId","name","enabled","capabilities","createdAt","updatedAt"],"additionalProperties":false}},"onRequest":{"default":[],"type":"array","items":{"type":"string"}},"granted":{"default":[],"type":"array","items":{"type":"string"}},"canManageCustomerAccess":{"default":false,"type":"boolean"},"inheritedFrom":{"type":"object","properties":{"contextType":{"type":"string","const":"organization"},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["contextType","contextId"],"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["contextType","contextId","policy","effective","candidates","onRequest","granted","canManageCustomerAccess"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"put":{"description":"An organization policy can only be changed by the platform root user. A customer policy can only narrow its organization's set; connector ids outside the candidates are rejected.","summary":"Replace the connector availability policy for a context","tags":["providerPolicies"],"parameters":[{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"default":"inherit","type":"string","enum":["inherit","allowlist"]},"allowed":{"default":[],"type":"array","items":{"type":"string","minLength":1}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"policy":{"type":"object","properties":{"mode":{"default":"inherit","type":"string","enum":["inherit","allowlist"]},"allowed":{"default":[],"type":"array","items":{"type":"string","minLength":1}}},"required":["mode","allowed"],"additionalProperties":false},"effective":{"type":"array","items":{"type":"string"}},"candidates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"connectorId":{"type":"string"},"serviceInterface":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"enabled":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"enabled":{"type":"boolean"},"operations":{"readOnly":true,"type":"array","items":{"type":"string"}},"constraints":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"allow":{"readOnly":true,"type":"array","items":{"type":"string"}},"deny":{"readOnly":true,"type":"array","items":{"type":"string"}}},"additionalProperties":false}}},"required":["option"],"additionalProperties":false}},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"metadata":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operatorName":{"type":["string","null"]},"publishedOfferings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","slugId","connectorId","serviceInterface","contextType","contextId","name","enabled","capabilities","createdAt","updatedAt"],"additionalProperties":false}},"onRequest":{"default":[],"type":"array","items":{"type":"string"}},"granted":{"default":[],"type":"array","items":{"type":"string"}},"canManageCustomerAccess":{"default":false,"type":"boolean"},"inheritedFrom":{"type":"object","properties":{"contextType":{"type":"string","const":"organization"},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["contextType","contextId"],"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["contextType","contextId","policy","effective","candidates","onRequest","granted","canManageCustomerAccess"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-policies/customer-defaults":{"put":{"description":"Organization context only. Providers listed in `onRequest` are shown only to the customers they are granted to; every other provider is offered to all customers. Writable by the organization itself or the platform root user.","summary":"Choose which of an organization's providers every customer gets","tags":["providerPolicies"],"parameters":[{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"onRequest":{"default":[],"type":"array","items":{"type":"string","minLength":1}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"policy":{"type":"object","properties":{"mode":{"default":"inherit","type":"string","enum":["inherit","allowlist"]},"allowed":{"default":[],"type":"array","items":{"type":"string","minLength":1}}},"required":["mode","allowed"],"additionalProperties":false},"effective":{"type":"array","items":{"type":"string"}},"candidates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"connectorId":{"type":"string"},"serviceInterface":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"enabled":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"enabled":{"type":"boolean"},"operations":{"readOnly":true,"type":"array","items":{"type":"string"}},"constraints":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"allow":{"readOnly":true,"type":"array","items":{"type":"string"}},"deny":{"readOnly":true,"type":"array","items":{"type":"string"}}},"additionalProperties":false}}},"required":["option"],"additionalProperties":false}},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"metadata":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operatorName":{"type":["string","null"]},"publishedOfferings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","slugId","connectorId","serviceInterface","contextType","contextId","name","enabled","capabilities","createdAt","updatedAt"],"additionalProperties":false}},"onRequest":{"default":[],"type":"array","items":{"type":"string"}},"granted":{"default":[],"type":"array","items":{"type":"string"}},"canManageCustomerAccess":{"default":false,"type":"boolean"},"inheritedFrom":{"type":"object","properties":{"contextType":{"type":"string","const":"organization"},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["contextType","contextId"],"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["contextType","contextId","policy","effective","candidates","onRequest","granted","canManageCustomerAccess"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-policies/grants":{"put":{"description":"Customer context only. Replaces the customer's grants; every slug must be one of its organization's on-request providers. Writable by the customer's organization or the platform root user, never by the customer itself.","summary":"Grant a customer providers its organization offers on request","tags":["providerPolicies"],"parameters":[{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"granted":{"default":[],"type":"array","items":{"type":"string","minLength":1}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"policy":{"type":"object","properties":{"mode":{"default":"inherit","type":"string","enum":["inherit","allowlist"]},"allowed":{"default":[],"type":"array","items":{"type":"string","minLength":1}}},"required":["mode","allowed"],"additionalProperties":false},"effective":{"type":"array","items":{"type":"string"}},"candidates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"connectorId":{"type":"string"},"serviceInterface":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"enabled":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"enabled":{"type":"boolean"},"operations":{"readOnly":true,"type":"array","items":{"type":"string"}},"constraints":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"allow":{"readOnly":true,"type":"array","items":{"type":"string"}},"deny":{"readOnly":true,"type":"array","items":{"type":"string"}}},"additionalProperties":false}}},"required":["option"],"additionalProperties":false}},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"metadata":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operatorName":{"type":["string","null"]},"publishedOfferings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","slugId","connectorId","serviceInterface","contextType","contextId","name","enabled","capabilities","createdAt","updatedAt"],"additionalProperties":false}},"onRequest":{"default":[],"type":"array","items":{"type":"string"}},"granted":{"default":[],"type":"array","items":{"type":"string"}},"canManageCustomerAccess":{"default":false,"type":"boolean"},"inheritedFrom":{"type":"object","properties":{"contextType":{"type":"string","const":"organization"},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["contextType","contextId"],"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["contextType","contextId","policy","effective","candidates","onRequest","granted","canManageCustomerAccess"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-policies/versions":{"get":{"summary":"The versions of a context's provider availability, customer defaults or grants","tags":["providerPolicies"],"parameters":[{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"group","in":"query","required":true,"schema":{"type":"string","enum":["provider-policy","provider-customer-defaults","provider-grants"]}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"entityType":{"type":"string","enum":["service-connection","account-fees","provider","provider-policy","settings","decision-table","provider-settings","provider-inputs"]},"entityKey":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"change":{"type":"string"},"sourceVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"changes":{"anyOf":[{"type":"object","properties":{"details":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"field"},"path":{"type":"string"},"label":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"secret"},"path":{"type":"string"},"label":{"type":"string"},"action":{"type":"string","enum":["set","replaced","cleared"]}},"required":["type","path","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"path":{"type":"string"},"label":{"type":"string"},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","path","added","removed"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-table"},"table":{"type":"string"},"action":{"type":"string","enum":["added","removed"]}},"required":["type","table","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-rule"},"table":{"type":"string"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","table","detail"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","detail"],"additionalProperties":false}]}},"moreDetails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["details"],"additionalProperties":false},{"type":"null"}]},"note":{"type":["string","null"]},"actor":{"type":"object","properties":{"type":{"type":"string","enum":["user","api","system"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"onBehalf":{"type":"boolean"}},"required":["type","id","name","onBehalf"],"additionalProperties":false},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string"},"isCurrent":{"type":"boolean"}},"required":["id","entityType","entityKey","version","change","sourceVersion","changes","note","actor","mode","createdAt","isCurrent"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-policies/versions/{versionId}":{"get":{"summary":"One version of a provider policy","tags":["providerPolicies"],"parameters":[{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"group","in":"query","required":true,"schema":{"type":"string","enum":["provider-policy","provider-customer-defaults","provider-grants"]}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"entityType":{"type":"string","enum":["service-connection","account-fees","provider","provider-policy","settings","decision-table","provider-settings","provider-inputs"]},"entityKey":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"change":{"type":"string"},"sourceVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"changes":{"anyOf":[{"type":"object","properties":{"details":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"field"},"path":{"type":"string"},"label":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"secret"},"path":{"type":"string"},"label":{"type":"string"},"action":{"type":"string","enum":["set","replaced","cleared"]}},"required":["type","path","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"path":{"type":"string"},"label":{"type":"string"},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","path","added","removed"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-table"},"table":{"type":"string"},"action":{"type":"string","enum":["added","removed"]}},"required":["type","table","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-rule"},"table":{"type":"string"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","table","detail"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","detail"],"additionalProperties":false}]}},"moreDetails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["details"],"additionalProperties":false},{"type":"null"}]},"note":{"type":["string","null"]},"actor":{"type":"object","properties":{"type":{"type":"string","enum":["user","api","system"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"onBehalf":{"type":"boolean"}},"required":["type","id","name","onBehalf"],"additionalProperties":false},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string"},"isCurrent":{"type":"boolean"},"snapshot":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","entityType","entityKey","version","change","sourceVersion","changes","note","actor","mode","createdAt","isCurrent","snapshot"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-policies/versions/{versionId}/restore":{"post":{"description":"Goes through the same checks as saving the policy, defaults or grants by hand. Shared by both modes, so restored from live only.","summary":"Write an older version of a provider policy back","tags":["providerPolicies"],"parameters":[{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","customer"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"group","in":"query","required":true,"schema":{"type":"string","enum":["provider-policy","provider-customer-defaults","provider-grants"]}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"expectedVersion":{"type":"integer","minimum":1,"maximum":9007199254740991},"note":{"type":"string","maxLength":500}},"required":["expectedVersion"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"policy":{"type":"object","properties":{"mode":{"default":"inherit","type":"string","enum":["inherit","allowlist"]},"allowed":{"default":[],"type":"array","items":{"type":"string","minLength":1}}},"required":["mode","allowed"],"additionalProperties":false},"effective":{"type":"array","items":{"type":"string"}},"candidates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"connectorId":{"type":"string"},"serviceInterface":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"enabled":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"enabled":{"type":"boolean"},"operations":{"readOnly":true,"type":"array","items":{"type":"string"}},"constraints":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"allow":{"readOnly":true,"type":"array","items":{"type":"string"}},"deny":{"readOnly":true,"type":"array","items":{"type":"string"}}},"additionalProperties":false}}},"required":["option"],"additionalProperties":false}},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"metadata":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operatorName":{"type":["string","null"]},"publishedOfferings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","slugId","connectorId","serviceInterface","contextType","contextId","name","enabled","capabilities","createdAt","updatedAt"],"additionalProperties":false}},"onRequest":{"default":[],"type":"array","items":{"type":"string"}},"granted":{"default":[],"type":"array","items":{"type":"string"}},"canManageCustomerAccess":{"default":false,"type":"boolean"},"inheritedFrom":{"type":"object","properties":{"contextType":{"type":"string","const":"organization"},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["contextType","contextId"],"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["contextType","contextId","policy","effective","candidates","onRequest","granted","canManageCustomerAccess"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/provider-offerings/operated-providers":{"get":{"summary":"The providers the caller's Payment Provider customer operates — what it can set up offerings for","tags":["providerOfferings"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string"},"name":{"type":"string"},"connectorId":{"type":"string"},"enabled":{"type":"boolean"}},"required":["id","slugId","name","connectorId","enabled"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/provider-offerings":{"get":{"summary":"List the offerings this organization publishes","tags":["providerOfferings"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"customerId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"sort","in":"query","schema":{"type":"string","enum":["asc","desc"]}},{"name":"page","in":"query","schema":{"default":1,"type":"number","minimum":1}},{"name":"limit","in":"query","schema":{"default":100,"type":"number","minimum":1}},{"name":"dateRange","in":"query","style":"deepObject","schema":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}}},{"name":"refresh","in":"query","schema":{"type":"boolean"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["name","slugId","status","visibility","approvalMode","fulfilmentMode"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"status":{"type":"string","enum":["DRAFT","PUBLISHED","ARCHIVED"]},"visibility":{"type":"string","enum":["INSTANCE","INVITE","FEDERATED"]},"applicants":{"type":"string","enum":["ANY","CUSTOMERS"]},"approvalMode":{"type":"string","enum":["MANUAL","AUTO"]},"autoApprove":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"operator":{"default":"in","type":"string","enum":["in","notIn","lte","gte"]},"values":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["field","operator","values"],"additionalProperties":false}},"inviteCode":{"type":["string","null"]},"form":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"type":"string","minLength":1},"type":{"type":"string","enum":["text","textarea","email","url","number","select","checkbox"]},"required":{"default":false,"type":"boolean"},"options":{"type":"array","items":{"type":"string","minLength":1}},"help":{"type":"string"}},"required":["name","label","type","required"],"additionalProperties":false}},"terms":{"type":["string","null"]},"termsVersion":{"type":["string","null"]},"pricing":{"anyOf":[{"type":"object","properties":{"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}}},"required":["inputs","rules"],"additionalProperties":false},{"type":"null"}]},"template":{"type":"object","properties":{"customerStatus":{"default":"ACTIVE","type":"string","enum":["ACTIVE","ONBOARDING"]},"approverIsAccountManager":{"default":false,"type":"boolean"}},"required":["customerStatus","approverIsAccountManager"],"additionalProperties":false},"federatedOrigins":{"type":"array","items":{"type":"string","format":"uri"}},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"providerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"connectorId":{"type":["string","null"]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operatorName":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","organizationId","slugId","name","status","visibility","applicants","approvalMode","autoApprove","form","template","federatedOrigins","fulfilmentMode","createdAt","updatedAt"],"additionalProperties":false}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"post":{"summary":"Create an offering (as a draft)","tags":["providerOfferings"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}}},{"type":"null"}]},"visibility":{"default":"INSTANCE","type":"string","enum":["INSTANCE","INVITE","FEDERATED"]},"applicants":{"default":"ANY","type":"string","enum":["ANY","CUSTOMERS"]},"approvalMode":{"default":"MANUAL","type":"string","enum":["MANUAL","AUTO"]},"autoApprove":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"operator":{"default":"in","type":"string","enum":["in","notIn","lte","gte"]},"values":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["field","values"]}},"form":{"default":[],"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"type":"string","minLength":1},"type":{"type":"string","enum":["text","textarea","email","url","number","select","checkbox"]},"required":{"default":false,"type":"boolean"},"options":{"type":"array","items":{"type":"string","minLength":1}},"help":{"type":"string"}},"required":["name","label","type"]}},"terms":{"type":["string","null"]},"pricing":{"anyOf":[{"type":"object","properties":{"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}}}},"required":["id","label"]}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"]}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"]}}},"required":["inputs","rules"]},{"type":"null"}]},"template":{"default":{"customerStatus":"ACTIVE","approverIsAccountManager":false},"type":"object","properties":{"customerStatus":{"default":"ACTIVE","type":"string","enum":["ACTIVE","ONBOARDING"]},"approverIsAccountManager":{"default":false,"type":"boolean"}}},"federatedOrigins":{"default":[],"type":"array","items":{"type":"string","format":"uri"}},"fulfilmentMode":{"default":"BABELPAY_LINK","type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"providerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"connectorId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]}},"required":["slugId","name"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"status":{"type":"string","enum":["DRAFT","PUBLISHED","ARCHIVED"]},"visibility":{"type":"string","enum":["INSTANCE","INVITE","FEDERATED"]},"applicants":{"type":"string","enum":["ANY","CUSTOMERS"]},"approvalMode":{"type":"string","enum":["MANUAL","AUTO"]},"autoApprove":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"operator":{"default":"in","type":"string","enum":["in","notIn","lte","gte"]},"values":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["field","operator","values"],"additionalProperties":false}},"inviteCode":{"type":["string","null"]},"form":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"type":"string","minLength":1},"type":{"type":"string","enum":["text","textarea","email","url","number","select","checkbox"]},"required":{"default":false,"type":"boolean"},"options":{"type":"array","items":{"type":"string","minLength":1}},"help":{"type":"string"}},"required":["name","label","type","required"],"additionalProperties":false}},"terms":{"type":["string","null"]},"termsVersion":{"type":["string","null"]},"pricing":{"anyOf":[{"type":"object","properties":{"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}}},"required":["inputs","rules"],"additionalProperties":false},{"type":"null"}]},"template":{"type":"object","properties":{"customerStatus":{"default":"ACTIVE","type":"string","enum":["ACTIVE","ONBOARDING"]},"approverIsAccountManager":{"default":false,"type":"boolean"}},"required":["customerStatus","approverIsAccountManager"],"additionalProperties":false},"federatedOrigins":{"type":"array","items":{"type":"string","format":"uri"}},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"providerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"connectorId":{"type":["string","null"]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operatorName":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","organizationId","slugId","name","status","visibility","applicants","approvalMode","autoApprove","form","template","federatedOrigins","fulfilmentMode","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/provider-offerings/{id}":{"get":{"summary":"Get one of this organization's offerings","tags":["providerOfferings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"status":{"type":"string","enum":["DRAFT","PUBLISHED","ARCHIVED"]},"visibility":{"type":"string","enum":["INSTANCE","INVITE","FEDERATED"]},"applicants":{"type":"string","enum":["ANY","CUSTOMERS"]},"approvalMode":{"type":"string","enum":["MANUAL","AUTO"]},"autoApprove":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"operator":{"default":"in","type":"string","enum":["in","notIn","lte","gte"]},"values":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["field","operator","values"],"additionalProperties":false}},"inviteCode":{"type":["string","null"]},"form":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"type":"string","minLength":1},"type":{"type":"string","enum":["text","textarea","email","url","number","select","checkbox"]},"required":{"default":false,"type":"boolean"},"options":{"type":"array","items":{"type":"string","minLength":1}},"help":{"type":"string"}},"required":["name","label","type","required"],"additionalProperties":false}},"terms":{"type":["string","null"]},"termsVersion":{"type":["string","null"]},"pricing":{"anyOf":[{"type":"object","properties":{"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}}},"required":["inputs","rules"],"additionalProperties":false},{"type":"null"}]},"template":{"type":"object","properties":{"customerStatus":{"default":"ACTIVE","type":"string","enum":["ACTIVE","ONBOARDING"]},"approverIsAccountManager":{"default":false,"type":"boolean"}},"required":["customerStatus","approverIsAccountManager"],"additionalProperties":false},"federatedOrigins":{"type":"array","items":{"type":"string","format":"uri"}},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"providerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"connectorId":{"type":["string","null"]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operatorName":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","organizationId","slugId","name","status","visibility","applicants","approvalMode","autoApprove","form","template","federatedOrigins","fulfilmentMode","createdAt","updatedAt"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"patch":{"summary":"Change an offering","tags":["providerOfferings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}}},{"type":"null"}]},"visibility":{"default":"INSTANCE","type":"string","enum":["INSTANCE","INVITE","FEDERATED"]},"applicants":{"default":"ANY","type":"string","enum":["ANY","CUSTOMERS"]},"approvalMode":{"default":"MANUAL","type":"string","enum":["MANUAL","AUTO"]},"autoApprove":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"operator":{"default":"in","type":"string","enum":["in","notIn","lte","gte"]},"values":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["field","values"]}},"form":{"default":[],"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"type":"string","minLength":1},"type":{"type":"string","enum":["text","textarea","email","url","number","select","checkbox"]},"required":{"default":false,"type":"boolean"},"options":{"type":"array","items":{"type":"string","minLength":1}},"help":{"type":"string"}},"required":["name","label","type"]}},"terms":{"type":["string","null"]},"pricing":{"anyOf":[{"type":"object","properties":{"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}}}},"required":["id","label"]}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"]}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"]}}},"required":["inputs","rules"]},{"type":"null"}]},"template":{"default":{"customerStatus":"ACTIVE","approverIsAccountManager":false},"type":"object","properties":{"customerStatus":{"default":"ACTIVE","type":"string","enum":["ACTIVE","ONBOARDING"]},"approverIsAccountManager":{"default":false,"type":"boolean"}}},"federatedOrigins":{"default":[],"type":"array","items":{"type":"string","format":"uri"}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"status":{"type":"string","enum":["DRAFT","PUBLISHED","ARCHIVED"]},"visibility":{"type":"string","enum":["INSTANCE","INVITE","FEDERATED"]},"applicants":{"type":"string","enum":["ANY","CUSTOMERS"]},"approvalMode":{"type":"string","enum":["MANUAL","AUTO"]},"autoApprove":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"operator":{"default":"in","type":"string","enum":["in","notIn","lte","gte"]},"values":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["field","operator","values"],"additionalProperties":false}},"inviteCode":{"type":["string","null"]},"form":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"type":"string","minLength":1},"type":{"type":"string","enum":["text","textarea","email","url","number","select","checkbox"]},"required":{"default":false,"type":"boolean"},"options":{"type":"array","items":{"type":"string","minLength":1}},"help":{"type":"string"}},"required":["name","label","type","required"],"additionalProperties":false}},"terms":{"type":["string","null"]},"termsVersion":{"type":["string","null"]},"pricing":{"anyOf":[{"type":"object","properties":{"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}}},"required":["inputs","rules"],"additionalProperties":false},{"type":"null"}]},"template":{"type":"object","properties":{"customerStatus":{"default":"ACTIVE","type":"string","enum":["ACTIVE","ONBOARDING"]},"approverIsAccountManager":{"default":false,"type":"boolean"}},"required":["customerStatus","approverIsAccountManager"],"additionalProperties":false},"federatedOrigins":{"type":"array","items":{"type":"string","format":"uri"}},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"providerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"connectorId":{"type":["string","null"]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operatorName":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","organizationId","slugId","name","status","visibility","applicants","approvalMode","autoApprove","form","template","federatedOrigins","fulfilmentMode","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"summary":"Delete an offering nobody has applied to","tags":["providerOfferings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"204":{"description":"204","content":{"application/json":{"schema":{}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/provider-offerings/{id}/publish":{"post":{"summary":"Publish an offering so it can be applied to","tags":["providerOfferings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"status":{"type":"string","enum":["DRAFT","PUBLISHED","ARCHIVED"]},"visibility":{"type":"string","enum":["INSTANCE","INVITE","FEDERATED"]},"applicants":{"type":"string","enum":["ANY","CUSTOMERS"]},"approvalMode":{"type":"string","enum":["MANUAL","AUTO"]},"autoApprove":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"operator":{"default":"in","type":"string","enum":["in","notIn","lte","gte"]},"values":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["field","operator","values"],"additionalProperties":false}},"inviteCode":{"type":["string","null"]},"form":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"type":"string","minLength":1},"type":{"type":"string","enum":["text","textarea","email","url","number","select","checkbox"]},"required":{"default":false,"type":"boolean"},"options":{"type":"array","items":{"type":"string","minLength":1}},"help":{"type":"string"}},"required":["name","label","type","required"],"additionalProperties":false}},"terms":{"type":["string","null"]},"termsVersion":{"type":["string","null"]},"pricing":{"anyOf":[{"type":"object","properties":{"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}}},"required":["inputs","rules"],"additionalProperties":false},{"type":"null"}]},"template":{"type":"object","properties":{"customerStatus":{"default":"ACTIVE","type":"string","enum":["ACTIVE","ONBOARDING"]},"approverIsAccountManager":{"default":false,"type":"boolean"}},"required":["customerStatus","approverIsAccountManager"],"additionalProperties":false},"federatedOrigins":{"type":"array","items":{"type":"string","format":"uri"}},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"providerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"connectorId":{"type":["string","null"]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operatorName":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","organizationId","slugId","name","status","visibility","applicants","approvalMode","autoApprove","form","template","federatedOrigins","fulfilmentMode","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/provider-offerings/{id}/archive":{"post":{"summary":"Stop taking applications; existing links are untouched","tags":["providerOfferings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"status":{"type":"string","enum":["DRAFT","PUBLISHED","ARCHIVED"]},"visibility":{"type":"string","enum":["INSTANCE","INVITE","FEDERATED"]},"applicants":{"type":"string","enum":["ANY","CUSTOMERS"]},"approvalMode":{"type":"string","enum":["MANUAL","AUTO"]},"autoApprove":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"operator":{"default":"in","type":"string","enum":["in","notIn","lte","gte"]},"values":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["field","operator","values"],"additionalProperties":false}},"inviteCode":{"type":["string","null"]},"form":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"type":"string","minLength":1},"type":{"type":"string","enum":["text","textarea","email","url","number","select","checkbox"]},"required":{"default":false,"type":"boolean"},"options":{"type":"array","items":{"type":"string","minLength":1}},"help":{"type":"string"}},"required":["name","label","type","required"],"additionalProperties":false}},"terms":{"type":["string","null"]},"termsVersion":{"type":["string","null"]},"pricing":{"anyOf":[{"type":"object","properties":{"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}}},"required":["inputs","rules"],"additionalProperties":false},{"type":"null"}]},"template":{"type":"object","properties":{"customerStatus":{"default":"ACTIVE","type":"string","enum":["ACTIVE","ONBOARDING"]},"approverIsAccountManager":{"default":false,"type":"boolean"}},"required":["customerStatus","approverIsAccountManager"],"additionalProperties":false},"federatedOrigins":{"type":"array","items":{"type":"string","format":"uri"}},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"providerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"connectorId":{"type":["string","null"]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operatorName":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","organizationId","slugId","name","status","visibility","applicants","approvalMode","autoApprove","form","template","federatedOrigins","fulfilmentMode","createdAt","updatedAt"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/provider-offerings/{id}/invite-code":{"post":{"summary":"Issue a new invite code; the old one stops working","tags":["providerOfferings"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"status":{"type":"string","enum":["DRAFT","PUBLISHED","ARCHIVED"]},"visibility":{"type":"string","enum":["INSTANCE","INVITE","FEDERATED"]},"applicants":{"type":"string","enum":["ANY","CUSTOMERS"]},"approvalMode":{"type":"string","enum":["MANUAL","AUTO"]},"autoApprove":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"operator":{"default":"in","type":"string","enum":["in","notIn","lte","gte"]},"values":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["field","operator","values"],"additionalProperties":false}},"inviteCode":{"type":["string","null"]},"form":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"type":"string","minLength":1},"type":{"type":"string","enum":["text","textarea","email","url","number","select","checkbox"]},"required":{"default":false,"type":"boolean"},"options":{"type":"array","items":{"type":"string","minLength":1}},"help":{"type":"string"}},"required":["name","label","type","required"],"additionalProperties":false}},"terms":{"type":["string","null"]},"termsVersion":{"type":["string","null"]},"pricing":{"anyOf":[{"type":"object","properties":{"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}}},"required":["inputs","rules"],"additionalProperties":false},{"type":"null"}]},"template":{"type":"object","properties":{"customerStatus":{"default":"ACTIVE","type":"string","enum":["ACTIVE","ONBOARDING"]},"approverIsAccountManager":{"default":false,"type":"boolean"}},"required":["customerStatus","approverIsAccountManager"],"additionalProperties":false},"federatedOrigins":{"type":"array","items":{"type":"string","format":"uri"}},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"providerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"connectorId":{"type":["string","null"]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operatorName":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","organizationId","slugId","name","status","visibility","applicants","approvalMode","autoApprove","form","template","federatedOrigins","fulfilmentMode","createdAt","updatedAt"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/offering-directory":{"get":{"summary":"Offerings on this instance an organization can add to its catalog","tags":["providerOfferings"],"parameters":[{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"name":{"type":"string"},"description":{"type":["string","null"]},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"providerOrganizationName":{"type":"string"},"addedAs":{"type":["string","null"]}},"required":["id","slugId","name","providerOrganizationName"],"additionalProperties":false}}}}}}},"post":{"summary":"Add an offering to this organization's providers","tags":["providerOfferings"],"parameters":[{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"inviteCode":{"type":"string","minLength":6},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"}}}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"connectorId":{"type":"string"},"serviceInterface":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"enabled":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"enabled":{"type":"boolean"},"operations":{"readOnly":true,"type":"array","items":{"type":"string"}},"constraints":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"allow":{"readOnly":true,"type":"array","items":{"type":"string"}},"deny":{"readOnly":true,"type":"array","items":{"type":"string"}}},"additionalProperties":false}}},"required":["option"],"additionalProperties":false}},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"metadata":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operatorName":{"type":["string","null"]},"publishedOfferings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","slugId","connectorId","serviceInterface","contextType","contextId","name","enabled","capabilities","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/offering-directory/remote":{"post":{"summary":"Add an offering from another BabelPay platform by its link","tags":["providerOfferings"],"parameters":[{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"inviteCode":{"type":"string"},"slugId":{"type":"string"}},"required":["url"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"slugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"connectorId":{"type":"string"},"serviceInterface":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string","minLength":1},"description":{"type":["string","null"]},"enabled":{"type":"boolean"},"capabilities":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"enabled":{"type":"boolean"},"operations":{"readOnly":true,"type":"array","items":{"type":"string"}},"constraints":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"allow":{"readOnly":true,"type":"array","items":{"type":"string"}},"deny":{"readOnly":true,"type":"array","items":{"type":"string"}}},"additionalProperties":false}}},"required":["option"],"additionalProperties":false}},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"metadata":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"operatedByCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"operatorName":{"type":["string","null"]},"publishedOfferings":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","slugId","connectorId","serviceInterface","contextType","contextId","name","enabled","capabilities","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/apply-form":{"get":{"summary":"What the apply dialog shows for one provider","tags":["accountApplications"],"parameters":[{"name":"providerSlug","in":"query","required":true,"schema":{"type":"string"}},{"name":"offeringId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"choices":{"type":"array","items":{"type":"object","properties":{"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"name":{"type":"string"},"description":{"type":["string","null"]},"pricing":{"anyOf":[{"type":"object","properties":{"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}}},"required":["inputs","rules"],"additionalProperties":false},{"type":"null"}]}},"required":["offeringId","name"],"additionalProperties":false}},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"providerOrganizationName":{"type":"string"},"description":{"type":["string","null"]},"branding":{"anyOf":[{"type":"object","properties":{"displayName":{"type":"string"},"logoUrl":{"type":"string","format":"uri"},"supportUrl":{"type":"string","format":"uri"},"statementDescriptor":{"type":"string"}},"additionalProperties":false},{"type":"null"}]},"terms":{"type":["string","null"]},"termsVersion":{"type":["string","null"]},"pricing":{"anyOf":[{"type":"object","properties":{"inputs":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}}},"required":["inputs","rules"],"additionalProperties":false},{"type":"null"}]},"form":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"type":"string","minLength":1},"type":{"type":"string","enum":["text","textarea","email","url","number","select","checkbox"]},"required":{"default":false,"type":"boolean"},"options":{"type":"array","items":{"type":"string","minLength":1}},"help":{"type":"string"}},"required":["name","label","type","required"],"additionalProperties":false}},"prefill":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"additionalProperties":false},"mode":{"type":"string","enum":["live","test"]},"suggestedAccountName":{"type":"string"},"canShareLegalEntity":{"type":"boolean"},"followUp":{"anyOf":[{"type":"object","properties":{"fromApplicationId":{"type":"string"},"termsChanged":{"type":"boolean"},"missingQuestions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[a-zA-Z][a-zA-Z0-9_]*$"},"label":{"type":"string","minLength":1},"type":{"type":"string","enum":["text","textarea","email","url","number","select","checkbox"]},"required":{"default":false,"type":"boolean"},"options":{"type":"array","items":{"type":"string","minLength":1}},"help":{"type":"string"}},"required":["name","label","type","required"],"additionalProperties":false}},"existingAccounts":{"type":"array","items":{"type":"string"}}},"required":["fromApplicationId","termsChanged","missingQuestions","existingAccounts"],"additionalProperties":false},{"type":"null"}]}},"required":["offeringId","offeringName","providerOrganizationName","form","prefill","suggestedAccountName"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/account-applications":{"post":{"summary":"Apply for an account at a provider","tags":["accountApplications"],"parameters":[{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"providerSlug":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"accountName":{"type":"string","minLength":1,"maxLength":80},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}}},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"]},"answers":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"acceptTerms":{"type":"boolean"},"consentToShare":{"type":"boolean"},"shareLegalEntity":{"type":"boolean"}},"required":["providerSlug","accountName"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"accountSlug":{"type":["string","null"]},"providerOrganizationName":{"type":"string"},"providerSlug":{"type":["string","null"]},"applicantContextType":{"type":"string","enum":["organization","partner","customer"]},"applicantContextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"sharesLegalEntity":{"type":"boolean"},"connectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decisionNote":{"type":["string","null"]},"becameDefaultRoute":{"type":"boolean"},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","providerOrganizationName","applicantContextType","applicantContextId","snapshot","answers","becameDefaultRoute","events","submittedAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"get":{"summary":"Applications to this organization's offerings","tags":["accountApplications"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"customerId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"sort","in":"query","schema":{"type":"string","enum":["asc","desc"]}},{"name":"page","in":"query","schema":{"default":1,"type":"number","minimum":1}},{"name":"limit","in":"query","schema":{"default":100,"type":"number","minimum":1}},{"name":"dateRange","in":"query","style":"deepObject","schema":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}}},{"name":"refresh","in":"query","schema":{"type":"boolean"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["status","offeringName","accountName","applicantName","countryCode","regNo","submittedAt"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"mode":{"type":"string","enum":["live","test"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"applicantName":{"type":"string"},"applicantOrigin":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"regNo":{"type":["string","null"]}},"required":["id","status","offeringId","offeringName","accountName","applicantName","submittedAt","updatedAt"],"additionalProperties":false}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/mine":{"get":{"summary":"This context's applications and links","tags":["accountApplications"],"parameters":[{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"accountSlug":{"type":["string","null"]},"providerOrganizationName":{"type":"string"},"providerSlug":{"type":["string","null"]},"applicantContextType":{"type":"string","enum":["organization","partner","customer"]},"applicantContextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"sharesLegalEntity":{"type":"boolean"},"connectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decisionNote":{"type":["string","null"]},"becameDefaultRoute":{"type":"boolean"},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","providerOrganizationName","applicantContextType","applicantContextId","snapshot","answers","becameDefaultRoute","events","submittedAt","updatedAt"],"additionalProperties":false}}}}}}}},"/api/v1/account-applications/pending-count":{"get":{"summary":"How many applications wait for this organization to act — the nav badge","tags":["accountApplications"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number"}},"required":["count"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/mine/{id}":{"get":{"summary":"One of this context's applications","tags":["accountApplications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"accountSlug":{"type":["string","null"]},"providerOrganizationName":{"type":"string"},"providerSlug":{"type":["string","null"]},"applicantContextType":{"type":"string","enum":["organization","partner","customer"]},"applicantContextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"sharesLegalEntity":{"type":"boolean"},"connectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decisionNote":{"type":["string","null"]},"becameDefaultRoute":{"type":"boolean"},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","providerOrganizationName","applicantContextType","applicantContextId","snapshot","answers","becameDefaultRoute","events","submittedAt","updatedAt"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/mine/{id}/respond":{"post":{"summary":"Answer the provider's request for information","tags":["accountApplications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","minLength":1,"maxLength":5000},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}}},"required":["message"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"accountSlug":{"type":["string","null"]},"providerOrganizationName":{"type":"string"},"providerSlug":{"type":["string","null"]},"applicantContextType":{"type":"string","enum":["organization","partner","customer"]},"applicantContextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"sharesLegalEntity":{"type":"boolean"},"connectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decisionNote":{"type":["string","null"]},"becameDefaultRoute":{"type":"boolean"},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","providerOrganizationName","applicantContextType","applicantContextId","snapshot","answers","becameDefaultRoute","events","submittedAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/mine/{id}/withdraw":{"post":{"summary":"Withdraw an application still under review","tags":["accountApplications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"accountSlug":{"type":["string","null"]},"providerOrganizationName":{"type":"string"},"providerSlug":{"type":["string","null"]},"applicantContextType":{"type":"string","enum":["organization","partner","customer"]},"applicantContextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"sharesLegalEntity":{"type":"boolean"},"connectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decisionNote":{"type":["string","null"]},"becameDefaultRoute":{"type":"boolean"},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","providerOrganizationName","applicantContextType","applicantContextId","snapshot","answers","becameDefaultRoute","events","submittedAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/mine/{id}/disconnect":{"post":{"summary":"Close the account at the provider and remove the connection","tags":["accountApplications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string"},"force":{"type":"boolean"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"accountSlug":{"type":["string","null"]},"providerOrganizationName":{"type":"string"},"providerSlug":{"type":["string","null"]},"applicantContextType":{"type":"string","enum":["organization","partner","customer"]},"applicantContextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"sharesLegalEntity":{"type":"boolean"},"connectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decisionNote":{"type":["string","null"]},"becameDefaultRoute":{"type":"boolean"},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","providerOrganizationName","applicantContextType","applicantContextId","snapshot","answers","becameDefaultRoute","events","submittedAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"openTransactions":{"type":"number"},"recentTransactions":{"type":"number"}},"required":["message","openTransactions","recentTransactions"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/mine/{id}/messages":{"post":{"summary":"Write to the provider","tags":["accountApplications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","minLength":1,"maxLength":5000}},"required":["message"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"accountSlug":{"type":["string","null"]},"providerOrganizationName":{"type":"string"},"providerSlug":{"type":["string","null"]},"applicantContextType":{"type":"string","enum":["organization","partner","customer"]},"applicantContextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"sharesLegalEntity":{"type":"boolean"},"connectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decisionNote":{"type":["string","null"]},"becameDefaultRoute":{"type":"boolean"},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","providerOrganizationName","applicantContextType","applicantContextId","snapshot","answers","becameDefaultRoute","events","submittedAt","updatedAt"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/mine/{id}/rotate":{"post":{"summary":"Replace the account's credentials","tags":["accountApplications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"accountSlug":{"type":["string","null"]},"providerOrganizationName":{"type":"string"},"providerSlug":{"type":["string","null"]},"applicantContextType":{"type":"string","enum":["organization","partner","customer"]},"applicantContextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"sharesLegalEntity":{"type":"boolean"},"connectionId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"decisionNote":{"type":["string","null"]},"becameDefaultRoute":{"type":"boolean"},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","providerOrganizationName","applicantContextType","applicantContextId","snapshot","answers","becameDefaultRoute","events","submittedAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/{id}":{"get":{"summary":"One application, as its reviewer sees it","tags":["accountApplications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"applicantName":{"type":"string"},"applicantOrigin":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"termsVersion":{"type":["string","null"]},"termsAcceptedAt":{"type":["string","null"]},"provisioned":{"type":"object","properties":{"attachToCustomerId":{"type":"string"},"customerId":{"type":"string"},"applicationId":{"type":"string"},"appSlugId":{"type":"string"},"apiKeyId":{"type":"string"},"connectionId":{"type":"string"},"becameDefaultRoute":{"type":"boolean"},"sharedLegalEntity":{"type":"boolean"},"applicantAppSlugId":{"type":"string"},"steps":{"default":[],"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"ok":{"type":"boolean"},"detail":{"type":"string"},"at":{"type":"string"}},"required":["step","ok","at"],"additionalProperties":false}}},"required":["steps"],"additionalProperties":false},"possibleDuplicates":{"type":"array","items":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"legalName":{"type":"string"},"regNo":{"type":["string","null"]},"vatNo":{"type":["string","null"]},"matchedOn":{"type":"array","items":{"type":"string","enum":["regNo","vatNo","legalName"]}}},"required":["customerId","legalName","matchedOn"],"additionalProperties":false}},"existingCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sharesLegalEntity":{"type":"boolean"},"decidedBy":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"decisionNote":{"type":["string","null"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"connectorId":{"type":["string","null"]},"credentialKeysSet":{"type":"array","items":{"type":"string"}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","applicantName","snapshot","answers","provisioned","possibleDuplicates","events","submittedAt","updatedAt"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/{id}/start-review":{"post":{"summary":"Mark an application as being reviewed","tags":["accountApplications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"applicantName":{"type":"string"},"applicantOrigin":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"termsVersion":{"type":["string","null"]},"termsAcceptedAt":{"type":["string","null"]},"provisioned":{"type":"object","properties":{"attachToCustomerId":{"type":"string"},"customerId":{"type":"string"},"applicationId":{"type":"string"},"appSlugId":{"type":"string"},"apiKeyId":{"type":"string"},"connectionId":{"type":"string"},"becameDefaultRoute":{"type":"boolean"},"sharedLegalEntity":{"type":"boolean"},"applicantAppSlugId":{"type":"string"},"steps":{"default":[],"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"ok":{"type":"boolean"},"detail":{"type":"string"},"at":{"type":"string"}},"required":["step","ok","at"],"additionalProperties":false}}},"required":["steps"],"additionalProperties":false},"possibleDuplicates":{"type":"array","items":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"legalName":{"type":"string"},"regNo":{"type":["string","null"]},"vatNo":{"type":["string","null"]},"matchedOn":{"type":"array","items":{"type":"string","enum":["regNo","vatNo","legalName"]}}},"required":["customerId","legalName","matchedOn"],"additionalProperties":false}},"existingCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sharesLegalEntity":{"type":"boolean"},"decidedBy":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"decisionNote":{"type":["string","null"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"connectorId":{"type":["string","null"]},"credentialKeysSet":{"type":"array","items":{"type":"string"}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","applicantName","snapshot","answers","provisioned","possibleDuplicates","events","submittedAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/{id}/request-info":{"post":{"summary":"Ask the applicant for more information","tags":["accountApplications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","minLength":1,"maxLength":5000}},"required":["message"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"applicantName":{"type":"string"},"applicantOrigin":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"termsVersion":{"type":["string","null"]},"termsAcceptedAt":{"type":["string","null"]},"provisioned":{"type":"object","properties":{"attachToCustomerId":{"type":"string"},"customerId":{"type":"string"},"applicationId":{"type":"string"},"appSlugId":{"type":"string"},"apiKeyId":{"type":"string"},"connectionId":{"type":"string"},"becameDefaultRoute":{"type":"boolean"},"sharedLegalEntity":{"type":"boolean"},"applicantAppSlugId":{"type":"string"},"steps":{"default":[],"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"ok":{"type":"boolean"},"detail":{"type":"string"},"at":{"type":"string"}},"required":["step","ok","at"],"additionalProperties":false}}},"required":["steps"],"additionalProperties":false},"possibleDuplicates":{"type":"array","items":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"legalName":{"type":"string"},"regNo":{"type":["string","null"]},"vatNo":{"type":["string","null"]},"matchedOn":{"type":"array","items":{"type":"string","enum":["regNo","vatNo","legalName"]}}},"required":["customerId","legalName","matchedOn"],"additionalProperties":false}},"existingCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sharesLegalEntity":{"type":"boolean"},"decidedBy":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"decisionNote":{"type":["string","null"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"connectorId":{"type":["string","null"]},"credentialKeysSet":{"type":"array","items":{"type":"string"}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","applicantName","snapshot","answers","provisioned","possibleDuplicates","events","submittedAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/{id}/approve":{"post":{"summary":"Approve and provision the account","tags":["accountApplications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string"},"attachToCustomerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"credentials":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean","null"]}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"applicantName":{"type":"string"},"applicantOrigin":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"termsVersion":{"type":["string","null"]},"termsAcceptedAt":{"type":["string","null"]},"provisioned":{"type":"object","properties":{"attachToCustomerId":{"type":"string"},"customerId":{"type":"string"},"applicationId":{"type":"string"},"appSlugId":{"type":"string"},"apiKeyId":{"type":"string"},"connectionId":{"type":"string"},"becameDefaultRoute":{"type":"boolean"},"sharedLegalEntity":{"type":"boolean"},"applicantAppSlugId":{"type":"string"},"steps":{"default":[],"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"ok":{"type":"boolean"},"detail":{"type":"string"},"at":{"type":"string"}},"required":["step","ok","at"],"additionalProperties":false}}},"required":["steps"],"additionalProperties":false},"possibleDuplicates":{"type":"array","items":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"legalName":{"type":"string"},"regNo":{"type":["string","null"]},"vatNo":{"type":["string","null"]},"matchedOn":{"type":"array","items":{"type":"string","enum":["regNo","vatNo","legalName"]}}},"required":["customerId","legalName","matchedOn"],"additionalProperties":false}},"existingCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sharesLegalEntity":{"type":"boolean"},"decidedBy":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"decisionNote":{"type":["string","null"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"connectorId":{"type":["string","null"]},"credentialKeysSet":{"type":"array","items":{"type":"string"}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","applicantName","snapshot","answers","provisioned","possibleDuplicates","events","submittedAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/{id}/reject":{"post":{"summary":"Reject an application","tags":["accountApplications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":1}},"required":["reason"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"applicantName":{"type":"string"},"applicantOrigin":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"termsVersion":{"type":["string","null"]},"termsAcceptedAt":{"type":["string","null"]},"provisioned":{"type":"object","properties":{"attachToCustomerId":{"type":"string"},"customerId":{"type":"string"},"applicationId":{"type":"string"},"appSlugId":{"type":"string"},"apiKeyId":{"type":"string"},"connectionId":{"type":"string"},"becameDefaultRoute":{"type":"boolean"},"sharedLegalEntity":{"type":"boolean"},"applicantAppSlugId":{"type":"string"},"steps":{"default":[],"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"ok":{"type":"boolean"},"detail":{"type":"string"},"at":{"type":"string"}},"required":["step","ok","at"],"additionalProperties":false}}},"required":["steps"],"additionalProperties":false},"possibleDuplicates":{"type":"array","items":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"legalName":{"type":"string"},"regNo":{"type":["string","null"]},"vatNo":{"type":["string","null"]},"matchedOn":{"type":"array","items":{"type":"string","enum":["regNo","vatNo","legalName"]}}},"required":["customerId","legalName","matchedOn"],"additionalProperties":false}},"existingCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sharesLegalEntity":{"type":"boolean"},"decidedBy":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"decisionNote":{"type":["string","null"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"connectorId":{"type":["string","null"]},"credentialKeysSet":{"type":"array","items":{"type":"string"}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","applicantName","snapshot","answers","provisioned","possibleDuplicates","events","submittedAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/{id}/retry-provisioning":{"post":{"summary":"Run the remaining provisioning steps again","tags":["accountApplications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"credentials":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean","null"]}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"applicantName":{"type":"string"},"applicantOrigin":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"termsVersion":{"type":["string","null"]},"termsAcceptedAt":{"type":["string","null"]},"provisioned":{"type":"object","properties":{"attachToCustomerId":{"type":"string"},"customerId":{"type":"string"},"applicationId":{"type":"string"},"appSlugId":{"type":"string"},"apiKeyId":{"type":"string"},"connectionId":{"type":"string"},"becameDefaultRoute":{"type":"boolean"},"sharedLegalEntity":{"type":"boolean"},"applicantAppSlugId":{"type":"string"},"steps":{"default":[],"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"ok":{"type":"boolean"},"detail":{"type":"string"},"at":{"type":"string"}},"required":["step","ok","at"],"additionalProperties":false}}},"required":["steps"],"additionalProperties":false},"possibleDuplicates":{"type":"array","items":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"legalName":{"type":"string"},"regNo":{"type":["string","null"]},"vatNo":{"type":["string","null"]},"matchedOn":{"type":"array","items":{"type":"string","enum":["regNo","vatNo","legalName"]}}},"required":["customerId","legalName","matchedOn"],"additionalProperties":false}},"existingCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sharesLegalEntity":{"type":"boolean"},"decidedBy":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"decisionNote":{"type":["string","null"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"connectorId":{"type":["string","null"]},"credentialKeysSet":{"type":"array","items":{"type":"string"}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","applicantName","snapshot","answers","provisioned","possibleDuplicates","events","submittedAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/{id}/activate":{"post":{"summary":"Activate a customer provisioned in ONBOARDING, and its link","tags":["accountApplications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"applicantName":{"type":"string"},"applicantOrigin":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"termsVersion":{"type":["string","null"]},"termsAcceptedAt":{"type":["string","null"]},"provisioned":{"type":"object","properties":{"attachToCustomerId":{"type":"string"},"customerId":{"type":"string"},"applicationId":{"type":"string"},"appSlugId":{"type":"string"},"apiKeyId":{"type":"string"},"connectionId":{"type":"string"},"becameDefaultRoute":{"type":"boolean"},"sharedLegalEntity":{"type":"boolean"},"applicantAppSlugId":{"type":"string"},"steps":{"default":[],"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"ok":{"type":"boolean"},"detail":{"type":"string"},"at":{"type":"string"}},"required":["step","ok","at"],"additionalProperties":false}}},"required":["steps"],"additionalProperties":false},"possibleDuplicates":{"type":"array","items":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"legalName":{"type":"string"},"regNo":{"type":["string","null"]},"vatNo":{"type":["string","null"]},"matchedOn":{"type":"array","items":{"type":"string","enum":["regNo","vatNo","legalName"]}}},"required":["customerId","legalName","matchedOn"],"additionalProperties":false}},"existingCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sharesLegalEntity":{"type":"boolean"},"decidedBy":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"decisionNote":{"type":["string","null"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"connectorId":{"type":["string","null"]},"credentialKeysSet":{"type":"array","items":{"type":"string"}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","applicantName","snapshot","answers","provisioned","possibleDuplicates","events","submittedAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/{id}/suspend":{"post":{"summary":"Stop the link carrying traffic, keeping its credentials","tags":["accountApplications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":1}},"required":["reason"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"applicantName":{"type":"string"},"applicantOrigin":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"termsVersion":{"type":["string","null"]},"termsAcceptedAt":{"type":["string","null"]},"provisioned":{"type":"object","properties":{"attachToCustomerId":{"type":"string"},"customerId":{"type":"string"},"applicationId":{"type":"string"},"appSlugId":{"type":"string"},"apiKeyId":{"type":"string"},"connectionId":{"type":"string"},"becameDefaultRoute":{"type":"boolean"},"sharedLegalEntity":{"type":"boolean"},"applicantAppSlugId":{"type":"string"},"steps":{"default":[],"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"ok":{"type":"boolean"},"detail":{"type":"string"},"at":{"type":"string"}},"required":["step","ok","at"],"additionalProperties":false}}},"required":["steps"],"additionalProperties":false},"possibleDuplicates":{"type":"array","items":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"legalName":{"type":"string"},"regNo":{"type":["string","null"]},"vatNo":{"type":["string","null"]},"matchedOn":{"type":"array","items":{"type":"string","enum":["regNo","vatNo","legalName"]}}},"required":["customerId","legalName","matchedOn"],"additionalProperties":false}},"existingCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sharesLegalEntity":{"type":"boolean"},"decidedBy":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"decisionNote":{"type":["string","null"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"connectorId":{"type":["string","null"]},"credentialKeysSet":{"type":"array","items":{"type":"string"}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","applicantName","snapshot","answers","provisioned","possibleDuplicates","events","submittedAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/{id}/resume":{"post":{"summary":"Undo a suspension","tags":["accountApplications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"applicantName":{"type":"string"},"applicantOrigin":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"termsVersion":{"type":["string","null"]},"termsAcceptedAt":{"type":["string","null"]},"provisioned":{"type":"object","properties":{"attachToCustomerId":{"type":"string"},"customerId":{"type":"string"},"applicationId":{"type":"string"},"appSlugId":{"type":"string"},"apiKeyId":{"type":"string"},"connectionId":{"type":"string"},"becameDefaultRoute":{"type":"boolean"},"sharedLegalEntity":{"type":"boolean"},"applicantAppSlugId":{"type":"string"},"steps":{"default":[],"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"ok":{"type":"boolean"},"detail":{"type":"string"},"at":{"type":"string"}},"required":["step","ok","at"],"additionalProperties":false}}},"required":["steps"],"additionalProperties":false},"possibleDuplicates":{"type":"array","items":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"legalName":{"type":"string"},"regNo":{"type":["string","null"]},"vatNo":{"type":["string","null"]},"matchedOn":{"type":"array","items":{"type":"string","enum":["regNo","vatNo","legalName"]}}},"required":["customerId","legalName","matchedOn"],"additionalProperties":false}},"existingCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sharesLegalEntity":{"type":"boolean"},"decidedBy":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"decisionNote":{"type":["string","null"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"connectorId":{"type":["string","null"]},"credentialKeysSet":{"type":"array","items":{"type":"string"}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","applicantName","snapshot","answers","provisioned","possibleDuplicates","events","submittedAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/{id}/terminate":{"post":{"summary":"End the link and revoke its credentials","tags":["accountApplications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string"},"force":{"type":"boolean"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"applicantName":{"type":"string"},"applicantOrigin":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"termsVersion":{"type":["string","null"]},"termsAcceptedAt":{"type":["string","null"]},"provisioned":{"type":"object","properties":{"attachToCustomerId":{"type":"string"},"customerId":{"type":"string"},"applicationId":{"type":"string"},"appSlugId":{"type":"string"},"apiKeyId":{"type":"string"},"connectionId":{"type":"string"},"becameDefaultRoute":{"type":"boolean"},"sharedLegalEntity":{"type":"boolean"},"applicantAppSlugId":{"type":"string"},"steps":{"default":[],"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"ok":{"type":"boolean"},"detail":{"type":"string"},"at":{"type":"string"}},"required":["step","ok","at"],"additionalProperties":false}}},"required":["steps"],"additionalProperties":false},"possibleDuplicates":{"type":"array","items":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"legalName":{"type":"string"},"regNo":{"type":["string","null"]},"vatNo":{"type":["string","null"]},"matchedOn":{"type":"array","items":{"type":"string","enum":["regNo","vatNo","legalName"]}}},"required":["customerId","legalName","matchedOn"],"additionalProperties":false}},"existingCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sharesLegalEntity":{"type":"boolean"},"decidedBy":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"decisionNote":{"type":["string","null"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"connectorId":{"type":["string","null"]},"credentialKeysSet":{"type":"array","items":{"type":"string"}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","applicantName","snapshot","answers","provisioned","possibleDuplicates","events","submittedAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"openTransactions":{"type":"number"},"recentTransactions":{"type":"number"}},"required":["message","openTransactions","recentTransactions"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/{id}/messages":{"post":{"summary":"Write to the applicant","tags":["accountApplications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","minLength":1,"maxLength":5000}},"required":["message"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"applicantName":{"type":"string"},"applicantOrigin":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"termsVersion":{"type":["string","null"]},"termsAcceptedAt":{"type":["string","null"]},"provisioned":{"type":"object","properties":{"attachToCustomerId":{"type":"string"},"customerId":{"type":"string"},"applicationId":{"type":"string"},"appSlugId":{"type":"string"},"apiKeyId":{"type":"string"},"connectionId":{"type":"string"},"becameDefaultRoute":{"type":"boolean"},"sharedLegalEntity":{"type":"boolean"},"applicantAppSlugId":{"type":"string"},"steps":{"default":[],"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"ok":{"type":"boolean"},"detail":{"type":"string"},"at":{"type":"string"}},"required":["step","ok","at"],"additionalProperties":false}}},"required":["steps"],"additionalProperties":false},"possibleDuplicates":{"type":"array","items":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"legalName":{"type":"string"},"regNo":{"type":["string","null"]},"vatNo":{"type":["string","null"]},"matchedOn":{"type":"array","items":{"type":"string","enum":["regNo","vatNo","legalName"]}}},"required":["customerId","legalName","matchedOn"],"additionalProperties":false}},"existingCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sharesLegalEntity":{"type":"boolean"},"decidedBy":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"decisionNote":{"type":["string","null"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"connectorId":{"type":["string","null"]},"credentialKeysSet":{"type":"array","items":{"type":"string"}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","applicantName","snapshot","answers","provisioned","possibleDuplicates","events","submittedAt","updatedAt"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/{id}/rotate":{"post":{"summary":"Replace the link's credentials","tags":["accountApplications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"applicantName":{"type":"string"},"applicantOrigin":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"termsVersion":{"type":["string","null"]},"termsAcceptedAt":{"type":["string","null"]},"provisioned":{"type":"object","properties":{"attachToCustomerId":{"type":"string"},"customerId":{"type":"string"},"applicationId":{"type":"string"},"appSlugId":{"type":"string"},"apiKeyId":{"type":"string"},"connectionId":{"type":"string"},"becameDefaultRoute":{"type":"boolean"},"sharedLegalEntity":{"type":"boolean"},"applicantAppSlugId":{"type":"string"},"steps":{"default":[],"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"ok":{"type":"boolean"},"detail":{"type":"string"},"at":{"type":"string"}},"required":["step","ok","at"],"additionalProperties":false}}},"required":["steps"],"additionalProperties":false},"possibleDuplicates":{"type":"array","items":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"legalName":{"type":"string"},"regNo":{"type":["string","null"]},"vatNo":{"type":["string","null"]},"matchedOn":{"type":"array","items":{"type":"string","enum":["regNo","vatNo","legalName"]}}},"required":["customerId","legalName","matchedOn"],"additionalProperties":false}},"existingCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sharesLegalEntity":{"type":"boolean"},"decidedBy":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"decisionNote":{"type":["string","null"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"connectorId":{"type":["string","null"]},"credentialKeysSet":{"type":"array","items":{"type":"string"}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","applicantName","snapshot","answers","provisioned","possibleDuplicates","events","submittedAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/account-applications/{id}/credentials":{"post":{"summary":"Replace a direct account's merchant credentials (write-only)","tags":["accountApplications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"credentials":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean","null"]}}},"required":["credentials"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},"offeringId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"offeringName":{"type":"string"},"accountName":{"type":"string"},"applicantName":{"type":"string"},"applicantOrigin":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"snapshot":{"type":"object","properties":{"legalName":{"type":"string","minLength":1},"name":{"type":["string","null"]},"url":{"type":["string","null"]},"regNo":{"type":["string","null"]},"vat":{"anyOf":[{"type":"object","properties":{"number":{"description":"VAT number","type":"string"},"type":{"description":"VAT type","type":"string","enum":["SEVAT","SEREVERSEDVAT","EUREVERSEDVAT","EUVAT","EXPORT"]}},"additionalProperties":false},{"type":"null"}]},"address1":{"type":["string","null"]},"address2":{"type":["string","null"]},"zipCode":{"type":["string","null"]},"city":{"type":["string","null"]},"state":{"type":["string","null"]},"countryCode":{"anyOf":[{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]},{"type":"null"}]},"phone":{"type":["string","null"]},"email":{"type":["string","null"]},"financeEmail":{"type":["string","null"]},"contact":{"type":["string","null"]},"contactEmail":{"type":["string","null"]}},"required":["legalName"],"additionalProperties":false},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean"]}},"termsVersion":{"type":["string","null"]},"termsAcceptedAt":{"type":["string","null"]},"provisioned":{"type":"object","properties":{"attachToCustomerId":{"type":"string"},"customerId":{"type":"string"},"applicationId":{"type":"string"},"appSlugId":{"type":"string"},"apiKeyId":{"type":"string"},"connectionId":{"type":"string"},"becameDefaultRoute":{"type":"boolean"},"sharedLegalEntity":{"type":"boolean"},"applicantAppSlugId":{"type":"string"},"steps":{"default":[],"type":"array","items":{"type":"object","properties":{"step":{"type":"string"},"ok":{"type":"boolean"},"detail":{"type":"string"},"at":{"type":"string"}},"required":["step","ok","at"],"additionalProperties":false}}},"required":["steps"],"additionalProperties":false},"possibleDuplicates":{"type":"array","items":{"type":"object","properties":{"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"legalName":{"type":"string"},"regNo":{"type":["string","null"]},"vatNo":{"type":["string","null"]},"matchedOn":{"type":"array","items":{"type":"string","enum":["regNo","vatNo","legalName"]}}},"required":["customerId","legalName","matchedOn"],"additionalProperties":false}},"existingCustomerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"sharesLegalEntity":{"type":"boolean"},"decidedBy":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"decisionNote":{"type":["string","null"]},"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"kind":{"type":"string","enum":["STATUS","MESSAGE","PROVISIONING_STEP"]},"side":{"type":"string","enum":["applicant","provider","system"]},"actorName":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["SUBMITTED","IN_REVIEW","INFO_REQUESTED","APPROVED","PROVISIONING","PROVISIONING_FAILED","AWAITING_ACTIVATION","AWAITING_CLAIM","WAITING_FOR_PLATFORM","ACTIVE","SUSPENDED","REJECTED","WITHDRAWN","TERMINATED","DISCONNECTED"]},{"type":"null"}]},"message":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","kind","side","createdAt"],"additionalProperties":false}},"fulfilmentMode":{"type":"string","enum":["BABELPAY_LINK","DIRECT_CREDENTIALS"]},"connectorId":{"type":["string","null"]},"credentialKeysSet":{"type":"array","items":{"type":"string"}},"submittedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","status","offeringId","offeringName","accountName","applicantName","snapshot","answers","provisioned","possibleDuplicates","events","submittedAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/federation-peers":{"get":{"summary":"Other platforms this one may send card data to","tags":["federationPeers"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"origin":{"type":"string"},"platformId":{"type":["string","null"]},"status":{"type":"string","enum":["PENDING","APPROVED","BLOCKED"]},"apiBaseUrl":{"type":["string","null"]},"relays":{"type":"object","properties":{"production":{"type":"string","format":"uri"},"sandbox":{"type":"string","format":"uri"}},"additionalProperties":false},"sharedVault":{"type":"boolean"},"approvedBy":{"type":["string","null"]},"approvedAt":{"type":["string","null"]},"note":{"type":["string","null"]},"linkCount":{"type":"number"},"waitingCount":{"type":"number"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","origin","status","relays","sharedVault","linkCount","waitingCount","createdAt","updatedAt"],"additionalProperties":false}}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/federation-peers/{id}":{"patch":{"summary":"Approve, block or re-point a platform","tags":["federationPeers"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["PENDING","APPROVED","BLOCKED"]},"relays":{"type":"object","properties":{"production":{"type":"string","format":"uri"},"sandbox":{"type":"string","format":"uri"}}},"sharedVault":{"type":"boolean"},"note":{"type":["string","null"]}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"origin":{"type":"string"},"platformId":{"type":["string","null"]},"status":{"type":"string","enum":["PENDING","APPROVED","BLOCKED"]},"apiBaseUrl":{"type":["string","null"]},"relays":{"type":"object","properties":{"production":{"type":"string","format":"uri"},"sandbox":{"type":"string","format":"uri"}},"additionalProperties":false},"sharedVault":{"type":"boolean"},"approvedBy":{"type":["string","null"]},"approvedAt":{"type":["string","null"]},"note":{"type":["string","null"]},"linkCount":{"type":"number"},"waitingCount":{"type":"number"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","origin","status","relays","sharedVault","linkCount","waitingCount","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/settings/groups":{"get":{"summary":"Get all registered settings group definitions","tags":["settings"],"parameters":[{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","partner","customer","application"]}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"group":{"type":"string"},"label":{"type":"string"},"description":{"type":"string"},"icon":{"type":"string"},"contexts":{"type":"array","items":{"type":"string","enum":["organization","partner","customer","application"]}},"multiple":{"type":"boolean"},"modeScoped":{"type":"boolean"},"jsonSchema":{}},"required":["group","label","description","contexts","modeScoped","jsonSchema"],"additionalProperties":false}}}}}}}},"/api/v1/settings/{group}":{"get":{"summary":"Get settings for a group in a context","tags":["settings"],"parameters":[{"name":"group","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer","application"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"group":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer","application"]},"contextId":{"type":"string"},"data":{},"updatedAt":{"type":"string"}},"required":["group","contextType","contextId","data"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"put":{"summary":"Update settings for a group in a context","tags":["settings"],"parameters":[{"name":"group","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer","application"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"data":{}},"required":["data"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"group":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer","application"]},"contextId":{"type":"string"},"data":{},"updatedAt":{"type":"string"}},"required":["group","contextType","contextId","data"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"summary":"Delete (reset) settings for a group in a context","tags":["settings"],"parameters":[{"name":"group","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer","application"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/settings/{group}/versions":{"get":{"summary":"The versions of a settings group in a context","tags":["settings"],"parameters":[{"name":"group","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer","application"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"entityType":{"type":"string","enum":["service-connection","account-fees","provider","provider-policy","settings","decision-table","provider-settings","provider-inputs"]},"entityKey":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"change":{"type":"string"},"sourceVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"changes":{"anyOf":[{"type":"object","properties":{"details":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"field"},"path":{"type":"string"},"label":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"secret"},"path":{"type":"string"},"label":{"type":"string"},"action":{"type":"string","enum":["set","replaced","cleared"]}},"required":["type","path","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"path":{"type":"string"},"label":{"type":"string"},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","path","added","removed"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-table"},"table":{"type":"string"},"action":{"type":"string","enum":["added","removed"]}},"required":["type","table","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-rule"},"table":{"type":"string"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","table","detail"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","detail"],"additionalProperties":false}]}},"moreDetails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["details"],"additionalProperties":false},{"type":"null"}]},"note":{"type":["string","null"]},"actor":{"type":"object","properties":{"type":{"type":"string","enum":["user","api","system"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"onBehalf":{"type":"boolean"}},"required":["type","id","name","onBehalf"],"additionalProperties":false},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string"},"isCurrent":{"type":"boolean"}},"required":["id","entityType","entityKey","version","change","sourceVersion","changes","note","actor","mode","createdAt","isCurrent"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/settings/{group}/versions/{versionId}":{"get":{"summary":"One version of a settings group","tags":["settings"],"parameters":[{"name":"group","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer","application"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"entityType":{"type":"string","enum":["service-connection","account-fees","provider","provider-policy","settings","decision-table","provider-settings","provider-inputs"]},"entityKey":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"change":{"type":"string"},"sourceVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"changes":{"anyOf":[{"type":"object","properties":{"details":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"field"},"path":{"type":"string"},"label":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"secret"},"path":{"type":"string"},"label":{"type":"string"},"action":{"type":"string","enum":["set","replaced","cleared"]}},"required":["type","path","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"path":{"type":"string"},"label":{"type":"string"},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","path","added","removed"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-table"},"table":{"type":"string"},"action":{"type":"string","enum":["added","removed"]}},"required":["type","table","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-rule"},"table":{"type":"string"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","table","detail"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","detail"],"additionalProperties":false}]}},"moreDetails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["details"],"additionalProperties":false},{"type":"null"}]},"note":{"type":["string","null"]},"actor":{"type":"object","properties":{"type":{"type":"string","enum":["user","api","system"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"onBehalf":{"type":"boolean"}},"required":["type","id","name","onBehalf"],"additionalProperties":false},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string"},"isCurrent":{"type":"boolean"},"snapshot":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","entityType","entityKey","version","change","sourceVersion","changes","note","actor","mode","createdAt","isCurrent","snapshot"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/settings/{group}/versions/{versionId}/restore":{"post":{"summary":"Restore an older version of a settings group","tags":["settings"],"parameters":[{"name":"group","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer","application"]}},{"name":"contextId","in":"query","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"expectedVersion":{"type":"integer","minimum":1,"maximum":9007199254740991},"note":{"type":"string","maxLength":500}},"required":["expectedVersion"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"group":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer","application"]},"contextId":{"type":"string"},"data":{},"updatedAt":{"type":"string"}},"required":["group","contextType","contextId","data"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/notifications/inbox":{"get":{"summary":"Search the caller's notification inbox","tags":["notifications"],"parameters":[{"name":"page","in":"query","schema":{"default":1,"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"limit","in":"query","schema":{"default":25,"type":"integer","minimum":1,"maximum":200}},{"name":"q","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string","enum":["unread","read","archived"]}},{"name":"allContexts","in":"query","schema":{"type":"boolean"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["status","severity","category","notificationType","triggerSource","mode"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"notificationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"notificationType":{"type":"string"},"subjectId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string"},"severity":{"type":"string","enum":["info","warning","critical"]},"category":{"type":"string","enum":["transactional","action_required","operational"]},"status":{"type":"string","enum":["unread","read","archived"]},"muted":{"type":"boolean"},"title":{"type":"string"},"body":{"type":"string"},"actions":{"default":[],"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1},"labelKey":{"type":"string","minLength":1},"url":{"type":"string","format":"uri"},"style":{"default":"secondary","type":"string","enum":["primary","secondary"]}},"required":["key","labelKey","url","style"],"additionalProperties":false}},"subjectRefType":{"type":["string","null"]},"subjectRefId":{"type":["string","null"]},"triggerSource":{"type":"string","enum":["domain_event","monitor","rule","schedule","manual"]},"triggerRef":{"type":["string","null"]},"actorSubjectId":{"type":["string","null"]},"actor":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["id"],"additionalProperties":false},{"type":"null"}]},"mode":{"type":"string","enum":["live","test"]},"readAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","notificationId","notificationType","subjectId","contextType","contextId","severity","category","status","muted","title","body","actions","triggerSource","mode","createdAt"],"additionalProperties":false}},"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"}},"required":["items","page","pageSize","hasMore"],"additionalProperties":false}}}}}}},"/api/v1/notifications/inbox/unread-count":{"get":{"summary":"Unread inbox count for the badge","tags":["notifications"],"parameters":[{"name":"allContexts","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"count":{"type":"number"},"topSeverity":{"anyOf":[{"type":"string","enum":["info","warning","critical"]},{"type":"null"}]}},"required":["count"],"additionalProperties":false}}}}}}},"/api/v1/notifications/inbox/{id}":{"get":{"summary":"Get one inbox item","tags":["notifications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"notificationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"notificationType":{"type":"string"},"subjectId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string"},"severity":{"type":"string","enum":["info","warning","critical"]},"category":{"type":"string","enum":["transactional","action_required","operational"]},"status":{"type":"string","enum":["unread","read","archived"]},"muted":{"type":"boolean"},"title":{"type":"string"},"body":{"type":"string"},"actions":{"default":[],"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1},"labelKey":{"type":"string","minLength":1},"url":{"type":"string","format":"uri"},"style":{"default":"secondary","type":"string","enum":["primary","secondary"]}},"required":["key","labelKey","url","style"],"additionalProperties":false}},"subjectRefType":{"type":["string","null"]},"subjectRefId":{"type":["string","null"]},"triggerSource":{"type":"string","enum":["domain_event","monitor","rule","schedule","manual"]},"triggerRef":{"type":["string","null"]},"actorSubjectId":{"type":["string","null"]},"actor":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["id"],"additionalProperties":false},{"type":"null"}]},"mode":{"type":"string","enum":["live","test"]},"readAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","notificationId","notificationType","subjectId","contextType","contextId","severity","category","status","muted","title","body","actions","triggerSource","mode","createdAt"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/notifications/inbox/{id}/read":{"post":{"summary":"Mark an inbox item read or unread","tags":["notifications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"read":{"default":true,"type":"boolean"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"notificationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"notificationType":{"type":"string"},"subjectId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string"},"severity":{"type":"string","enum":["info","warning","critical"]},"category":{"type":"string","enum":["transactional","action_required","operational"]},"status":{"type":"string","enum":["unread","read","archived"]},"muted":{"type":"boolean"},"title":{"type":"string"},"body":{"type":"string"},"actions":{"default":[],"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1},"labelKey":{"type":"string","minLength":1},"url":{"type":"string","format":"uri"},"style":{"default":"secondary","type":"string","enum":["primary","secondary"]}},"required":["key","labelKey","url","style"],"additionalProperties":false}},"subjectRefType":{"type":["string","null"]},"subjectRefId":{"type":["string","null"]},"triggerSource":{"type":"string","enum":["domain_event","monitor","rule","schedule","manual"]},"triggerRef":{"type":["string","null"]},"actorSubjectId":{"type":["string","null"]},"actor":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["id"],"additionalProperties":false},{"type":"null"}]},"mode":{"type":"string","enum":["live","test"]},"readAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","notificationId","notificationType","subjectId","contextType","contextId","severity","category","status","muted","title","body","actions","triggerSource","mode","createdAt"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/notifications/inbox/{id}/archive":{"post":{"summary":"Archive an inbox item","tags":["notifications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"notificationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"notificationType":{"type":"string"},"subjectId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string"},"severity":{"type":"string","enum":["info","warning","critical"]},"category":{"type":"string","enum":["transactional","action_required","operational"]},"status":{"type":"string","enum":["unread","read","archived"]},"muted":{"type":"boolean"},"title":{"type":"string"},"body":{"type":"string"},"actions":{"default":[],"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":1},"labelKey":{"type":"string","minLength":1},"url":{"type":"string","format":"uri"},"style":{"default":"secondary","type":"string","enum":["primary","secondary"]}},"required":["key","labelKey","url","style"],"additionalProperties":false}},"subjectRefType":{"type":["string","null"]},"subjectRefId":{"type":["string","null"]},"triggerSource":{"type":"string","enum":["domain_event","monitor","rule","schedule","manual"]},"triggerRef":{"type":["string","null"]},"actorSubjectId":{"type":["string","null"]},"actor":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]},"email":{"type":["string","null"]}},"required":["id"],"additionalProperties":false},{"type":"null"}]},"mode":{"type":"string","enum":["live","test"]},"readAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","notificationId","notificationType","subjectId","contextType","contextId","severity","category","status","muted","title","body","actions","triggerSource","mode","createdAt"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/notifications/inbox/read-all":{"post":{"summary":"Mark every unread item in scope as read","tags":["notifications"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"allContexts":{"type":"boolean"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"updated":{"type":"number"}},"required":["updated"],"additionalProperties":false}}}}}}},"/api/v1/notifications/types":{"get":{"summary":"The notification catalog with effective activation","tags":["notifications"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"group":{"type":"string"},"category":{"type":"string","enum":["transactional","action_required","operational"]},"severity":{"type":"string","enum":["info","warning","critical"]},"audiences":{"type":"array","items":{"type":"string","enum":["organization","partner","customer"]}},"mandatory":{"type":"boolean"},"active":{"type":"boolean"},"audience":{"type":"array","items":{"type":"string"}},"defaultAudience":{"type":"array","items":{"type":"string"}},"audienceInherited":{"type":"boolean"},"inherited":{"type":"boolean"}},"required":["type","name","group","category","severity","audiences","mandatory","active","audience","defaultAudience","audienceInherited","inherited"],"additionalProperties":false}}}}}}}},"/api/v1/notifications/settings":{"get":{"summary":"Activation rows stored on the current context","tags":["notifications"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string"},"notificationType":{"type":"string"},"active":{"type":"boolean"},"audience":{"anyOf":[{"type":"array","items":{"type":"string","minLength":3,"pattern":"^(role|permission|subject|context|contact|email|sms|telegram|destination):\\S(?:.*\\S)?$"}},{"type":"null"}]},"minSeverity":{"anyOf":[{"type":"string","enum":["info","warning","critical"]},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","contextType","contextId","notificationType","active","createdAt","updatedAt"],"additionalProperties":false}}}}}}}},"/api/v1/notifications/settings/{notificationType}":{"put":{"summary":"Activate/deactivate a type or override its audience","tags":["notifications"],"parameters":[{"name":"notificationType","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"active":{"type":"boolean"},"audience":{"anyOf":[{"type":"array","items":{"type":"string","minLength":3,"pattern":"^(role|permission|subject|context|contact|email|sms|telegram|destination):\\S(?:.*\\S)?$"}},{"type":"null"}]},"minSeverity":{"anyOf":[{"type":"string","enum":["info","warning","critical"]},{"type":"null"}]}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string"},"notificationType":{"type":"string"},"active":{"type":"boolean"},"audience":{"anyOf":[{"type":"array","items":{"type":"string","minLength":3,"pattern":"^(role|permission|subject|context|contact|email|sms|telegram|destination):\\S(?:.*\\S)?$"}},{"type":"null"}]},"minSeverity":{"anyOf":[{"type":"string","enum":["info","warning","critical"]},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","contextType","contextId","notificationType","active","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/notifications/preferences":{"get":{"summary":"The caller's effective preference matrix","tags":["notifications"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"notificationType":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"group":{"type":"string"},"category":{"type":"string","enum":["transactional","action_required","operational"]},"severity":{"type":"string","enum":["info","warning","critical"]},"mandatory":{"type":"boolean"},"audiences":{"type":"array","items":{"type":"string","enum":["organization","partner","customer"]}},"channels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"relay":{"type":"string","enum":["immediate","if_unread_after_15m","digest_hourly","digest_daily","off"]},"inherited":{"type":"boolean"},"available":{"type":"boolean"}},"required":["relay","inherited","available"],"additionalProperties":false}}},"required":["notificationType","name","group","category","severity","mandatory","audiences","channels"],"additionalProperties":false}}}}}}},"put":{"summary":"Set one cell of the caller's preference matrix","tags":["notifications"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"notificationType":{"type":"string","minLength":1},"channel":{"type":"string","enum":["inbox","email","webhook","sms","telegram","pagerduty","slack"]},"relay":{"type":"string","enum":["immediate","if_unread_after_15m","digest_hourly","digest_daily","off"]},"contextType":{"anyOf":[{"type":"string","enum":["organization","partner","customer"]},{"type":"null"}]},"contextId":{"type":["string","null"]}},"required":["notificationType","channel","relay"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"notificationType":{"type":"string"},"name":{"type":"string"},"description":{"type":["string","null"]},"group":{"type":"string"},"category":{"type":"string","enum":["transactional","action_required","operational"]},"severity":{"type":"string","enum":["info","warning","critical"]},"mandatory":{"type":"boolean"},"audiences":{"type":"array","items":{"type":"string","enum":["organization","partner","customer"]}},"channels":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"relay":{"type":"string","enum":["immediate","if_unread_after_15m","digest_hourly","digest_daily","off"]},"inherited":{"type":"boolean"},"available":{"type":"boolean"}},"required":["relay","inherited","available"],"additionalProperties":false}}},"required":["notificationType","name","group","category","severity","mandatory","audiences","channels"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/notifications/identities":{"get":{"summary":"The caller's registered channel destinations","tags":["notifications"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","enum":["sms","telegram"]},"address":{"type":"string"},"verified":{"type":"boolean"},"verifiedAt":{"type":["string","null"]},"codeSentAt":{"type":["string","null"]}},"required":["channel","address","verified"],"additionalProperties":false}}}}}}}},"/api/v1/notifications/identities/{channel}":{"put":{"summary":"Register a destination for a channel and send a verification code to it","tags":["notifications"],"parameters":[{"name":"channel","in":"path","required":true,"schema":{"type":"string","enum":["sms","telegram"]}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"address":{"type":"string","pattern":"^\\+[1-9]\\d{7,14}$"}},"required":["address"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","enum":["sms","telegram"]},"address":{"type":"string"},"verified":{"type":"boolean"},"verifiedAt":{"type":["string","null"]},"codeSentAt":{"type":["string","null"]}},"required":["channel","address","verified"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"429":{"description":"429","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"summary":"Remove a channel destination","tags":["notifications"],"parameters":[{"name":"channel","in":"path","required":true,"schema":{"type":"string","enum":["sms","telegram"]}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"}},"required":["deleted"],"additionalProperties":false}}}}}}},"/api/v1/notifications/identities/{channel}/verify":{"post":{"summary":"Confirm a destination with the code that was sent to it","tags":["notifications"],"parameters":[{"name":"channel","in":"path","required":true,"schema":{"type":"string","enum":["sms","telegram"]}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string","pattern":"^\\d{6}$"}},"required":["code"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","enum":["sms","telegram"]},"address":{"type":"string"},"verified":{"type":"boolean"},"verifiedAt":{"type":["string","null"]},"codeSentAt":{"type":["string","null"]}},"required":["channel","address","verified"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/notifications":{"get":{"summary":"Search notifications raised in this context","tags":["notifications"],"parameters":[{"name":"page","in":"query","schema":{"default":1,"type":"integer","minimum":1,"maximum":9007199254740991}},{"name":"limit","in":"query","schema":{"default":25,"type":"integer","minimum":1,"maximum":200}},{"name":"q","in":"query","schema":{"type":"string"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["severity","category","notificationType","triggerSource","mode"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"notificationType":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string"},"severity":{"type":"string","enum":["info","warning","critical"]},"category":{"type":"string","enum":["transactional","action_required","operational"]},"subjectRefType":{"type":["string","null"]},"subjectRefId":{"type":["string","null"]},"payload":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"dedupKey":{"type":"string"},"triggerSource":{"type":"string","enum":["domain_event","monitor","rule","schedule","manual"]},"triggerRef":{"type":["string","null"]},"actorSubjectId":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"createdAt":{"type":"string"}},"required":["id","notificationType","contextType","contextId","severity","category","payload","dedupKey","triggerSource","mode","createdAt"],"additionalProperties":false}},"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"}},"required":["items","page","pageSize","hasMore"],"additionalProperties":false}}}}}}},"/api/v1/notifications/{id}":{"get":{"summary":"One notification with its delivery records","tags":["notifications"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"notification":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"notificationType":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string"},"severity":{"type":"string","enum":["info","warning","critical"]},"category":{"type":"string","enum":["transactional","action_required","operational"]},"subjectRefType":{"type":["string","null"]},"subjectRefId":{"type":["string","null"]},"payload":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"dedupKey":{"type":"string"},"triggerSource":{"type":"string","enum":["domain_event","monitor","rule","schedule","manual"]},"triggerRef":{"type":["string","null"]},"actorSubjectId":{"type":["string","null"]},"mode":{"type":"string","enum":["live","test"]},"createdAt":{"type":"string"}},"required":["id","notificationType","contextType","contextId","severity","category","payload","dedupKey","triggerSource","mode","createdAt"],"additionalProperties":false},"deliveries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"notificationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subjectId":{"type":["string","null"]},"channel":{"type":"string","enum":["inbox","email","webhook","sms","telegram","pagerduty","slack"]},"target":{"type":"string"},"recipientRef":{"type":["string","null"]},"status":{"type":"string","enum":["sent","failed","skipped","scheduled","cancelled"]},"providerRef":{"type":["string","null"]},"error":{"type":["string","null"]},"locale":{"type":["string","null"]},"scheduledFor":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","notificationId","channel","target","status","createdAt"],"additionalProperties":false}},"recipients":{"type":"number"}},"required":["notification","deliveries","recipients"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/notifications/test":{"post":{"summary":"Raise a sample notification of a type to check the wiring","tags":["notifications"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"notificationType":{"type":"string","minLength":1},"payload":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["notificationType"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"notificationId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"inboxItems":{"type":"number"},"deliveries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"notificationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"subjectId":{"type":["string","null"]},"channel":{"type":"string","enum":["inbox","email","webhook","sms","telegram","pagerduty","slack"]},"target":{"type":"string"},"recipientRef":{"type":["string","null"]},"status":{"type":"string","enum":["sent","failed","skipped","scheduled","cancelled"]},"providerRef":{"type":["string","null"]},"error":{"type":["string","null"]},"locale":{"type":["string","null"]},"scheduledFor":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","notificationId","channel","target","status","createdAt"],"additionalProperties":false}},"skippedReason":{"type":["string","null"]}},"required":["inboxItems","deliveries"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/my-account/settings":{"get":{"summary":"The caller's account settings","tags":["myAccount"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","minLength":2,"maxLength":10},"timezone":{"type":"string","minLength":1,"maxLength":64},"favoriteContexts":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false}}},"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"patch":{"summary":"Merge a patch into the caller's account settings","tags":["myAccount"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"anyOf":[{"type":"string","minLength":2,"maxLength":10},{"type":"null"}]},"timezone":{"anyOf":[{"type":"string","minLength":1,"maxLength":64},{"type":"null"}]},"favoriteContexts":{"anyOf":[{"maxItems":50,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false}},{"type":"null"}]}},"additionalProperties":false}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"locale":{"type":"string","minLength":2,"maxLength":10},"timezone":{"type":"string","minLength":1,"maxLength":64},"favoriteContexts":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false}}},"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/usage-events":{"post":{"summary":"Record a one or more usage events","tags":["usageEvents"],"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"continueOnFailure","in":"query","schema":{"default":false,"type":"boolean"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"events":{"type":"array","items":{"type":"object","properties":{"_time":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$","description":"ISO 8601; Format: 2025-05-21T10:31:04+02:00 (Sweden UTC+2)\tor 2025-05-21T08:31:04Z (UTC)"},"metricId":{"type":"string","description":"Slug ID of the billable metric"},"customerId":{"description":"Customer ID that generated the event","type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"applicationId":{"description":"Application slug ID that generated the event","type":"string"},"userId":{"description":"User ID that generated the event","type":"string"},"refId":{"description":"Reference ID that generated the event","type":"string"},"props":{"description":"Custom properties","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["_time","metricId"]},"description":"Array of usage events"}},"required":["events"]}}}},"responses":{"201":{"description":"Usage event ingest response","content":{"application/json":{"schema":{"type":"object","properties":{"ingested":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Number of events successfully ingested"},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Number of events that failed to ingest"},"failures":{"type":"array","items":{"type":"object","properties":{"error":{"type":"string","description":"Error message describing why the event failed to ingest"},"index":{"description":"Optional: Index or identifier of the failed event","type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"event":{"description":"Optional: The actual event data that failed","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["error"],"additionalProperties":false,"description":"Array of failure details for any events that failed to ingest"}},"processedBytes":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Total bytes processed during the ingestion operation"},"blocksCreated":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Number of new storage blocks created during ingestion"},"walLength":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Current length of the Write-Ahead Log (WAL)"},"savedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991,"description":"Number of events that were successfully saved to Axiom"}},"required":["ingested","failed","failures","processedBytes","blocksCreated","walLength","savedCount"],"additionalProperties":false,"description":"Usage event ingest response"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"failedEvents":{"type":"array","items":{"type":"object","properties":{"event":{},"reason":{"type":"string"}},"required":["event","reason"],"additionalProperties":false}},"totalEvents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"savedCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/velocity/config":{"get":{"summary":"Get velocity metric definitions","tags":["velocity"],"parameters":[{"name":"contextType","in":"query","schema":{"type":"string","enum":["customer","organization"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"metrics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"aggregate":{"type":"string","enum":["count","sum","countDistinct"]},"aggregateField":{"type":"string"},"groupBy":{"type":"array","items":{"type":"string","enum":["userId","cardFingerprint","cardBin","ip","ipCountry","deviceId","browserFingerprint","email","mobile"]}},"customerId":{"type":"string","minLength":1},"excludeSelf":{"default":false,"type":"boolean"},"includeCurrent":{"default":false,"type":"boolean"},"filters":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"type":"string","enum":["eq","neq","in"]},"values":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"window":{"type":"object","properties":{"value":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"unit":{"type":"string","enum":["minutes","hours","days","months","all"]}},"required":["value","unit"],"additionalProperties":false},"windowMode":{"default":"tumbling","type":"string","enum":["sliding","tumbling"]},"timeZone":{"type":"string","minLength":1},"outputField":{"type":"string","minLength":1}},"required":["id","name","aggregate","groupBy","excludeSelf","includeCurrent","filters","window","windowMode","outputField"],"additionalProperties":false}},"updatedAt":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["metrics"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"put":{"summary":"Save velocity metric definitions","tags":["velocity"],"parameters":[{"name":"contextType","in":"query","schema":{"type":"string","enum":["customer","organization"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"metrics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"aggregate":{"type":"string","enum":["count","sum","countDistinct"]},"aggregateField":{"type":"string"},"groupBy":{"type":"array","items":{"type":"string","enum":["userId","cardFingerprint","cardBin","ip","ipCountry","deviceId","browserFingerprint","email","mobile"]}},"customerId":{"type":"string","minLength":1},"excludeSelf":{"default":false,"type":"boolean"},"includeCurrent":{"default":false,"type":"boolean"},"filters":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"type":"string","enum":["eq","neq","in"]},"values":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["field","op","values"]}},"window":{"type":"object","properties":{"value":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"unit":{"type":"string","enum":["minutes","hours","days","months","all"]}},"required":["value","unit"]},"windowMode":{"default":"tumbling","type":"string","enum":["sliding","tumbling"]},"timeZone":{"type":"string","minLength":1},"outputField":{"type":"string","minLength":1}},"required":["id","name","aggregate","groupBy","window","outputField"]}},"expectedUpdatedAt":{"type":["string","null"]}},"required":["metrics"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"metrics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"aggregate":{"type":"string","enum":["count","sum","countDistinct"]},"aggregateField":{"type":"string"},"groupBy":{"type":"array","items":{"type":"string","enum":["userId","cardFingerprint","cardBin","ip","ipCountry","deviceId","browserFingerprint","email","mobile"]}},"customerId":{"type":"string","minLength":1},"excludeSelf":{"default":false,"type":"boolean"},"includeCurrent":{"default":false,"type":"boolean"},"filters":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"type":"string","enum":["eq","neq","in"]},"values":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"window":{"type":"object","properties":{"value":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"unit":{"type":"string","enum":["minutes","hours","days","months","all"]}},"required":["value","unit"],"additionalProperties":false},"windowMode":{"default":"tumbling","type":"string","enum":["sliding","tumbling"]},"timeZone":{"type":"string","minLength":1},"outputField":{"type":"string","minLength":1}},"required":["id","name","aggregate","groupBy","excludeSelf","includeCurrent","filters","window","windowMode","outputField"],"additionalProperties":false}},"updatedAt":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["metrics"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"reason":{"type":"string","const":"changed"}},"required":["message","reason"],"additionalProperties":false}}}}}}},"/api/v1/velocity/versions":{"get":{"summary":"List the versions of the velocity config","tags":["velocity"],"parameters":[{"name":"contextType","in":"query","schema":{"type":"string","enum":["customer","organization"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"change":{"type":"string","enum":["baseline","edited","rolled-back","copied","imported"]},"sourceVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sourceMode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"sourceContext":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["customer","organization"]},"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["type","id","name"],"additionalProperties":false},{"type":"null"}]},"sourceLabel":{"type":["string","null"]},"changes":{"anyOf":[{"type":"object","properties":{"metricsAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"metricsRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"metricsChanged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"metricsReordered":{"type":"boolean"},"details":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"metric-added"},"name":{"type":"string"},"outputField":{"type":"string"}},"required":["type","name","outputField"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"metric-removed"},"name":{"type":"string"},"outputField":{"type":"string"}},"required":["type","name","outputField"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"metric-changed"},"name":{"type":"string"},"outputField":{"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["name","outputField","aggregate","aggregateField","groupBy","customerId","excludeSelf","includeCurrent","filters","window","windowMode"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["field"],"additionalProperties":false}}},"required":["type","name","outputField","fields"],"additionalProperties":false}]}},"moreDetails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["metricsAdded","metricsRemoved","metricsChanged","metricsReordered","details"],"additionalProperties":false},{"type":"null"}]},"metricCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdBy":{"type":["string","null"]},"createdByName":{"type":["string","null"]},"createdAt":{"type":"string"},"isCurrent":{"type":"boolean"}},"required":["id","version","change","sourceVersion","sourceMode","sourceContext","sourceLabel","changes","metricCount","createdBy","createdByName","createdAt","isCurrent"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/velocity/versions/{versionId}":{"get":{"summary":"Get one version of the velocity config","tags":["velocity"],"parameters":[{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["customer","organization"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"change":{"type":"string","enum":["baseline","edited","rolled-back","copied","imported"]},"sourceVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"sourceMode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"sourceContext":{"anyOf":[{"type":"object","properties":{"type":{"type":"string","enum":["customer","organization"]},"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["type","id","name"],"additionalProperties":false},{"type":"null"}]},"sourceLabel":{"type":["string","null"]},"changes":{"anyOf":[{"type":"object","properties":{"metricsAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"metricsRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"metricsChanged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"metricsReordered":{"type":"boolean"},"details":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"metric-added"},"name":{"type":"string"},"outputField":{"type":"string"}},"required":["type","name","outputField"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"metric-removed"},"name":{"type":"string"},"outputField":{"type":"string"}},"required":["type","name","outputField"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"metric-changed"},"name":{"type":"string"},"outputField":{"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["name","outputField","aggregate","aggregateField","groupBy","customerId","excludeSelf","includeCurrent","filters","window","windowMode"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["field"],"additionalProperties":false}}},"required":["type","name","outputField","fields"],"additionalProperties":false}]}},"moreDetails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["metricsAdded","metricsRemoved","metricsChanged","metricsReordered","details"],"additionalProperties":false},{"type":"null"}]},"metricCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"createdBy":{"type":["string","null"]},"createdByName":{"type":["string","null"]},"createdAt":{"type":"string"},"isCurrent":{"type":"boolean"},"metrics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"aggregate":{"type":"string","enum":["count","sum","countDistinct"]},"aggregateField":{"type":"string"},"groupBy":{"type":"array","items":{"type":"string","enum":["userId","cardFingerprint","cardBin","ip","ipCountry","deviceId","browserFingerprint","email","mobile"]}},"customerId":{"type":"string","minLength":1},"excludeSelf":{"default":false,"type":"boolean"},"includeCurrent":{"default":false,"type":"boolean"},"filters":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"type":"string","enum":["eq","neq","in"]},"values":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"window":{"type":"object","properties":{"value":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"unit":{"type":"string","enum":["minutes","hours","days","months","all"]}},"required":["value","unit"],"additionalProperties":false},"windowMode":{"default":"tumbling","type":"string","enum":["sliding","tumbling"]},"timeZone":{"type":"string","minLength":1},"outputField":{"type":"string","minLength":1}},"required":["id","name","aggregate","groupBy","excludeSelf","includeCurrent","filters","window","windowMode","outputField"],"additionalProperties":false}}},"required":["id","version","change","sourceVersion","sourceMode","sourceContext","sourceLabel","changes","metricCount","createdBy","createdByName","createdAt","isCurrent","metrics"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/velocity/versions/{versionId}/rollback":{"post":{"summary":"Restore an older version of the velocity config","tags":["velocity"],"parameters":[{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["customer","organization"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"expectedUpdatedAt":{"type":["string","null"]}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"metrics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1},"name":{"type":"string","minLength":1},"aggregate":{"type":"string","enum":["count","sum","countDistinct"]},"aggregateField":{"type":"string"},"groupBy":{"type":"array","items":{"type":"string","enum":["userId","cardFingerprint","cardBin","ip","ipCountry","deviceId","browserFingerprint","email","mobile"]}},"customerId":{"type":"string","minLength":1},"excludeSelf":{"default":false,"type":"boolean"},"includeCurrent":{"default":false,"type":"boolean"},"filters":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"type":"string","enum":["eq","neq","in"]},"values":{"minItems":1,"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"window":{"type":"object","properties":{"value":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"unit":{"type":"string","enum":["minutes","hours","days","months","all"]}},"required":["value","unit"],"additionalProperties":false},"windowMode":{"default":"tumbling","type":"string","enum":["sliding","tumbling"]},"timeZone":{"type":"string","minLength":1},"outputField":{"type":"string","minLength":1}},"required":["id","name","aggregate","groupBy","excludeSelf","includeCurrent","filters","window","windowMode","outputField"],"additionalProperties":false}},"updatedAt":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["metrics"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"reason":{"type":"string","const":"changed"}},"required":["message","reason"],"additionalProperties":false}}}}}}},"/api/v1/velocity/export":{"get":{"summary":"Export the velocity metrics","tags":["velocity"],"parameters":[{"name":"contextType","in":"query","schema":{"type":"string","enum":["customer","organization"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"format":{"type":"string","const":"babelpay.rules"},"formatVersion":{"type":"integer","minimum":1,"maximum":9007199254740991},"exportedAt":{"type":"string"},"source":{"type":"object","properties":{"environment":{"type":"string","maxLength":40},"mode":{"type":"string","enum":["live","test"]},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","maxLength":100},"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"required":["type","id"],"additionalProperties":false}},"additionalProperties":false},"decisionTables":{"default":[],"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"slugId":{"type":"string","minLength":1,"maxLength":100,"pattern":"^[a-z0-9-]+$"},"description":{"type":"string"},"kind":{"default":"generic","type":"string","enum":["generic","fraud-block","routing","routing-plan","fees","provider-fees","emi-fees","emi-gas-fees","fx","notification-rules","notification-routing","credit-approval","status-mapping"]},"enabled":{"default":true,"type":"boolean"},"priority":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"preConditions":{"default":[],"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1},"op":{"default":"in","type":"string","enum":["in","not-in"]},"values":{"default":[],"type":"array","items":{"type":"string"}}},"required":["field","op","values"],"additionalProperties":false}},"hitPolicy":{"default":"first","type":"string","enum":["first","collect"]},"inputs":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"outputs":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"field":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean","date","select","multiselect","regex","function","list"]},"enumName":{"type":"string"},"options":{"type":"array","items":{"type":"string"}},"caseSensitive":{"type":"boolean"},"functionName":{"type":"string"},"functionParams":{"type":"array","items":{"type":"string"}},"validation":{"type":"object","properties":{"required":{"type":"boolean"},"min":{"type":"number"},"max":{"type":"number"},"pattern":{"type":"string"}},"additionalProperties":false}},"required":["id","label"],"additionalProperties":false}},"rules":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"enabled":{"type":"boolean"},"inputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"anyOf":[{"type":"string"},{"type":"object","properties":{"value":{"type":"string"},"operator":{"type":"string"}},"required":["value"],"additionalProperties":false}]}},"outputs":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["id","inputs","outputs"],"additionalProperties":false}},"providerId":{"type":"string"},"serviceConnectionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"version":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["name","slugId","kind","enabled","priority","preConditions","hitPolicy","inputs","outputs","rules"],"additionalProperties":false}},"velocityMetrics":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"references":{"type":"object","properties":{"routingPlansIncluded":{"type":"array","items":{"type":"string"}},"routingPlansNotIncluded":{"type":"array","items":{"type":"string"}},"velocityFieldsRead":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}},"required":["format","formatVersion","exportedAt","decisionTables"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/velocity/import":{"post":{"summary":"Import velocity metrics","tags":["velocity"],"parameters":[{"name":"contextType","in":"query","schema":{"type":"string","enum":["customer","organization"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"metrics":{"minItems":1,"maxItems":500,"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"resolutions":{"default":[],"type":"array","items":{"type":"object","properties":{"outputField":{"type":"string"},"action":{"type":"string","enum":["import","skip"]},"clearCustomerId":{"type":"boolean"}},"required":["outputField","action"]}},"origin":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"file"},"fileName":{"type":"string","maxLength":200},"source":{"type":"object","properties":{"environment":{"type":"string","maxLength":40},"mode":{"type":"string","enum":["live","test"]},"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","maxLength":100},"name":{"anyOf":[{"type":"string","maxLength":200},{"type":"null"}]}},"required":["type","id"]}}}},"required":["kind","fileName"]},{"type":"object","properties":{"kind":{"type":"string","const":"mode-copy"},"sourceMode":{"type":"string","enum":["live","test"]}},"required":["kind","sourceMode"]},{"type":"object","properties":{"kind":{"type":"string","const":"context-copy"},"context":{"type":"object","properties":{"type":{"type":"string","enum":["customer","organization"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["type","id"]}},"required":["kind","context"]}]},"expectedUpdatedAt":{"type":["string","null"]},"dryRun":{"type":"boolean"}},"required":["metrics","origin"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"metrics":{"type":"array","items":{"type":"object","properties":{"outputField":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["add","replace","unchanged","invalid","refused"]},"message":{"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["name","outputField","aggregate","aggregateField","groupBy","customerId","excludeSelf","includeCurrent","filters","window","windowMode"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["field"],"additionalProperties":false}},"scope":{"type":"string","enum":["narrowed","widened","unnarrowed"]}},"required":["outputField","name","status"],"additionalProperties":false}},"changes":{"type":"object","properties":{"metricsAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"metricsRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"metricsChanged":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"metricsReordered":{"type":"boolean"},"details":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"metric-added"},"name":{"type":"string"},"outputField":{"type":"string"}},"required":["type","name","outputField"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"metric-removed"},"name":{"type":"string"},"outputField":{"type":"string"}},"required":["type","name","outputField"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"metric-changed"},"name":{"type":"string"},"outputField":{"type":"string"},"fields":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["name","outputField","aggregate","aggregateField","groupBy","customerId","excludeSelf","includeCurrent","filters","window","windowMode"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["field"],"additionalProperties":false}}},"required":["type","name","outputField","fields"],"additionalProperties":false}]}},"moreDetails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["metricsAdded","metricsRemoved","metricsChanged","metricsReordered","details"],"additionalProperties":false},"currentUpdatedAt":{"type":["string","null"]},"version":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]}},"required":["metrics","changes","currentUpdatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"reason":{"type":"string","const":"changed"}},"required":["message","reason"],"additionalProperties":false}}}}}}},"/api/v1/velocity/purge":{"post":{"summary":"Purge old velocity events","tags":["velocity"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"maxAgeDays":{"default":90,"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"number"}},"required":["deleted"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/monitors":{"get":{"summary":"List monitors for the current context","tags":["monitors"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"dataset","in":"query","schema":{"type":"string"}},{"name":"enabled","in":"query","schema":{"type":"boolean"}},{"name":"page","in":"query","schema":{"type":"number"}},{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["type","dataset","severity","enabled","lastRunState","createdAt","createdBy"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"dataset":{"type":"string","enum":["usage_events_dev","audit-log","workflow-events","transactions","monitor-alerts","notifications","checkout-events"]},"type":{"type":"string","enum":["threshold","anomaly","match"]},"aplQuery":{"type":"string","minLength":1},"schedule":{"type":"object","properties":{"intervalMinutes":{"default":5,"type":"integer","minimum":1,"maximum":9007199254740991},"rangeMinutes":{"default":5,"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["intervalMinutes","rangeMinutes"],"additionalProperties":false},"severity":{"default":"warning","type":"string","enum":["info","warning","critical"]},"comparison":{"type":"string","enum":["above","aboveOrEqual","below","belowOrEqual","aboveOrBelow"]},"threshold":{"type":"number"},"tolerance":{"type":"number","minimum":0,"maximum":100},"compareDays":{"type":"integer","minimum":0,"maximum":7},"notifyByGroup":{"default":false,"type":"boolean"},"valueField":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"destinationIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"emailRecipients":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"smsRecipients":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$"}},"action":{"anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"disable_routing_rows"},"decisionTableIds":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"target":{"oneOf":[{"type":"object","properties":{"from":{"type":"string","const":"group"},"groupIndex":{"default":0,"type":"integer","minimum":0,"maximum":5}},"required":["from","groupIndex"],"additionalProperties":false},{"type":"object","properties":{"from":{"type":"string","const":"fixed"},"provider":{"type":"string","minLength":1,"maxLength":200}},"required":["from","provider"],"additionalProperties":false}]},"requireConsecutiveAlertRuns":{"default":3,"type":"integer","minimum":1,"maximum":30},"ttlMinutes":{"default":30,"type":"integer","minimum":5,"maximum":1440},"maxCycles":{"default":3,"type":"integer","minimum":1,"maximum":10}},"required":["kind","decisionTableIds","target","requireConsecutiveAlertRuns","ttlMinutes","maxCycles"],"additionalProperties":false}]},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"lastRunAt":{"type":["string","null"]},"nextRunAt":{"type":["string","null"]},"lastRunState":{"anyOf":[{"type":"string","enum":["ok","alert","error","no_data"]},{"type":"null"}]},"lastRunError":{"type":["string","null"]},"recentRuns":{"default":[],"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string"},"state":{"type":"string","enum":["ok","alert","error","no_data"]},"value":{"type":["number","null"]},"threshold":{"type":["number","null"]},"durationMs":{"type":["number","null"]},"error":{"type":["string","null"]},"errorSince":{"type":["string","null"]},"groupValues":{"type":"array","items":{"type":"string"}},"alertId":{"type":["string","null"]}},"required":["timestamp","state"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"createdBy":{"type":["string","null"]},"createdByName":{"type":["string","null"]},"createdByEmail":{"type":["string","null"]},"activeAlertCount":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastTriggeredAt":{"type":["string","null"]},"destinations":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["email","sms","slack"]},"name":{"type":"string"}},"required":["id","kind","name"],"additionalProperties":false}},"actionArmedBy":{"type":["string","null"]},"actionArmedByName":{"type":["string","null"]}},"required":["name","dataset","type","aplQuery","schedule","severity","notifyByGroup","enabled","destinationIds","emailRecipients","smsRecipients","id","contextType","contextId","recentRuns","createdAt","updatedAt","activeAlertCount","destinations"],"additionalProperties":false}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"post":{"summary":"Create a monitor (and sync it to the detection engine)","tags":["monitors"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"dataset":{"type":"string","enum":["usage_events_dev","audit-log","workflow-events","transactions","monitor-alerts","notifications","checkout-events"]},"type":{"type":"string","enum":["threshold","anomaly","match"]},"aplQuery":{"type":"string","minLength":1},"schedule":{"type":"object","properties":{"intervalMinutes":{"default":5,"type":"integer","minimum":1,"maximum":9007199254740991},"rangeMinutes":{"default":5,"type":"integer","minimum":1,"maximum":9007199254740991}}},"severity":{"default":"warning","type":"string","enum":["info","warning","critical"]},"comparison":{"type":"string","enum":["above","aboveOrEqual","below","belowOrEqual","aboveOrBelow"]},"threshold":{"type":"number"},"tolerance":{"type":"number","minimum":0,"maximum":100},"compareDays":{"type":"integer","minimum":0,"maximum":7},"notifyByGroup":{"default":false,"type":"boolean"},"valueField":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"destinationIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"emailRecipients":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"smsRecipients":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$"}},"action":{"anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"disable_routing_rows"},"decisionTableIds":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"target":{"oneOf":[{"type":"object","properties":{"from":{"type":"string","const":"group"},"groupIndex":{"default":0,"type":"integer","minimum":0,"maximum":5}},"required":["from"]},{"type":"object","properties":{"from":{"type":"string","const":"fixed"},"provider":{"type":"string","minLength":1,"maxLength":200}},"required":["from","provider"]}]},"requireConsecutiveAlertRuns":{"default":3,"type":"integer","minimum":1,"maximum":30},"ttlMinutes":{"default":30,"type":"integer","minimum":5,"maximum":1440},"maxCycles":{"default":3,"type":"integer","minimum":1,"maximum":10}},"required":["kind","decisionTableIds","target"]}]},{"type":"null"}]}},"required":["name","dataset","type","aplQuery","schedule"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"dataset":{"type":"string","enum":["usage_events_dev","audit-log","workflow-events","transactions","monitor-alerts","notifications","checkout-events"]},"type":{"type":"string","enum":["threshold","anomaly","match"]},"aplQuery":{"type":"string","minLength":1},"schedule":{"type":"object","properties":{"intervalMinutes":{"default":5,"type":"integer","minimum":1,"maximum":9007199254740991},"rangeMinutes":{"default":5,"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["intervalMinutes","rangeMinutes"],"additionalProperties":false},"severity":{"default":"warning","type":"string","enum":["info","warning","critical"]},"comparison":{"type":"string","enum":["above","aboveOrEqual","below","belowOrEqual","aboveOrBelow"]},"threshold":{"type":"number"},"tolerance":{"type":"number","minimum":0,"maximum":100},"compareDays":{"type":"integer","minimum":0,"maximum":7},"notifyByGroup":{"default":false,"type":"boolean"},"valueField":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"destinationIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"emailRecipients":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"smsRecipients":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$"}},"action":{"anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"disable_routing_rows"},"decisionTableIds":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"target":{"oneOf":[{"type":"object","properties":{"from":{"type":"string","const":"group"},"groupIndex":{"default":0,"type":"integer","minimum":0,"maximum":5}},"required":["from","groupIndex"],"additionalProperties":false},{"type":"object","properties":{"from":{"type":"string","const":"fixed"},"provider":{"type":"string","minLength":1,"maxLength":200}},"required":["from","provider"],"additionalProperties":false}]},"requireConsecutiveAlertRuns":{"default":3,"type":"integer","minimum":1,"maximum":30},"ttlMinutes":{"default":30,"type":"integer","minimum":5,"maximum":1440},"maxCycles":{"default":3,"type":"integer","minimum":1,"maximum":10}},"required":["kind","decisionTableIds","target","requireConsecutiveAlertRuns","ttlMinutes","maxCycles"],"additionalProperties":false}]},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"lastRunAt":{"type":["string","null"]},"nextRunAt":{"type":["string","null"]},"lastRunState":{"anyOf":[{"type":"string","enum":["ok","alert","error","no_data"]},{"type":"null"}]},"lastRunError":{"type":["string","null"]},"recentRuns":{"default":[],"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string"},"state":{"type":"string","enum":["ok","alert","error","no_data"]},"value":{"type":["number","null"]},"threshold":{"type":["number","null"]},"durationMs":{"type":["number","null"]},"error":{"type":["string","null"]},"errorSince":{"type":["string","null"]},"groupValues":{"type":"array","items":{"type":"string"}},"alertId":{"type":["string","null"]}},"required":["timestamp","state"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"createdBy":{"type":["string","null"]},"createdByName":{"type":["string","null"]},"createdByEmail":{"type":["string","null"]},"activeAlertCount":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastTriggeredAt":{"type":["string","null"]},"destinations":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["email","sms","slack"]},"name":{"type":"string"}},"required":["id","kind","name"],"additionalProperties":false}},"actionArmedBy":{"type":["string","null"]},"actionArmedByName":{"type":["string","null"]}},"required":["name","dataset","type","aplQuery","schedule","severity","notifyByGroup","enabled","destinationIds","emailRecipients","smsRecipients","id","contextType","contextId","recentRuns","createdAt","updatedAt","activeAlertCount","destinations"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/monitors/runs":{"get":{"summary":"Recent engine checks for monitors in the current context","tags":["monitors"],"parameters":[{"name":"ids","in":"query","schema":{"type":"string"}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":1000}},{"name":"hours","in":"query","schema":{"type":"integer","minimum":1,"maximum":720}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["state","value","durationMs"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"items":{"type":"array","items":{"type":"object","properties":{"monitorId":{"type":"string"},"source":{"type":"string","enum":["history","cache","unavailable"]},"message":{"type":["string","null"]},"runs":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string"},"state":{"type":"string","enum":["ok","alert","error","no_data"]},"value":{"type":["number","null"]},"threshold":{"type":["number","null"]},"durationMs":{"type":["number","null"]},"error":{"type":["string","null"]},"errorSince":{"type":["string","null"]},"groupValues":{"type":"array","items":{"type":"string"}},"alertId":{"type":["string","null"]}},"required":["timestamp","state"],"additionalProperties":false}}},"required":["monitorId","source","runs"],"additionalProperties":false}}},"required":["items"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/monitors/{id}":{"get":{"summary":"Get a monitor by ID","tags":["monitors"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"dataset":{"type":"string","enum":["usage_events_dev","audit-log","workflow-events","transactions","monitor-alerts","notifications","checkout-events"]},"type":{"type":"string","enum":["threshold","anomaly","match"]},"aplQuery":{"type":"string","minLength":1},"schedule":{"type":"object","properties":{"intervalMinutes":{"default":5,"type":"integer","minimum":1,"maximum":9007199254740991},"rangeMinutes":{"default":5,"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["intervalMinutes","rangeMinutes"],"additionalProperties":false},"severity":{"default":"warning","type":"string","enum":["info","warning","critical"]},"comparison":{"type":"string","enum":["above","aboveOrEqual","below","belowOrEqual","aboveOrBelow"]},"threshold":{"type":"number"},"tolerance":{"type":"number","minimum":0,"maximum":100},"compareDays":{"type":"integer","minimum":0,"maximum":7},"notifyByGroup":{"default":false,"type":"boolean"},"valueField":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"destinationIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"emailRecipients":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"smsRecipients":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$"}},"action":{"anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"disable_routing_rows"},"decisionTableIds":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"target":{"oneOf":[{"type":"object","properties":{"from":{"type":"string","const":"group"},"groupIndex":{"default":0,"type":"integer","minimum":0,"maximum":5}},"required":["from","groupIndex"],"additionalProperties":false},{"type":"object","properties":{"from":{"type":"string","const":"fixed"},"provider":{"type":"string","minLength":1,"maxLength":200}},"required":["from","provider"],"additionalProperties":false}]},"requireConsecutiveAlertRuns":{"default":3,"type":"integer","minimum":1,"maximum":30},"ttlMinutes":{"default":30,"type":"integer","minimum":5,"maximum":1440},"maxCycles":{"default":3,"type":"integer","minimum":1,"maximum":10}},"required":["kind","decisionTableIds","target","requireConsecutiveAlertRuns","ttlMinutes","maxCycles"],"additionalProperties":false}]},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"lastRunAt":{"type":["string","null"]},"nextRunAt":{"type":["string","null"]},"lastRunState":{"anyOf":[{"type":"string","enum":["ok","alert","error","no_data"]},{"type":"null"}]},"lastRunError":{"type":["string","null"]},"recentRuns":{"default":[],"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string"},"state":{"type":"string","enum":["ok","alert","error","no_data"]},"value":{"type":["number","null"]},"threshold":{"type":["number","null"]},"durationMs":{"type":["number","null"]},"error":{"type":["string","null"]},"errorSince":{"type":["string","null"]},"groupValues":{"type":"array","items":{"type":"string"}},"alertId":{"type":["string","null"]}},"required":["timestamp","state"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"createdBy":{"type":["string","null"]},"createdByName":{"type":["string","null"]},"createdByEmail":{"type":["string","null"]},"activeAlertCount":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastTriggeredAt":{"type":["string","null"]},"destinations":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["email","sms","slack"]},"name":{"type":"string"}},"required":["id","kind","name"],"additionalProperties":false}},"actionArmedBy":{"type":["string","null"]},"actionArmedByName":{"type":["string","null"]}},"required":["name","dataset","type","aplQuery","schedule","severity","notifyByGroup","enabled","destinationIds","emailRecipients","smsRecipients","id","contextType","contextId","recentRuns","createdAt","updatedAt","activeAlertCount","destinations"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"patch":{"summary":"Update a monitor","tags":["monitors"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"dataset":{"type":"string","enum":["usage_events_dev","audit-log","workflow-events","transactions","monitor-alerts","notifications","checkout-events"]},"type":{"type":"string","enum":["threshold","anomaly","match"]},"aplQuery":{"type":"string","minLength":1},"schedule":{"type":"object","properties":{"intervalMinutes":{"default":5,"type":"integer","minimum":1,"maximum":9007199254740991},"rangeMinutes":{"default":5,"type":"integer","minimum":1,"maximum":9007199254740991}}},"severity":{"type":"string","enum":["info","warning","critical"]},"comparison":{"type":"string","enum":["above","aboveOrEqual","below","belowOrEqual","aboveOrBelow"]},"threshold":{"type":"number"},"tolerance":{"type":"number","minimum":0,"maximum":100},"compareDays":{"type":"integer","minimum":0,"maximum":7},"notifyByGroup":{"type":"boolean"},"valueField":{"type":"string"},"enabled":{"type":"boolean"},"destinationIds":{"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"emailRecipients":{"maxItems":20,"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"smsRecipients":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$"}},"action":{"anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"disable_routing_rows"},"decisionTableIds":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"target":{"oneOf":[{"type":"object","properties":{"from":{"type":"string","const":"group"},"groupIndex":{"default":0,"type":"integer","minimum":0,"maximum":5}},"required":["from"]},{"type":"object","properties":{"from":{"type":"string","const":"fixed"},"provider":{"type":"string","minLength":1,"maxLength":200}},"required":["from","provider"]}]},"requireConsecutiveAlertRuns":{"default":3,"type":"integer","minimum":1,"maximum":30},"ttlMinutes":{"default":30,"type":"integer","minimum":5,"maximum":1440},"maxCycles":{"default":3,"type":"integer","minimum":1,"maximum":10}},"required":["kind","decisionTableIds","target"]}]},{"type":"null"}]}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"dataset":{"type":"string","enum":["usage_events_dev","audit-log","workflow-events","transactions","monitor-alerts","notifications","checkout-events"]},"type":{"type":"string","enum":["threshold","anomaly","match"]},"aplQuery":{"type":"string","minLength":1},"schedule":{"type":"object","properties":{"intervalMinutes":{"default":5,"type":"integer","minimum":1,"maximum":9007199254740991},"rangeMinutes":{"default":5,"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["intervalMinutes","rangeMinutes"],"additionalProperties":false},"severity":{"default":"warning","type":"string","enum":["info","warning","critical"]},"comparison":{"type":"string","enum":["above","aboveOrEqual","below","belowOrEqual","aboveOrBelow"]},"threshold":{"type":"number"},"tolerance":{"type":"number","minimum":0,"maximum":100},"compareDays":{"type":"integer","minimum":0,"maximum":7},"notifyByGroup":{"default":false,"type":"boolean"},"valueField":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"destinationIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"emailRecipients":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"smsRecipients":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$"}},"action":{"anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"disable_routing_rows"},"decisionTableIds":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"target":{"oneOf":[{"type":"object","properties":{"from":{"type":"string","const":"group"},"groupIndex":{"default":0,"type":"integer","minimum":0,"maximum":5}},"required":["from","groupIndex"],"additionalProperties":false},{"type":"object","properties":{"from":{"type":"string","const":"fixed"},"provider":{"type":"string","minLength":1,"maxLength":200}},"required":["from","provider"],"additionalProperties":false}]},"requireConsecutiveAlertRuns":{"default":3,"type":"integer","minimum":1,"maximum":30},"ttlMinutes":{"default":30,"type":"integer","minimum":5,"maximum":1440},"maxCycles":{"default":3,"type":"integer","minimum":1,"maximum":10}},"required":["kind","decisionTableIds","target","requireConsecutiveAlertRuns","ttlMinutes","maxCycles"],"additionalProperties":false}]},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"lastRunAt":{"type":["string","null"]},"nextRunAt":{"type":["string","null"]},"lastRunState":{"anyOf":[{"type":"string","enum":["ok","alert","error","no_data"]},{"type":"null"}]},"lastRunError":{"type":["string","null"]},"recentRuns":{"default":[],"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string"},"state":{"type":"string","enum":["ok","alert","error","no_data"]},"value":{"type":["number","null"]},"threshold":{"type":["number","null"]},"durationMs":{"type":["number","null"]},"error":{"type":["string","null"]},"errorSince":{"type":["string","null"]},"groupValues":{"type":"array","items":{"type":"string"}},"alertId":{"type":["string","null"]}},"required":["timestamp","state"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"createdBy":{"type":["string","null"]},"createdByName":{"type":["string","null"]},"createdByEmail":{"type":["string","null"]},"activeAlertCount":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastTriggeredAt":{"type":["string","null"]},"destinations":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["email","sms","slack"]},"name":{"type":"string"}},"required":["id","kind","name"],"additionalProperties":false}},"actionArmedBy":{"type":["string","null"]},"actionArmedByName":{"type":["string","null"]}},"required":["name","dataset","type","aplQuery","schedule","severity","notifyByGroup","enabled","destinationIds","emailRecipients","smsRecipients","id","contextType","contextId","recentRuns","createdAt","updatedAt","activeAlertCount","destinations"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"summary":"Delete a monitor (and remove it from the detection engine)","tags":["monitors"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"204":{"description":"204","content":{"application/json":{"schema":{}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/monitors/{id}/run":{"post":{"summary":"Evaluate the monitor now and apply what it finds","tags":["monitors"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"dataset":{"type":"string","enum":["usage_events_dev","audit-log","workflow-events","transactions","monitor-alerts","notifications","checkout-events"]},"type":{"type":"string","enum":["threshold","anomaly","match"]},"aplQuery":{"type":"string","minLength":1},"schedule":{"type":"object","properties":{"intervalMinutes":{"default":5,"type":"integer","minimum":1,"maximum":9007199254740991},"rangeMinutes":{"default":5,"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["intervalMinutes","rangeMinutes"],"additionalProperties":false},"severity":{"default":"warning","type":"string","enum":["info","warning","critical"]},"comparison":{"type":"string","enum":["above","aboveOrEqual","below","belowOrEqual","aboveOrBelow"]},"threshold":{"type":"number"},"tolerance":{"type":"number","minimum":0,"maximum":100},"compareDays":{"type":"integer","minimum":0,"maximum":7},"notifyByGroup":{"default":false,"type":"boolean"},"valueField":{"type":"string"},"enabled":{"default":true,"type":"boolean"},"destinationIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"emailRecipients":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"smsRecipients":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^\\+[1-9]\\d{1,14}$"}},"action":{"anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"disable_routing_rows"},"decisionTableIds":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"target":{"oneOf":[{"type":"object","properties":{"from":{"type":"string","const":"group"},"groupIndex":{"default":0,"type":"integer","minimum":0,"maximum":5}},"required":["from","groupIndex"],"additionalProperties":false},{"type":"object","properties":{"from":{"type":"string","const":"fixed"},"provider":{"type":"string","minLength":1,"maxLength":200}},"required":["from","provider"],"additionalProperties":false}]},"requireConsecutiveAlertRuns":{"default":3,"type":"integer","minimum":1,"maximum":30},"ttlMinutes":{"default":30,"type":"integer","minimum":5,"maximum":1440},"maxCycles":{"default":3,"type":"integer","minimum":1,"maximum":10}},"required":["kind","decisionTableIds","target","requireConsecutiveAlertRuns","ttlMinutes","maxCycles"],"additionalProperties":false}]},{"type":"null"}]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"lastRunAt":{"type":["string","null"]},"nextRunAt":{"type":["string","null"]},"lastRunState":{"anyOf":[{"type":"string","enum":["ok","alert","error","no_data"]},{"type":"null"}]},"lastRunError":{"type":["string","null"]},"recentRuns":{"default":[],"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string"},"state":{"type":"string","enum":["ok","alert","error","no_data"]},"value":{"type":["number","null"]},"threshold":{"type":["number","null"]},"durationMs":{"type":["number","null"]},"error":{"type":["string","null"]},"errorSince":{"type":["string","null"]},"groupValues":{"type":"array","items":{"type":"string"}},"alertId":{"type":["string","null"]}},"required":["timestamp","state"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"createdBy":{"type":["string","null"]},"createdByName":{"type":["string","null"]},"createdByEmail":{"type":["string","null"]},"activeAlertCount":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastTriggeredAt":{"type":["string","null"]},"destinations":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["email","sms","slack"]},"name":{"type":"string"}},"required":["id","kind","name"],"additionalProperties":false}},"actionArmedBy":{"type":["string","null"]},"actionArmedByName":{"type":["string","null"]}},"required":["name","dataset","type","aplQuery","schedule","severity","notifyByGroup","enabled","destinationIds","emailRecipients","smsRecipients","id","contextType","contextId","recentRuns","createdAt","updatedAt","activeAlertCount","destinations"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/monitors/{id}/test":{"post":{"summary":"Run the monitor query once and report whether it would trigger","tags":["monitors"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"wouldTrigger":{"type":"boolean"},"value":{"type":"number"},"rows":{}},"required":["message","wouldTrigger"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/monitors/{id}/simulate":{"post":{"summary":"Simulate an engine trigger for this monitor (testing)","tags":["monitors"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"action":{"default":"Open","type":"string","enum":["Open","Closed"]},"title":{"type":"string","maxLength":200},"description":{"type":"string","maxLength":1000},"value":{"type":"number"},"groupValues":{"maxItems":10,"type":"array","items":{"type":"string"}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"alertId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"status":{"type":"string"},"message":{"type":"string"}},"required":["status","message"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/monitors/{id}/actions":{"get":{"summary":"List the changes a monitor's action made","tags":["monitors"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"mode":{"type":"string","enum":["live","test"]},"monitorId":{"type":"string"},"monitorName":{"type":"string"},"alertId":{"type":["string","null"]},"kind":{"type":"string","const":"disable_routing_rows"},"decisionTableId":{"type":"string"},"decisionTableName":{"type":"string"},"provider":{"type":"string"},"rowIds":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"status":{"type":"string","enum":["active","confirmed","reverted","undone"]},"cycle":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expiresAt":{"type":["string","null"]},"appliedBy":{"type":"string"},"appliedByName":{"type":["string","null"]},"resolvedAt":{"type":["string","null"]},"resolvedBy":{"type":["string","null"]},"resolvedByName":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","contextType","contextId","mode","monitorId","monitorName","alertId","kind","decisionTableId","decisionTableName","provider","rowIds","summary","status","cycle","expiresAt","appliedBy","resolvedAt","resolvedBy","createdAt","updatedAt"],"additionalProperties":false}}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/monitor-actions/{actionId}/undo":{"post":{"summary":"Undo a monitor action's change","tags":["monitors"],"parameters":[{"name":"actionId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"mode":{"type":"string","enum":["live","test"]},"monitorId":{"type":"string"},"monitorName":{"type":"string"},"alertId":{"type":["string","null"]},"kind":{"type":"string","const":"disable_routing_rows"},"decisionTableId":{"type":"string"},"decisionTableName":{"type":"string"},"provider":{"type":"string"},"rowIds":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"status":{"type":"string","enum":["active","confirmed","reverted","undone"]},"cycle":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expiresAt":{"type":["string","null"]},"appliedBy":{"type":"string"},"appliedByName":{"type":["string","null"]},"resolvedAt":{"type":["string","null"]},"resolvedBy":{"type":["string","null"]},"resolvedByName":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","contextType","contextId","mode","monitorId","monitorName","alertId","kind","decisionTableId","decisionTableName","provider","rowIds","summary","status","cycle","expiresAt","appliedBy","resolvedAt","resolvedBy","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/monitor-actions/{actionId}/confirm":{"post":{"summary":"Confirm a monitor action's change, so it does not revert","tags":["monitors"],"parameters":[{"name":"actionId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"mode":{"type":"string","enum":["live","test"]},"monitorId":{"type":"string"},"monitorName":{"type":"string"},"alertId":{"type":["string","null"]},"kind":{"type":"string","const":"disable_routing_rows"},"decisionTableId":{"type":"string"},"decisionTableName":{"type":"string"},"provider":{"type":"string"},"rowIds":{"type":"array","items":{"type":"string"}},"summary":{"type":"string"},"status":{"type":"string","enum":["active","confirmed","reverted","undone"]},"cycle":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expiresAt":{"type":["string","null"]},"appliedBy":{"type":"string"},"appliedByName":{"type":["string","null"]},"resolvedAt":{"type":["string","null"]},"resolvedBy":{"type":["string","null"]},"resolvedByName":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","contextType","contextId","mode","monitorId","monitorName","alertId","kind","decisionTableId","decisionTableName","provider","rowIds","summary","status","cycle","expiresAt","appliedBy","resolvedAt","resolvedBy","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/monitor-alerts":{"get":{"summary":"List triggered alerts for the current context","tags":["monitorAlerts"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"status","in":"query","schema":{"type":"string","enum":["open","acknowledged","resolved","snoozed"]}},{"name":"severity","in":"query","schema":{"type":"string","enum":["info","warning","critical"]}},{"name":"monitorId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"assignedTo","in":"query","schema":{"type":"string"}},{"name":"active","in":"query","schema":{"type":"boolean"}},{"name":"page","in":"query","schema":{"type":"number"}},{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["status","severity","monitorName","assignedTo","triggerCount"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}},{"name":"count","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"monitorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"monitorName":{"type":"string"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"dedupKey":{"type":"string"},"status":{"type":"string","enum":["open","acknowledged","resolved","snoozed"]},"severity":{"type":"string","enum":["info","warning","critical"]},"title":{"type":"string"},"description":{"type":["string","null"]},"value":{"type":["number","null"]},"threshold":{"type":["number","null"]},"groupKeys":{"default":[],"type":"array","items":{"type":"string"}},"groupValues":{"default":[],"type":"array","items":{"type":"string"}},"matchedEvent":{"anyOf":[{},{"type":"null"}]},"firstSeenAt":{"type":"string"},"lastSeenAt":{"type":"string"},"triggerCount":{"default":1,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acknowledgedAt":{"type":["string","null"]},"acknowledgedBy":{"type":["string","null"]},"resolvedAt":{"type":["string","null"]},"resolvedBy":{"type":["string","null"]},"assignedTo":{"type":["string","null"]},"assignedToName":{"type":["string","null"]},"assignedToEmail":{"type":["string","null"]},"snoozedUntil":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","monitorId","monitorName","contextType","contextId","dedupKey","status","severity","title","groupKeys","groupValues","firstSeenAt","lastSeenAt","triggerCount","createdAt","updatedAt"],"additionalProperties":false}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/monitor-alerts/{id}":{"get":{"summary":"Get a triggered alert by ID","tags":["monitorAlerts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"monitorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"monitorName":{"type":"string"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"dedupKey":{"type":"string"},"status":{"type":"string","enum":["open","acknowledged","resolved","snoozed"]},"severity":{"type":"string","enum":["info","warning","critical"]},"title":{"type":"string"},"description":{"type":["string","null"]},"value":{"type":["number","null"]},"threshold":{"type":["number","null"]},"groupKeys":{"default":[],"type":"array","items":{"type":"string"}},"groupValues":{"default":[],"type":"array","items":{"type":"string"}},"matchedEvent":{"anyOf":[{},{"type":"null"}]},"firstSeenAt":{"type":"string"},"lastSeenAt":{"type":"string"},"triggerCount":{"default":1,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acknowledgedAt":{"type":["string","null"]},"acknowledgedBy":{"type":["string","null"]},"resolvedAt":{"type":["string","null"]},"resolvedBy":{"type":["string","null"]},"assignedTo":{"type":["string","null"]},"assignedToName":{"type":["string","null"]},"assignedToEmail":{"type":["string","null"]},"snoozedUntil":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","monitorId","monitorName","contextType","contextId","dedupKey","status","severity","title","groupKeys","groupValues","firstSeenAt","lastSeenAt","triggerCount","createdAt","updatedAt"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/monitor-alerts/{id}/acknowledge":{"post":{"summary":"Acknowledge an alert","tags":["monitorAlerts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"monitorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"monitorName":{"type":"string"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"dedupKey":{"type":"string"},"status":{"type":"string","enum":["open","acknowledged","resolved","snoozed"]},"severity":{"type":"string","enum":["info","warning","critical"]},"title":{"type":"string"},"description":{"type":["string","null"]},"value":{"type":["number","null"]},"threshold":{"type":["number","null"]},"groupKeys":{"default":[],"type":"array","items":{"type":"string"}},"groupValues":{"default":[],"type":"array","items":{"type":"string"}},"matchedEvent":{"anyOf":[{},{"type":"null"}]},"firstSeenAt":{"type":"string"},"lastSeenAt":{"type":"string"},"triggerCount":{"default":1,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acknowledgedAt":{"type":["string","null"]},"acknowledgedBy":{"type":["string","null"]},"resolvedAt":{"type":["string","null"]},"resolvedBy":{"type":["string","null"]},"assignedTo":{"type":["string","null"]},"assignedToName":{"type":["string","null"]},"assignedToEmail":{"type":["string","null"]},"snoozedUntil":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","monitorId","monitorName","contextType","contextId","dedupKey","status","severity","title","groupKeys","groupValues","firstSeenAt","lastSeenAt","triggerCount","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/monitor-alerts/{id}/resolve":{"post":{"summary":"Resolve an alert","tags":["monitorAlerts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"monitorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"monitorName":{"type":"string"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"dedupKey":{"type":"string"},"status":{"type":"string","enum":["open","acknowledged","resolved","snoozed"]},"severity":{"type":"string","enum":["info","warning","critical"]},"title":{"type":"string"},"description":{"type":["string","null"]},"value":{"type":["number","null"]},"threshold":{"type":["number","null"]},"groupKeys":{"default":[],"type":"array","items":{"type":"string"}},"groupValues":{"default":[],"type":"array","items":{"type":"string"}},"matchedEvent":{"anyOf":[{},{"type":"null"}]},"firstSeenAt":{"type":"string"},"lastSeenAt":{"type":"string"},"triggerCount":{"default":1,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acknowledgedAt":{"type":["string","null"]},"acknowledgedBy":{"type":["string","null"]},"resolvedAt":{"type":["string","null"]},"resolvedBy":{"type":["string","null"]},"assignedTo":{"type":["string","null"]},"assignedToName":{"type":["string","null"]},"assignedToEmail":{"type":["string","null"]},"snoozedUntil":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","monitorId","monitorName","contextType","contextId","dedupKey","status","severity","title","groupKeys","groupValues","firstSeenAt","lastSeenAt","triggerCount","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/monitor-alerts/{id}/reopen":{"post":{"summary":"Reopen a resolved alert","tags":["monitorAlerts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"monitorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"monitorName":{"type":"string"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"dedupKey":{"type":"string"},"status":{"type":"string","enum":["open","acknowledged","resolved","snoozed"]},"severity":{"type":"string","enum":["info","warning","critical"]},"title":{"type":"string"},"description":{"type":["string","null"]},"value":{"type":["number","null"]},"threshold":{"type":["number","null"]},"groupKeys":{"default":[],"type":"array","items":{"type":"string"}},"groupValues":{"default":[],"type":"array","items":{"type":"string"}},"matchedEvent":{"anyOf":[{},{"type":"null"}]},"firstSeenAt":{"type":"string"},"lastSeenAt":{"type":"string"},"triggerCount":{"default":1,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acknowledgedAt":{"type":["string","null"]},"acknowledgedBy":{"type":["string","null"]},"resolvedAt":{"type":["string","null"]},"resolvedBy":{"type":["string","null"]},"assignedTo":{"type":["string","null"]},"assignedToName":{"type":["string","null"]},"assignedToEmail":{"type":["string","null"]},"snoozedUntil":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","monitorId","monitorName","contextType","contextId","dedupKey","status","severity","title","groupKeys","groupValues","firstSeenAt","lastSeenAt","triggerCount","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/monitor-alerts/{id}/snooze":{"post":{"summary":"Snooze an alert until a given time","tags":["monitorAlerts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"note":{"type":"string"}},"required":["until"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"monitorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"monitorName":{"type":"string"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"dedupKey":{"type":"string"},"status":{"type":"string","enum":["open","acknowledged","resolved","snoozed"]},"severity":{"type":"string","enum":["info","warning","critical"]},"title":{"type":"string"},"description":{"type":["string","null"]},"value":{"type":["number","null"]},"threshold":{"type":["number","null"]},"groupKeys":{"default":[],"type":"array","items":{"type":"string"}},"groupValues":{"default":[],"type":"array","items":{"type":"string"}},"matchedEvent":{"anyOf":[{},{"type":"null"}]},"firstSeenAt":{"type":"string"},"lastSeenAt":{"type":"string"},"triggerCount":{"default":1,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acknowledgedAt":{"type":["string","null"]},"acknowledgedBy":{"type":["string","null"]},"resolvedAt":{"type":["string","null"]},"resolvedBy":{"type":["string","null"]},"assignedTo":{"type":["string","null"]},"assignedToName":{"type":["string","null"]},"assignedToEmail":{"type":["string","null"]},"snoozedUntil":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","monitorId","monitorName","contextType","contextId","dedupKey","status","severity","title","groupKeys","groupValues","firstSeenAt","lastSeenAt","triggerCount","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/monitor-alerts/{id}/assign":{"post":{"summary":"Assign or unassign an alert","tags":["monitorAlerts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"assignedTo":{"type":["string","null"]}},"required":["assignedTo"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"monitorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"monitorName":{"type":"string"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"dedupKey":{"type":"string"},"status":{"type":"string","enum":["open","acknowledged","resolved","snoozed"]},"severity":{"type":"string","enum":["info","warning","critical"]},"title":{"type":"string"},"description":{"type":["string","null"]},"value":{"type":["number","null"]},"threshold":{"type":["number","null"]},"groupKeys":{"default":[],"type":"array","items":{"type":"string"}},"groupValues":{"default":[],"type":"array","items":{"type":"string"}},"matchedEvent":{"anyOf":[{},{"type":"null"}]},"firstSeenAt":{"type":"string"},"lastSeenAt":{"type":"string"},"triggerCount":{"default":1,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"acknowledgedAt":{"type":["string","null"]},"acknowledgedBy":{"type":["string","null"]},"resolvedAt":{"type":["string","null"]},"resolvedBy":{"type":["string","null"]},"assignedTo":{"type":["string","null"]},"assignedToName":{"type":["string","null"]},"assignedToEmail":{"type":["string","null"]},"snoozedUntil":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","monitorId","monitorName","contextType","contextId","dedupKey","status","severity","title","groupKeys","groupValues","firstSeenAt","lastSeenAt","triggerCount","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/monitor-alerts/{id}/audit-trail":{"get":{"summary":"Get the full audit trail for an alert","tags":["monitorAlerts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string"},"kind":{"type":"string"},"actorId":{"type":["string","null"]},"actorName":{"type":["string","null"]},"actorEmail":{"type":["string","null"]},"note":{"type":["string","null"]},"fromStatus":{"type":["string","null"]},"toStatus":{"type":["string","null"]},"channel":{"type":["string","null"]},"target":{"type":["string","null"]},"deliveryStatus":{"type":["string","null"]}},"required":["timestamp","kind"],"additionalProperties":false}}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/monitor-alerts/{id}/comments":{"get":{"summary":"List comments on an alert","tags":["monitorAlerts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"alertId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"authorId":{"type":"string"},"authorName":{"type":["string","null"]},"authorEmail":{"type":["string","null"]},"body":{"type":"string","minLength":1},"createdAt":{"type":"string"}},"required":["id","alertId","contextType","contextId","authorId","body","createdAt"],"additionalProperties":false}}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"post":{"summary":"Add a comment to an alert","tags":["monitorAlerts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"body":{"type":"string","minLength":1,"maxLength":10000}},"required":["body"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"alertId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"authorId":{"type":"string"},"authorName":{"type":["string","null"]},"authorEmail":{"type":["string","null"]},"body":{"type":"string","minLength":1},"createdAt":{"type":"string"}},"required":["id","alertId","contextType","contextId","authorId","body","createdAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/alert-destinations":{"get":{"summary":"List alert destinations for the current context","tags":["alertDestinations"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"kind","in":"query","schema":{"type":"string","enum":["email","sms","slack"]}},{"name":"page","in":"query","schema":{"type":"number"}},{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["kind","name","createdAt"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"kind":{"type":"string","enum":["email","sms","slack"]},"name":{"type":"string"},"target":{"type":"string"},"usedBy":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"createdBy":{"type":["string","null"]},"createdByName":{"type":["string","null"]}},"required":["id","contextType","contextId","kind","name","target","usedBy","createdAt","updatedAt"],"additionalProperties":false}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"post":{"summary":"Register an alert destination","tags":["alertDestinations"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"kind":{"type":"string","enum":["email","sms","slack"]},"name":{"type":"string","minLength":1,"maxLength":100},"target":{"type":"string","minLength":1,"maxLength":500}},"required":["kind","name","target"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"kind":{"type":"string","enum":["email","sms","slack"]},"name":{"type":"string"},"target":{"type":"string"},"usedBy":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"createdBy":{"type":["string","null"]},"createdByName":{"type":["string","null"]}},"required":["id","contextType","contextId","kind","name","target","usedBy","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/alert-destinations/{id}":{"get":{"summary":"Get an alert destination by ID","tags":["alertDestinations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"kind":{"type":"string","enum":["email","sms","slack"]},"name":{"type":"string"},"target":{"type":"string"},"usedBy":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"createdBy":{"type":["string","null"]},"createdByName":{"type":["string","null"]}},"required":["id","contextType","contextId","kind","name","target","usedBy","createdAt","updatedAt"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"patch":{"summary":"Rename an alert destination or change its address","tags":["alertDestinations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"target":{"type":"string","minLength":1,"maxLength":500}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"kind":{"type":"string","enum":["email","sms","slack"]},"name":{"type":"string"},"target":{"type":"string"},"usedBy":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"createdBy":{"type":["string","null"]},"createdByName":{"type":["string","null"]}},"required":["id","contextType","contextId","kind","name","target","usedBy","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"summary":"Delete an alert destination","tags":["alertDestinations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"204":{"description":"204","content":{"application/json":{"schema":{}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/alert-destinations/{id}/test":{"post":{"summary":"Send a test message to an alert destination","tags":["alertDestinations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["sent","failed","skipped"]},"target":{"type":"string"},"message":{"type":"string"}},"required":["status","target","message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/agent-tasks":{"get":{"summary":"List scheduled agent tasks in the current context","tags":["agentTasks"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"type":"number"}},{"name":"limit","in":"query","schema":{"type":"number"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["name","enabled","notifyPolicy","lastRunState","createdAt"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"mode":{"type":"string","enum":["live","test"]},"agentId":{"type":"string"},"name":{"type":"string"},"instruction":{"type":"string"},"trigger":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"schedule"},"cron":{"type":"string","minLength":1,"maxLength":100},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"monitor_alert"},"monitorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","monitorId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"approval_review"}},"required":["kind"],"additionalProperties":false}]},"triggerMonitorName":{"type":["string","null"]},"notifyPolicy":{"type":"string","enum":["always","on_finding","never"]},"minSeverity":{"type":"string","enum":["info","warning","critical"]},"destinationIds":{"type":"array","items":{"type":"string"}},"destinations":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["email","sms","slack"]},"name":{"type":"string"}},"required":["id","kind","name"],"additionalProperties":false}},"recipe":{"type":"array","items":{"type":"object","properties":{"description":{"default":"","type":"string","maxLength":300},"dataset":{"type":"string","minLength":1,"maxLength":100},"query":{"type":"string","minLength":1,"maxLength":4000}},"required":["description","dataset","query"],"additionalProperties":false}},"model":{"type":["string","null"]},"effort":{"anyOf":[{"type":"string","enum":["low","medium","high","xhigh","max"]},{"type":"null"}]},"maxRunsPerDay":{"type":"number"},"enabled":{"type":"boolean"},"disabledReason":{"type":["string","null"]},"ownerSubjectId":{"type":"string"},"ownerName":{"type":["string","null"]},"ownerEmail":{"type":["string","null"]},"sourceConversationId":{"type":["string","null"]},"nextRunAt":{"type":["string","null"]},"lastRunAt":{"type":["string","null"]},"lastRunState":{"anyOf":[{"type":"string","enum":["ok","silent","error","skipped"]},{"type":"null"}]},"lastError":{"type":["string","null"]},"recentRuns":{"default":[],"type":"array","items":{"type":"object","properties":{"runKey":{"type":"string"},"cause":{"type":"string","enum":["schedule","manual","monitor_alert","approval_review"]},"timestamp":{"type":"string"},"state":{"type":"string","enum":["ok","silent","error","skipped"]},"conversationId":{"type":["string","null"]},"delivered":{"type":"boolean"},"severity":{"anyOf":[{"type":"string","enum":["info","warning","critical"]},{"type":"null"}]},"title":{"type":["string","null"]},"error":{"type":["string","null"]},"durationMs":{"type":["number","null"]},"inputTokens":{"type":["number","null"]},"outputTokens":{"type":["number","null"]},"cacheReadInputTokens":{"type":["number","null"]},"alertId":{"type":["string","null"]},"approvalId":{"type":["string","null"]},"errorSince":{"type":["string","null"]},"summary":{"type":["string","null"]}},"required":["runKey","cause","timestamp","state","conversationId","delivered"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"createdBy":{"type":["string","null"]},"createdByName":{"type":["string","null"]},"createdByEmail":{"type":["string","null"]}},"required":["id","contextType","contextId","mode","agentId","name","instruction","trigger","notifyPolicy","minSeverity","destinationIds","destinations","recipe","model","effort","maxRunsPerDay","enabled","disabledReason","ownerSubjectId","sourceConversationId","nextRunAt","lastRunAt","lastRunState","lastError","recentRuns","createdAt","updatedAt","createdBy"],"additionalProperties":false}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"post":{"summary":"Create a scheduled agent task","tags":["agentTasks"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"instruction":{"type":"string","minLength":1,"maxLength":4000},"trigger":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"schedule"},"cron":{"type":"string","minLength":1,"maxLength":100},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"]},{"type":"object","properties":{"kind":{"type":"string","const":"monitor_alert"},"monitorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","monitorId"]},{"type":"object","properties":{"kind":{"type":"string","const":"approval_review"}},"required":["kind"]}]},"notifyPolicy":{"default":"always","type":"string","enum":["always","on_finding","never"]},"minSeverity":{"default":"info","type":"string","enum":["info","warning","critical"]},"destinationIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"recipe":{"default":[],"maxItems":10,"type":"array","items":{"type":"object","properties":{"description":{"default":"","type":"string","maxLength":300},"dataset":{"type":"string","minLength":1,"maxLength":100},"query":{"type":"string","minLength":1,"maxLength":4000}},"required":["dataset","query"]}},"model":{"default":null,"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}]},"effort":{"default":null,"anyOf":[{"type":"string","enum":["low","medium","high","xhigh","max"]},{"type":"null"}]},"maxRunsPerDay":{"default":24,"type":"integer","minimum":1,"maximum":48},"enabled":{"default":true,"type":"boolean"},"agentId":{"default":"analyst","type":"string","minLength":1,"maxLength":64}},"required":["name","instruction","trigger"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"mode":{"type":"string","enum":["live","test"]},"agentId":{"type":"string"},"name":{"type":"string"},"instruction":{"type":"string"},"trigger":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"schedule"},"cron":{"type":"string","minLength":1,"maxLength":100},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"monitor_alert"},"monitorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","monitorId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"approval_review"}},"required":["kind"],"additionalProperties":false}]},"triggerMonitorName":{"type":["string","null"]},"notifyPolicy":{"type":"string","enum":["always","on_finding","never"]},"minSeverity":{"type":"string","enum":["info","warning","critical"]},"destinationIds":{"type":"array","items":{"type":"string"}},"destinations":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["email","sms","slack"]},"name":{"type":"string"}},"required":["id","kind","name"],"additionalProperties":false}},"recipe":{"type":"array","items":{"type":"object","properties":{"description":{"default":"","type":"string","maxLength":300},"dataset":{"type":"string","minLength":1,"maxLength":100},"query":{"type":"string","minLength":1,"maxLength":4000}},"required":["description","dataset","query"],"additionalProperties":false}},"model":{"type":["string","null"]},"effort":{"anyOf":[{"type":"string","enum":["low","medium","high","xhigh","max"]},{"type":"null"}]},"maxRunsPerDay":{"type":"number"},"enabled":{"type":"boolean"},"disabledReason":{"type":["string","null"]},"ownerSubjectId":{"type":"string"},"ownerName":{"type":["string","null"]},"ownerEmail":{"type":["string","null"]},"sourceConversationId":{"type":["string","null"]},"nextRunAt":{"type":["string","null"]},"lastRunAt":{"type":["string","null"]},"lastRunState":{"anyOf":[{"type":"string","enum":["ok","silent","error","skipped"]},{"type":"null"}]},"lastError":{"type":["string","null"]},"recentRuns":{"default":[],"type":"array","items":{"type":"object","properties":{"runKey":{"type":"string"},"cause":{"type":"string","enum":["schedule","manual","monitor_alert","approval_review"]},"timestamp":{"type":"string"},"state":{"type":"string","enum":["ok","silent","error","skipped"]},"conversationId":{"type":["string","null"]},"delivered":{"type":"boolean"},"severity":{"anyOf":[{"type":"string","enum":["info","warning","critical"]},{"type":"null"}]},"title":{"type":["string","null"]},"error":{"type":["string","null"]},"durationMs":{"type":["number","null"]},"inputTokens":{"type":["number","null"]},"outputTokens":{"type":["number","null"]},"cacheReadInputTokens":{"type":["number","null"]},"alertId":{"type":["string","null"]},"approvalId":{"type":["string","null"]},"errorSince":{"type":["string","null"]},"summary":{"type":["string","null"]}},"required":["runKey","cause","timestamp","state","conversationId","delivered"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"createdBy":{"type":["string","null"]},"createdByName":{"type":["string","null"]},"createdByEmail":{"type":["string","null"]}},"required":["id","contextType","contextId","mode","agentId","name","instruction","trigger","notifyPolicy","minSeverity","destinationIds","destinations","recipe","model","effort","maxRunsPerDay","enabled","disabledReason","ownerSubjectId","sourceConversationId","nextRunAt","lastRunAt","lastRunState","lastError","recentRuns","createdAt","updatedAt","createdBy"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/agent-tasks/{id}":{"get":{"summary":"Get a scheduled agent task by ID","tags":["agentTasks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"mode":{"type":"string","enum":["live","test"]},"agentId":{"type":"string"},"name":{"type":"string"},"instruction":{"type":"string"},"trigger":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"schedule"},"cron":{"type":"string","minLength":1,"maxLength":100},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"monitor_alert"},"monitorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","monitorId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"approval_review"}},"required":["kind"],"additionalProperties":false}]},"triggerMonitorName":{"type":["string","null"]},"notifyPolicy":{"type":"string","enum":["always","on_finding","never"]},"minSeverity":{"type":"string","enum":["info","warning","critical"]},"destinationIds":{"type":"array","items":{"type":"string"}},"destinations":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["email","sms","slack"]},"name":{"type":"string"}},"required":["id","kind","name"],"additionalProperties":false}},"recipe":{"type":"array","items":{"type":"object","properties":{"description":{"default":"","type":"string","maxLength":300},"dataset":{"type":"string","minLength":1,"maxLength":100},"query":{"type":"string","minLength":1,"maxLength":4000}},"required":["description","dataset","query"],"additionalProperties":false}},"model":{"type":["string","null"]},"effort":{"anyOf":[{"type":"string","enum":["low","medium","high","xhigh","max"]},{"type":"null"}]},"maxRunsPerDay":{"type":"number"},"enabled":{"type":"boolean"},"disabledReason":{"type":["string","null"]},"ownerSubjectId":{"type":"string"},"ownerName":{"type":["string","null"]},"ownerEmail":{"type":["string","null"]},"sourceConversationId":{"type":["string","null"]},"nextRunAt":{"type":["string","null"]},"lastRunAt":{"type":["string","null"]},"lastRunState":{"anyOf":[{"type":"string","enum":["ok","silent","error","skipped"]},{"type":"null"}]},"lastError":{"type":["string","null"]},"recentRuns":{"default":[],"type":"array","items":{"type":"object","properties":{"runKey":{"type":"string"},"cause":{"type":"string","enum":["schedule","manual","monitor_alert","approval_review"]},"timestamp":{"type":"string"},"state":{"type":"string","enum":["ok","silent","error","skipped"]},"conversationId":{"type":["string","null"]},"delivered":{"type":"boolean"},"severity":{"anyOf":[{"type":"string","enum":["info","warning","critical"]},{"type":"null"}]},"title":{"type":["string","null"]},"error":{"type":["string","null"]},"durationMs":{"type":["number","null"]},"inputTokens":{"type":["number","null"]},"outputTokens":{"type":["number","null"]},"cacheReadInputTokens":{"type":["number","null"]},"alertId":{"type":["string","null"]},"approvalId":{"type":["string","null"]},"errorSince":{"type":["string","null"]},"summary":{"type":["string","null"]}},"required":["runKey","cause","timestamp","state","conversationId","delivered"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"createdBy":{"type":["string","null"]},"createdByName":{"type":["string","null"]},"createdByEmail":{"type":["string","null"]}},"required":["id","contextType","contextId","mode","agentId","name","instruction","trigger","notifyPolicy","minSeverity","destinationIds","destinations","recipe","model","effort","maxRunsPerDay","enabled","disabledReason","ownerSubjectId","sourceConversationId","nextRunAt","lastRunAt","lastRunState","lastError","recentRuns","createdAt","updatedAt","createdBy"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"patch":{"summary":"Change a scheduled agent task","tags":["agentTasks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":100},"instruction":{"type":"string","minLength":1,"maxLength":4000},"trigger":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"schedule"},"cron":{"type":"string","minLength":1,"maxLength":100},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"]},{"type":"object","properties":{"kind":{"type":"string","const":"monitor_alert"},"monitorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","monitorId"]},{"type":"object","properties":{"kind":{"type":"string","const":"approval_review"}},"required":["kind"]}]},"notifyPolicy":{"type":"string","enum":["always","on_finding","never"]},"minSeverity":{"type":"string","enum":["info","warning","critical"]},"destinationIds":{"maxItems":20,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"recipe":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"description":{"default":"","type":"string","maxLength":300},"dataset":{"type":"string","minLength":1,"maxLength":100},"query":{"type":"string","minLength":1,"maxLength":4000}},"required":["dataset","query"]}},"model":{"anyOf":[{"type":"string","minLength":1,"maxLength":100},{"type":"null"}]},"effort":{"anyOf":[{"type":"string","enum":["low","medium","high","xhigh","max"]},{"type":"null"}]},"maxRunsPerDay":{"type":"integer","minimum":1,"maximum":48},"enabled":{"type":"boolean"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"contextType":{"type":"string","enum":["organization","customer"]},"contextId":{"type":"string"},"mode":{"type":"string","enum":["live","test"]},"agentId":{"type":"string"},"name":{"type":"string"},"instruction":{"type":"string"},"trigger":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"schedule"},"cron":{"type":"string","minLength":1,"maxLength":100},"timezone":{"type":"string","minLength":1,"maxLength":64}},"required":["kind","cron","timezone"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"monitor_alert"},"monitorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["kind","monitorId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"approval_review"}},"required":["kind"],"additionalProperties":false}]},"triggerMonitorName":{"type":["string","null"]},"notifyPolicy":{"type":"string","enum":["always","on_finding","never"]},"minSeverity":{"type":"string","enum":["info","warning","critical"]},"destinationIds":{"type":"array","items":{"type":"string"}},"destinations":{"default":[],"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["email","sms","slack"]},"name":{"type":"string"}},"required":["id","kind","name"],"additionalProperties":false}},"recipe":{"type":"array","items":{"type":"object","properties":{"description":{"default":"","type":"string","maxLength":300},"dataset":{"type":"string","minLength":1,"maxLength":100},"query":{"type":"string","minLength":1,"maxLength":4000}},"required":["description","dataset","query"],"additionalProperties":false}},"model":{"type":["string","null"]},"effort":{"anyOf":[{"type":"string","enum":["low","medium","high","xhigh","max"]},{"type":"null"}]},"maxRunsPerDay":{"type":"number"},"enabled":{"type":"boolean"},"disabledReason":{"type":["string","null"]},"ownerSubjectId":{"type":"string"},"ownerName":{"type":["string","null"]},"ownerEmail":{"type":["string","null"]},"sourceConversationId":{"type":["string","null"]},"nextRunAt":{"type":["string","null"]},"lastRunAt":{"type":["string","null"]},"lastRunState":{"anyOf":[{"type":"string","enum":["ok","silent","error","skipped"]},{"type":"null"}]},"lastError":{"type":["string","null"]},"recentRuns":{"default":[],"type":"array","items":{"type":"object","properties":{"runKey":{"type":"string"},"cause":{"type":"string","enum":["schedule","manual","monitor_alert","approval_review"]},"timestamp":{"type":"string"},"state":{"type":"string","enum":["ok","silent","error","skipped"]},"conversationId":{"type":["string","null"]},"delivered":{"type":"boolean"},"severity":{"anyOf":[{"type":"string","enum":["info","warning","critical"]},{"type":"null"}]},"title":{"type":["string","null"]},"error":{"type":["string","null"]},"durationMs":{"type":["number","null"]},"inputTokens":{"type":["number","null"]},"outputTokens":{"type":["number","null"]},"cacheReadInputTokens":{"type":["number","null"]},"alertId":{"type":["string","null"]},"approvalId":{"type":["string","null"]},"errorSince":{"type":["string","null"]},"summary":{"type":["string","null"]}},"required":["runKey","cause","timestamp","state","conversationId","delivered"],"additionalProperties":false}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"createdBy":{"type":["string","null"]},"createdByName":{"type":["string","null"]},"createdByEmail":{"type":["string","null"]}},"required":["id","contextType","contextId","mode","agentId","name","instruction","trigger","notifyPolicy","minSeverity","destinationIds","destinations","recipe","model","effort","maxRunsPerDay","enabled","disabledReason","ownerSubjectId","sourceConversationId","nextRunAt","lastRunAt","lastRunState","lastError","recentRuns","createdAt","updatedAt","createdBy"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"summary":"Delete a scheduled agent task","tags":["agentTasks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"204":{"description":"204","content":{"application/json":{"schema":{}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/agent-tasks/{id}/run":{"post":{"summary":"Run a scheduled agent task now","tags":["agentTasks"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"202":{"description":"202","content":{"application/json":{"schema":{"type":"object","properties":{"runKey":{"type":"string"},"dispatch":{"type":"string","const":"scheduled"}},"required":["runKey","dispatch"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/audit-log/changes":{"get":{"description":"Recorded changes, newest first, in the request's mode and to items both modes share. Filter by who made them, when, the item, its type, the merchant and the application.","summary":"Search recorded configuration changes","tags":["auditLog"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"customerId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"sort","in":"query","schema":{"type":"string","enum":["asc","desc"]}},{"name":"page","in":"query","schema":{"default":1,"type":"number","minimum":1}},{"name":"limit","in":"query","schema":{"default":100,"type":"number","minimum":1}},{"name":"dateRange","in":"query","style":"deepObject","schema":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}}},{"name":"refresh","in":"query","schema":{"type":"boolean"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["createdAt","actorName","actorId","actorType","entityType","entityName","entityId","change","customerId","applicationId","mode"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string"},"organizationId":{"type":"string"},"customerId":{"type":["string","null"]},"customerName":{"type":["string","null"]},"applicationId":{"type":["string","null"]},"applicationName":{"type":["string","null"]},"contextType":{"type":"string"},"contextId":{"type":"string"},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"entityType":{"type":"string","enum":["service-connection","account-fees","provider","provider-policy","settings","decision-table","provider-settings","provider-inputs"]},"entityId":{"type":"string"},"entityName":{"type":"string"},"parentEntityId":{"type":["string","null"]},"change":{"type":"string"},"version":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"versionRef":{"type":["string","null"]},"summary":{"anyOf":[{"type":"object","properties":{"details":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"field"},"path":{"type":"string"},"label":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"secret"},"path":{"type":"string"},"label":{"type":"string"},"action":{"type":"string","enum":["set","replaced","cleared"]}},"required":["type","path","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"path":{"type":"string"},"label":{"type":"string"},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","path","added","removed"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-table"},"table":{"type":"string"},"action":{"type":"string","enum":["added","removed"]}},"required":["type","table","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-rule"},"table":{"type":"string"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","table","detail"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","detail"],"additionalProperties":false}]}},"moreDetails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["details"],"additionalProperties":false},{"type":"null"}]},"note":{"type":["string","null"]},"actor":{"type":"object","properties":{"type":{"type":"string","enum":["user","api","system"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"onBehalf":{"type":"boolean"}},"required":["type","id","name","onBehalf"],"additionalProperties":false}},"required":["id","createdAt","organizationId","customerId","customerName","applicationId","applicationName","contextType","contextId","mode","entityType","entityId","entityName","parentEntityId","change","version","versionRef","summary","note","actor"],"additionalProperties":false}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/audit-log/changes/export/csv":{"get":{"summary":"Export recorded configuration changes as CSV","tags":["auditLog"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"customerId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"sort","in":"query","schema":{"type":"string","enum":["asc","desc"]}},{"name":"page","in":"query","schema":{"default":1,"type":"number","minimum":1}},{"name":"limit","in":"query","schema":{"default":100,"type":"number","minimum":1}},{"name":"dateRange","in":"query","style":"deepObject","schema":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}}},{"name":"refresh","in":"query","schema":{"type":"boolean"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["createdAt","actorName","actorId","actorType","entityType","entityName","entityId","change","customerId","applicationId","mode"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/audit-log/changes/{id}":{"get":{"summary":"Get one recorded configuration change","tags":["auditLog"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"string"},"organizationId":{"type":"string"},"customerId":{"type":["string","null"]},"customerName":{"type":["string","null"]},"applicationId":{"type":["string","null"]},"applicationName":{"type":["string","null"]},"contextType":{"type":"string"},"contextId":{"type":"string"},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"entityType":{"type":"string","enum":["service-connection","account-fees","provider","provider-policy","settings","decision-table","provider-settings","provider-inputs"]},"entityId":{"type":"string"},"entityName":{"type":"string"},"parentEntityId":{"type":["string","null"]},"change":{"type":"string"},"version":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"versionRef":{"type":["string","null"]},"summary":{"anyOf":[{"type":"object","properties":{"details":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"field"},"path":{"type":"string"},"label":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"secret"},"path":{"type":"string"},"label":{"type":"string"},"action":{"type":"string","enum":["set","replaced","cleared"]}},"required":["type","path","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"path":{"type":"string"},"label":{"type":"string"},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","path","added","removed"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-table"},"table":{"type":"string"},"action":{"type":"string","enum":["added","removed"]}},"required":["type","table","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-rule"},"table":{"type":"string"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","table","detail"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","detail"],"additionalProperties":false}]}},"moreDetails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["details"],"additionalProperties":false},{"type":"null"}]},"note":{"type":["string","null"]},"actor":{"type":"object","properties":{"type":{"type":"string","enum":["user","api","system"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"onBehalf":{"type":"boolean"}},"required":["type","id","name","onBehalf"],"additionalProperties":false}},"required":["id","createdAt","organizationId","customerId","customerName","applicationId","applicationName","contextType","contextId","mode","entityType","entityId","entityName","parentEntityId","change","version","versionRef","summary","note","actor"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/analytics/query":{"post":{"description":"Structured query interface for Analytics Engine","summary":"Execute a query against the Analytics Engine","tags":["analytics"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"dataset":{"type":"string","minLength":1},"query":{"type":"string","minLength":1},"startDate":{"type":"string"},"endDate":{"type":"string"},"f":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"operator":{"type":"string"},"value":{}},"required":["field","operator","value"]}}},"required":["dataset","query"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"datasetNames":{"type":"array","items":{"type":"string"}},"status":{"type":"object","properties":{"elapsedTime":{"type":"number"},"blocksExamined":{"type":"number"},"rowsExamined":{"type":"number"},"rowsMatched":{"type":"number"},"numGroups":{"type":"number"},"isPartial":{"type":"boolean"},"cacheStatus":{"type":"number"},"minBlockTime":{"type":"string"},"maxBlockTime":{"type":"string"}},"required":["elapsedTime","blocksExamined","rowsExamined","rowsMatched","numGroups","isPartial","cacheStatus","minBlockTime","maxBlockTime"],"additionalProperties":false},"buckets":{"type":"object","properties":{"series":{"type":"array","items":{"type":"object","properties":{"interval":{"type":"string"},"groups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"group":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"aggregations":{"type":"array","items":{"type":"object","properties":{"alias":{"type":"string"},"value":{"type":"number"}},"required":["alias","value"],"additionalProperties":false}}},"required":["id","group","aggregations"],"additionalProperties":false}}},"required":["interval","groups"],"additionalProperties":false}},"totals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"group":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"aggregations":{"type":"array","items":{"type":"object","properties":{"alias":{"type":"string"},"value":{"type":"number"}},"required":["alias","value"],"additionalProperties":false}}},"required":["id","group","aggregations"],"additionalProperties":false}}},"required":["series","totals"],"additionalProperties":false},"fieldsMetaMap":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"type":{"type":"string"},"unit":{"type":"string"},"description":{"type":"string"}},"required":["type"],"additionalProperties":false}},"request":{"type":"object","properties":{"endTime":{"type":"string"},"resolution":{"type":"string"},"startTime":{"type":"string"},"aggregations":{"type":"array","items":{"type":"object","properties":{"alias":{"type":"string"},"argument":{"type":"string"},"field":{"type":"string"},"op":{"type":"string"}},"required":["alias","field","op"],"additionalProperties":false}},"filter":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"groupBy":{"type":"array","items":{"type":"string"}},"limit":{"type":"number"},"order":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"desc":{"type":"boolean"}},"required":["field","desc"],"additionalProperties":false}},"project":{"type":"array","items":{"type":"string"}},"virtualFields":{"type":"array","items":{"type":"object","properties":{"alias":{"type":"string"},"expr":{"type":"string"}},"required":["alias","expr"],"additionalProperties":false}}},"required":["endTime","resolution","startTime"],"additionalProperties":false},"tables":{"type":"array","items":{"type":"object","properties":{"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string"},"agg":{"anyOf":[{"type":"boolean"},{"type":"object","properties":{"name":{"type":"string"}},"required":["name"],"additionalProperties":false}]}},"required":["name","type"],"additionalProperties":false}},"groups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"number"},"group":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","group"],"additionalProperties":false}},"name":{"type":"string"},"order":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"desc":{"type":"boolean"}},"required":["field","desc"],"additionalProperties":false}},"sources":{"type":"array","items":{"type":"string"}},"columns":{"type":"array","items":{"type":"array","items":{}}},"range":{"type":"object","properties":{"field":{"type":"string"},"start":{"type":"string"},"end":{"type":"string"}},"required":["field","start","end"],"additionalProperties":false}},"required":["fields","groups","name","order","sources","columns","range"],"additionalProperties":false}}},"required":["datasetNames","status","buckets","fieldsMetaMap","request","tables"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/analytics/schema":{"get":{"description":"Returns column metadata (name, type, ordinal, column type) for the specified datasets","summary":"Get schema for one or more datasets","tags":["analytics"],"parameters":[{"name":"datasets","in":"query","description":"Comma-separated list of dataset names","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"columnName":{"type":"string"},"dataType":{"type":"string"},"columnOrdinal":{"type":"number"},"columnType":{"type":"string"}},"required":["columnName","dataType","columnOrdinal","columnType"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/analytics/datasets":{"get":{"description":"Retrieve a list of available datasets with their IDs and names","summary":"List available datasets","tags":["analytics"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/organizations/{organizationId}/customers/{customerId}/overview":{"get":{"summary":"Get customer overview dashboard data","tags":["customerOverview"],"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"summary":{"type":"object","properties":{"totalSpend":{"type":"number"},"currency":{"default":"USD","type":"string"},"activeApplications":{"type":"number"},"openSupportTickets":{"type":"number"},"activePricePlans":{"type":"number"},"customerSince":{"type":"string"},"status":{"type":"string","enum":["ONBOARDING","ACTIVE","DORMANT","SUSPENDED","INACTIVE","ARCHIVED"]},"healthScore":{"type":"number","minimum":0,"maximum":100}},"required":["totalSpend","currency","activeApplications","openSupportTickets","activePricePlans","customerSince","status","healthScore"],"additionalProperties":false},"usage":{"type":"object","properties":{"currentMonthUsage":{"type":"number"},"previousMonthUsage":{"type":"number"},"percentageChange":{"type":"number"},"currency":{"default":"USD","type":"string"},"trend":{"type":"string","enum":["up","down","stable"]},"topMetrics":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"usage":{"type":"number"},"limit":{"type":"number"},"percentageUsed":{"type":"number"}},"required":["name","usage","percentageUsed"],"additionalProperties":false}}},"required":["currentMonthUsage","previousMonthUsage","percentageChange","currency","trend","topMetrics"],"additionalProperties":false},"invoices":{"type":"object","properties":{"total":{"type":"number"},"paid":{"type":"number"},"overdue":{"type":"number"},"pending":{"type":"number"},"currency":{"default":"USD","type":"string"},"recentInvoices":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"number":{"type":"string"},"date":{"type":"string"},"amount":{"type":"number"},"currency":{"type":"string"},"status":{"type":"string","enum":["Paid","Overdue","Pending"]}},"required":["id","date","amount","currency","status"],"additionalProperties":false}}},"required":["total","paid","overdue","pending","currency","recentInvoices"],"additionalProperties":false},"crm":{"type":"object","properties":{"contacts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"role":{"type":"string"},"email":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"phone":{"type":"string"}},"required":["id","name","role","email"],"additionalProperties":false}},"recentInteractions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"type":{"type":"string","enum":["Email","Call","Meeting"]},"date":{"type":"string"},"summary":{"type":"string"}},"required":["id","type","date","summary"],"additionalProperties":false}}},"required":["contacts","recentInteractions"],"additionalProperties":false},"support":{"type":"object","properties":{"activeTickets":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"title":{"type":"string"},"priority":{"type":"string","enum":["Low","Medium","High","Critical"]},"status":{"type":"string","enum":["Open","In Progress","Waiting"]},"created":{"type":"string"}},"required":["id","title","priority","status","created"],"additionalProperties":false}},"ticketMetrics":{"type":"object","properties":{"avgResponseTime":{"type":"string"},"avgResolutionTime":{"type":"string"},"satisfactionScore":{"type":"number"}},"required":["avgResponseTime","avgResolutionTime","satisfactionScore"],"additionalProperties":false}},"required":["activeTickets","ticketMetrics"],"additionalProperties":false},"pricePlans":{"type":"object","properties":{"active":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"pricePlanId":{"type":"string"},"name":{"type":"string"},"startDate":{"type":"string"},"endDate":{"type":"string"},"monthlyValue":{"type":"number"},"planType":{"type":"string","enum":["STANDARD","CUSTOMER_OVERRIDE"]}},"required":["id","pricePlanId","name","startDate","monthlyValue"],"additionalProperties":false}}},"required":["active"],"additionalProperties":false},"applications":{"type":"object","properties":{"list":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["Active","Inactive","Pending"]},"usage":{"type":"number"},"lastActive":{"type":"string"}},"required":["id","name","status","usage","lastActive"],"additionalProperties":false}}},"required":["list"],"additionalProperties":false}},"required":["summary","usage","invoices","crm","support","pricePlans","applications"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/permissions":{"get":{"description":"Returns all resources and permissions available to the current user across all contexts","summary":"Get current user permissions for UI control","tags":["authorization"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"permissions":{"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string"},"conditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"isRegex":{"type":"boolean"}},"required":["resourceId"],"additionalProperties":false}}},"required":["contextType","contextId","permissions"],"additionalProperties":false}}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/contexts":{"get":{"description":"Returns all contexts (organizations, customers, etc.) that the current user has access to, with their names","summary":"Get current user contexts","tags":["authorization"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"contexts":{"type":"array","items":{"type":"object","properties":{"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"description":{"type":"string"},"providerDataVisible":{"type":"boolean"},"customerKind":{"type":"string","enum":["STANDARD","PROVIDER"]},"liveAllowed":{"type":"boolean"},"modeAccess":{"type":"string","enum":["both","test","live"]},"applications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slugId":{"type":["string","null"]}},"required":["id","name","slugId"],"additionalProperties":false}}},"required":["context","name"],"additionalProperties":false}},"testModeAvailable":{"type":"boolean"},"modes":{"type":"array","items":{"type":"string","enum":["live","test"]}},"defaultModeAccess":{"type":"object","properties":{"organization":{"type":"string","enum":["both","test","live"]},"customer":{"type":"string","enum":["both","test","live"]}},"additionalProperties":false},"testDataResetScopes":{"type":"array","items":{"type":"string","enum":["organization","customer"]}},"isRootUser":{"type":"boolean"},"favorites":{"type":"array","items":{"type":"object","properties":{"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"description":{"type":"string"},"providerDataVisible":{"type":"boolean"},"customerKind":{"type":"string","enum":["STANDARD","PROVIDER"]},"liveAllowed":{"type":"boolean"},"modeAccess":{"type":"string","enum":["both","test","live"]},"applications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slugId":{"type":["string","null"]}},"required":["id","name","slugId"],"additionalProperties":false}}},"required":["context","name"],"additionalProperties":false}},"canActOnBehalf":{"type":"boolean"},"subjectId":{"type":"string"}},"required":["contexts"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/on-behalf-contexts":{"get":{"description":"Customers of every organization whose roles let the current user act on behalf of its customers, matched by name, as contexts ready to select. Independent of the selected context. A search term of at least 2 characters is required: the customers are never listed without one. Users only; empty for anyone else.","summary":"Search the customers the current user may act on behalf of","tags":["authorization"],"parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":2,"maxLength":48}},{"name":"limit","in":"query","schema":{"default":20,"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"contexts":{"type":"array","items":{"type":"object","properties":{"context":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"],"additionalProperties":false},"name":{"type":"string"},"description":{"type":"string"},"providerDataVisible":{"type":"boolean"},"customerKind":{"type":"string","enum":["STANDARD","PROVIDER"]},"liveAllowed":{"type":"boolean"},"modeAccess":{"type":"string","enum":["both","test","live"]},"applications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slugId":{"type":["string","null"]}},"required":["id","name","slugId"],"additionalProperties":false}}},"required":["context","name"],"additionalProperties":false}},"hasMore":{"type":"boolean"}},"required":["contexts","hasMore"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/contexts/{type}/{id}/roles":{"get":{"description":"Returns paginated list of roles available in the specified context","summary":"Get all roles for a context","tags":["authorization"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}},{"name":"page","in":"query","schema":{"default":1,"type":"number"}},{"name":"limit","in":"query","schema":{"default":50,"type":"number","minimum":1,"maximum":100}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"includeDefaults","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"permissions":{"default":[],"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string"},"conditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"isRegex":{"type":"boolean"}},"required":["resourceId"],"additionalProperties":false}},"isSystemRole":{"type":"boolean"},"parentRoleId":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","contextType","permissions","isSystemRole","createdAt","updatedAt"],"additionalProperties":false}},"total":{"type":"number"},"page":{"type":"number"},"pageSize":{"type":"number"},"totalPages":{"type":"number"}},"required":["roles","total","page","pageSize","totalPages"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"post":{"description":"Creates a new custom role with specified permissions in the context","summary":"Create a custom role","tags":["authorization"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"permissions":{"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string"},"conditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"isRegex":{"type":"boolean"}},"required":["resourceId"]}},"parentRoleId":{"type":"string"},"targetContextType":{"type":"string","enum":["organization","partner","customer"]},"isSystemRole":{"type":"boolean"}},"required":["name"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"permissions":{"default":[],"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string"},"conditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"isRegex":{"type":"boolean"}},"required":["resourceId"],"additionalProperties":false}},"isSystemRole":{"type":"boolean"},"parentRoleId":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","contextType","permissions","isSystemRole","createdAt","updatedAt"],"additionalProperties":false},"message":{"type":"string"}},"required":["role"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/contexts/{type}/{id}/subjects":{"get":{"description":"Returns paginated list of users and API keys with their assigned roles in the specified context","summary":"Get all subjects with roles in a context","tags":["authorization"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}},{"name":"page","in":"query","schema":{"default":1,"type":"number"}},{"name":"limit","in":"query","schema":{"default":50,"type":"number","minimum":1,"maximum":100}},{"name":"search","in":"query","schema":{"type":"string"}},{"name":"subjectType","in":"query","schema":{"type":"string","enum":["user","api_key"]}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"subjects":{"type":"array","items":{"type":"object","properties":{"subjectType":{"type":"string","enum":["user","api_key"]},"subjectId":{"type":"string"},"email":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"status":{"type":"string"},"disabledAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"notes":{"type":["string","null"]},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"modeAccess":{"type":"string","enum":["both","test","live"]},"applicationIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"assignedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"assignedBy":{"type":"string"}},"required":["subjectType","subjectId","roles","assignedAt","assignedBy"],"additionalProperties":false}},"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"}},"required":["subjects","page","pageSize","hasMore"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/contexts/{type}/{id}/roles/assign":{"post":{"description":"Assigns a predefined role to a user or API key in the specified context","summary":"Assign a role to a subject","tags":["authorization"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"subjectType":{"type":"string","enum":["user","api_key"]},"subjectId":{"type":"string"},"roleIds":{"type":"array","items":{"type":"string"}}},"required":["subjectType","subjectId","roleIds"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"assignment":{"type":"object","properties":{"id":{"type":"string"},"subjectType":{"type":"string","enum":["user","api_key"]},"subjectId":{"type":"string"},"roleId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string"},"assignedBy":{"type":"string"},"assignedByType":{"anyOf":[{"type":"string","enum":["user","api_key"]},{"type":"string","const":"system"}]},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"modeAccess":{"type":"string","enum":["both","test","live"]},"applicationIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","subjectType","subjectId","roleId","contextType","contextId","assignedBy","assignedByType","createdAt","updatedAt"],"additionalProperties":false}},"required":["success","message"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/contexts/{type}/{id}/users/add":{"post":{"description":"Adds users from Clerk by email and assigns specified roles to them in the context","summary":"Add users and assign roles","tags":["authorization"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"emails":{"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"roleIds":{"type":"array","items":{"type":"string"}},"modeAccess":{"type":"string","enum":["both","test","live"]},"applicationIds":{"anyOf":[{"minItems":1,"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["emails","roleIds"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"email":{"type":"string"},"success":{"type":"boolean"},"error":{"type":"string"},"subjectId":{"type":"string"},"roleAssignments":{"type":"array","items":{"type":"object","properties":{"roleId":{"type":"string"},"success":{"type":"boolean"},"error":{"type":"string"}},"required":["roleId","success"],"additionalProperties":false}}},"required":["email","success"],"additionalProperties":false}}},"required":["success","message","results"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/contexts/{type}/{id}/roles/revoke":{"post":{"description":"Revokes a role assignment from a user or API key in the specified context","summary":"Revoke a role from a subject","tags":["authorization"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"subjectType":{"type":"string","enum":["user","api_key"]},"subjectId":{"type":"string"},"roleIds":{"type":"array","items":{"type":"string"}}},"required":["subjectType","subjectId","roleIds"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}},"required":["success","message"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/contexts/{type}/{id}/roles/bulk-assign":{"post":{"description":"Assigns roles to multiple users or API keys in a single operation","summary":"Bulk assign roles to multiple subjects","tags":["authorization"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"assignments":{"type":"array","items":{"type":"object","properties":{"subjectType":{"type":"string","enum":["user","api_key"]},"subjectId":{"type":"string"},"roleId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["subjectType","subjectId","roleId"]}}},"required":["assignments"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"subjectType":{"type":"string","enum":["user","api_key"]},"subjectId":{"type":"string"},"roleId":{"type":"string"},"success":{"type":"boolean"},"error":{"type":"string"},"assignment":{"type":"object","properties":{"id":{"type":"string"},"subjectType":{"type":"string","enum":["user","api_key"]},"subjectId":{"type":"string"},"roleId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string"},"assignedBy":{"type":"string"},"assignedByType":{"anyOf":[{"type":"string","enum":["user","api_key"]},{"type":"string","const":"system"}]},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"modeAccess":{"type":"string","enum":["both","test","live"]},"applicationIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","subjectType","subjectId","roleId","contextType","contextId","assignedBy","assignedByType","createdAt","updatedAt"],"additionalProperties":false}},"required":["subjectType","subjectId","roleId","success"],"additionalProperties":false}}},"required":["success","message","results"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/contexts/{type}/{id}/roles/{roleId}":{"patch":{"description":"Updates an existing role's name, description, or permissions","summary":"Update a role","tags":["authorization"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"roleId","in":"path","required":true,"schema":{"type":"string"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"description":{"type":"string"},"permissions":{"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string"},"conditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"isRegex":{"type":"boolean"}},"required":["resourceId"]}},"parentRoleId":{"type":"string"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"role":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string","minLength":1},"description":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"permissions":{"default":[],"type":"array","items":{"type":"object","properties":{"resourceId":{"type":"string"},"conditions":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"isRegex":{"type":"boolean"}},"required":["resourceId"],"additionalProperties":false}},"isSystemRole":{"type":"boolean"},"parentRoleId":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","name","contextType","permissions","isSystemRole","createdAt","updatedAt"],"additionalProperties":false},"message":{"type":"string"}},"required":["role"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"description":"Deletes a custom role (system roles cannot be deleted)","summary":"Delete a role","tags":["authorization"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"roleId","in":"path","required":true,"schema":{"type":"string"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}},"required":["success","message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/permissions/check":{"post":{"description":"Checks if a specific subject has permission to perform an action on a resource in a context","summary":"Check if a subject has permission for an action","tags":["authorization"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"resourceId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string"}},"required":["resourceId","contextType","contextId"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"allowed":{"type":"boolean"}},"required":["allowed"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/audit":{"get":{"description":"Returns paginated audit log of all permission-related changes","summary":"Get audit log for permission changes","tags":["authorization"],"parameters":[{"name":"page","in":"query","schema":{"default":1,"type":"number"}},{"name":"limit","in":"query","schema":{"default":50,"type":"number","minimum":1,"maximum":100}},{"name":"ctx","in":"query","style":"deepObject","schema":{"type":"object","properties":{"type":{"type":"string","enum":["organization","partner","customer"]},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"mode":{"type":"string","enum":["live","test"]},"onBehalf":{"type":"boolean"}},"required":["type","id"]}},{"name":"subjectType","in":"query","schema":{"type":"string","enum":["user","api_key"]}},{"name":"subjectId","in":"query","schema":{"type":"string"}},{"name":"action","in":"query","schema":{"type":"string","enum":["assigned","revoked","role_created","role_deleted","permission_granted","permission_revoked"]}},{"name":"performedBy","in":"query","schema":{"type":"string"}},{"name":"startDate","in":"query","schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},{"name":"endDate","in":"query","schema":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"entries":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"action":{"type":"string","enum":["assigned","revoked","role_created","role_deleted","permission_granted","permission_revoked"]},"subjectType":{"type":"string","enum":["user","api_key"]},"subjectId":{"type":"string"},"roleId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string"},"performedBy":{"type":"string"},"performedByType":{"anyOf":[{"type":"string","enum":["user","api_key"]},{"type":"string","const":"system"}]},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","action","performedBy","performedByType","createdAt"],"additionalProperties":false}},"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"}},"required":["entries","page","pageSize","hasMore"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/resources":{"get":{"description":"Returns paginated list of all resources stored in the authorization system","summary":"Get all stored resources","tags":["authorization"],"parameters":[{"name":"page","in":"query","schema":{"default":1,"type":"number"}},{"name":"limit","in":"query","schema":{"default":100,"type":"number","minimum":1,"maximum":1000}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"resources":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"method":{"type":"string"},"path":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"parameters":{"type":"array","items":{"type":"string"}},"group":{"type":"string"},"paymentApi":{"type":"boolean"}},"required":["id","method","path","contextType"],"additionalProperties":false}},"total":{"type":"number"},"page":{"type":"number"},"pageSize":{"type":"number"},"totalPages":{"type":"number"}},"required":["resources","total","page","pageSize","totalPages"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/subjects/{subjectType}/{subjectId}/assignments":{"get":{"description":"Returns all role assignments for a specific user or API key","summary":"Get all role assignments for a subject","tags":["authorization"],"parameters":[{"name":"subjectType","in":"path","required":true,"schema":{"type":"string","enum":["user","api_key"]}},{"name":"subjectId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"type","in":"query","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"query","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"query","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"assignments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"subjectType":{"type":"string","enum":["user","api_key"]},"subjectId":{"type":"string"},"roleId":{"type":"string"},"contextType":{"type":"string","enum":["organization","partner","customer"]},"contextId":{"type":"string"},"assignedBy":{"type":"string"},"assignedByType":{"anyOf":[{"type":"string","enum":["user","api_key"]},{"type":"string","const":"system"}]},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"modeAccess":{"type":"string","enum":["both","test","live"]},"applicationIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","subjectType","subjectId","roleId","contextType","contextId","assignedBy","assignedByType","createdAt","updatedAt"],"additionalProperties":false}},"subject":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"default":"user","type":"string","enum":["user","api_key"]},"externalUserId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"Clerk user ID - null for invited users"},"firstName":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"primaryEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Required for invitations"},"status":{"default":"active","type":"string","enum":["invited","active","disabled","revoked","expired"]},"clerkInvitationId":{"description":"Clerk invitation ID for tracking","type":["string","null"]},"invitedBy":{"description":"Subject ID of the inviter","type":["string","null"]},"invitedAt":{"description":"When invitation was sent","anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"expiresAt":{"description":"Invitation expiration","anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"disabledAt":{"description":"When user was disabled","anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"disabledBy":{"description":"Subject ID of admin who disabled","type":["string","null"]},"notes":{"description":"Notes such as disable reason","type":["string","null"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","type","externalUserId","firstName","lastName","primaryEmail","status","createdAt","updatedAt"],"additionalProperties":false}},"required":["assignments","subject"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/subjects/{id}":{"get":{"description":"Returns subject metadata by internal subject ID","summary":"Get subject by ID","tags":["authorization"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"default":"user","type":"string","enum":["user","api_key"]},"externalUserId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"Clerk user ID - null for invited users"},"firstName":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"primaryEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Required for invitations"},"status":{"default":"active","type":"string","enum":["invited","active","disabled","revoked","expired"]},"clerkInvitationId":{"description":"Clerk invitation ID for tracking","type":["string","null"]},"invitedBy":{"description":"Subject ID of the inviter","type":["string","null"]},"invitedAt":{"description":"When invitation was sent","anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"expiresAt":{"description":"Invitation expiration","anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"disabledAt":{"description":"When user was disabled","anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"disabledBy":{"description":"Subject ID of admin who disabled","type":["string","null"]},"notes":{"description":"Notes such as disable reason","type":["string","null"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","type","externalUserId","firstName","lastName","primaryEmail","status","createdAt","updatedAt"],"additionalProperties":false}},"required":["subject"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"patch":{"description":"Updates subject metadata fields","summary":"Update subject metadata","tags":["authorization"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"externalUserId":{"type":"string","minLength":1},"firstName":{"type":"string","minLength":1},"lastName":{"type":"string","minLength":1},"primaryEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"default":"user","type":"string","enum":["user","api_key"]},"externalUserId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"Clerk user ID - null for invited users"},"firstName":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"primaryEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Required for invitations"},"status":{"default":"active","type":"string","enum":["invited","active","disabled","revoked","expired"]},"clerkInvitationId":{"description":"Clerk invitation ID for tracking","type":["string","null"]},"invitedBy":{"description":"Subject ID of the inviter","type":["string","null"]},"invitedAt":{"description":"When invitation was sent","anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"expiresAt":{"description":"Invitation expiration","anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"disabledAt":{"description":"When user was disabled","anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"disabledBy":{"description":"Subject ID of admin who disabled","type":["string","null"]},"notes":{"description":"Notes such as disable reason","type":["string","null"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","type","externalUserId","firstName","lastName","primaryEmail","status","createdAt","updatedAt"],"additionalProperties":false},"message":{"type":"string"}},"required":["subject","message"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"description":"Deletes a subject record (only if no assignments exist)","summary":"Delete a subject","tags":["authorization"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}},"required":["success","message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/subjects/external/{externalUserId}":{"get":{"description":"Returns subject metadata by Clerk user ID","summary":"Get subject by external user ID","tags":["authorization"],"parameters":[{"name":"externalUserId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"subject":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"default":"user","type":"string","enum":["user","api_key"]},"externalUserId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"Clerk user ID - null for invited users"},"firstName":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"primaryEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Required for invitations"},"status":{"default":"active","type":"string","enum":["invited","active","disabled","revoked","expired"]},"clerkInvitationId":{"description":"Clerk invitation ID for tracking","type":["string","null"]},"invitedBy":{"description":"Subject ID of the inviter","type":["string","null"]},"invitedAt":{"description":"When invitation was sent","anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"expiresAt":{"description":"Invitation expiration","anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"disabledAt":{"description":"When user was disabled","anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"disabledBy":{"description":"Subject ID of admin who disabled","type":["string","null"]},"notes":{"description":"Notes such as disable reason","type":["string","null"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","type","externalUserId","firstName","lastName","primaryEmail","status","createdAt","updatedAt"],"additionalProperties":false}},"required":["subject"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/subjects/search":{"get":{"description":"Search subjects by name, email, or external user ID","summary":"Search subjects","tags":["authorization"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"page","in":"query","schema":{"default":1,"type":"number"}},{"name":"limit","in":"query","schema":{"default":50,"type":"number","minimum":1,"maximum":100}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"subjects":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"default":"user","type":"string","enum":["user","api_key"]},"externalUserId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"Clerk user ID - null for invited users"},"firstName":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"primaryEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Required for invitations"},"status":{"default":"active","type":"string","enum":["invited","active","disabled","revoked","expired"]},"clerkInvitationId":{"description":"Clerk invitation ID for tracking","type":["string","null"]},"invitedBy":{"description":"Subject ID of the inviter","type":["string","null"]},"invitedAt":{"description":"When invitation was sent","anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"expiresAt":{"description":"Invitation expiration","anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"disabledAt":{"description":"When user was disabled","anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"disabledBy":{"description":"Subject ID of admin who disabled","type":["string","null"]},"notes":{"description":"Notes such as disable reason","type":["string","null"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","type","externalUserId","firstName","lastName","primaryEmail","status","createdAt","updatedAt"],"additionalProperties":false}},"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"}},"required":["subjects","page","pageSize","hasMore"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/subjects/sync/clerk-user":{"post":{"description":"Sync user data from Clerk to the subjects table","summary":"Sync a single Clerk user","tags":["authorization"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"clerkUserId":{"type":"string"},"firstName":{"type":"string"},"lastName":{"type":"string"},"primaryEmail":{"type":"string"}},"required":["clerkUserId"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"subject":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"type":{"default":"user","type":"string","enum":["user","api_key"]},"externalUserId":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}],"description":"Clerk user ID - null for invited users"},"firstName":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"lastName":{"anyOf":[{"type":"string","minLength":1},{"type":"null"}]},"primaryEmail":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Required for invitations"},"status":{"default":"active","type":"string","enum":["invited","active","disabled","revoked","expired"]},"clerkInvitationId":{"description":"Clerk invitation ID for tracking","type":["string","null"]},"invitedBy":{"description":"Subject ID of the inviter","type":["string","null"]},"invitedAt":{"description":"When invitation was sent","anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"expiresAt":{"description":"Invitation expiration","anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"disabledAt":{"description":"When user was disabled","anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"disabledBy":{"description":"Subject ID of admin who disabled","type":["string","null"]},"notes":{"description":"Notes such as disable reason","type":["string","null"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","type","externalUserId","firstName","lastName","primaryEmail","status","createdAt","updatedAt"],"additionalProperties":false},"message":{"type":"string"}},"required":["success","message"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/subjects/sync/all-clerk-users":{"post":{"description":"Trigger a full sync of all users from Clerk (placeholder implementation)","summary":"Sync all Clerk users","tags":["authorization"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"stats":{"type":"object","properties":{"totalSubjects":{"type":"number"},"subjectsWithEmail":{"type":"number"},"subjectsWithNames":{"type":"number"}},"required":["totalSubjects","subjectsWithEmail","subjectsWithNames"],"additionalProperties":false}},"required":["success","message","stats"],"additionalProperties":false}}}}}}},"/api/v1/authz/subjects/sync/stats":{"get":{"description":"Get statistics about subject data synchronization","summary":"Get sync statistics","tags":["authorization"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"totalSubjects":{"type":"number"},"subjectsWithEmail":{"type":"number"},"subjectsWithNames":{"type":"number"},"lastSyncDate":{"type":"string"}},"required":["totalSubjects","subjectsWithEmail","subjectsWithNames"],"additionalProperties":false}}}}}}},"/api/v1/authz/contexts/{type}/{id}/invitations":{"get":{"description":"Returns paginated list of pending user invitations for the specified context","summary":"List pending invitations","tags":["authorization"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}},{"name":"page","in":"query","schema":{"default":1,"type":"number"}},{"name":"limit","in":"query","schema":{"default":50,"type":"number","minimum":1,"maximum":100}},{"name":"status","in":"query","schema":{"default":"pending","type":"string","enum":["pending","expired","all"]}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"invitations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"email":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"status":{"type":"string"},"roles":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}},"invitedBySubjectId":{"type":["string","null"]},"invitedAt":{"type":["string","null"]},"expiresAt":{"type":["string","null"]}},"required":["id","email","status","roles"],"additionalProperties":false}},"total":{"type":"number"},"page":{"type":"number"},"pageSize":{"type":"number"},"totalPages":{"type":"number"}},"required":["invitations","total","page","pageSize","totalPages"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/contexts/{type}/{id}/invitations/{subjectId}/resend":{"post":{"description":"Resends an invitation email to a user with a pending invitation","summary":"Resend invitation","tags":["authorization"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"subjectId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"newExpiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["success","message"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/contexts/{type}/{id}/invitations/{subjectId}":{"delete":{"description":"Revokes a pending invitation and removes the subject from the context","summary":"Revoke invitation","tags":["authorization"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"subjectId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}},"required":["success","message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/contexts/{type}/{id}/users/{subjectId}/disable":{"post":{"description":"Disables a user in this context: they lose access to it and keep every other context. With scope \"global\" (root and platform admins only), disables them on the whole platform, preventing them from logging in","summary":"Disable user","tags":["authorization"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"subjectId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string"},"scope":{"type":"string","enum":["context","global"]}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"},"disabledAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["success","message"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/contexts/{type}/{id}/users/{subjectId}/mode-access":{"put":{"description":"Sets which modes the user's roles in this context hold in: test and live, test only or live only. Applies to every role the user holds here, and to roles assigned to them here later. A caller can give only the modes it holds itself.","summary":"Set a user's access to test and live mode","tags":["authorization"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"subjectId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"modeAccess":{"type":"string","enum":["both","test","live"]}},"required":["modeAccess"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"modeAccess":{"type":"string","enum":["both","test","live"]},"assignments":{"type":"number"}},"required":["modeAccess","assignments"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/contexts/{type}/{id}/users/{subjectId}/applications":{"put":{"description":"Sets which of the customer's applications (sub-MIDs) the user's roles in this customer hold in: a list of them, or null for every application. Applies to every role the user holds here, and to roles assigned to them here later. Customer contexts only. A caller limited to some applications here cannot change anyone's.","summary":"Limit a user to some of a customer's applications","tags":["authorization"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"subjectId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"applicationIds":{"anyOf":[{"minItems":1,"type":"array","items":{"type":"string"}},{"type":"null"}]}},"required":["applicationIds"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"applicationIds":{"anyOf":[{"type":"array","items":{"type":"string"}},{"type":"null"}]},"assignments":{"type":"number"}},"required":["applicationIds","assignments"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/contexts/{type}/{id}/applications":{"get":{"description":"The customer's applications, to choose a user's application access from. Customer contexts only.","summary":"List the applications a user here can be limited to","tags":["authorization"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"applications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slugId":{"type":["string","null"]}},"required":["id","name","slugId"],"additionalProperties":false}}},"required":["applications"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/authz/contexts/{type}/{id}/users/{subjectId}/enable":{"post":{"description":"Re-enables a user disabled in this context, with the roles they had in it. With scope \"global\" (root and platform admins only), lifts a platform-wide disable","summary":"Enable user","tags":["authorization"],"parameters":[{"name":"type","in":"path","required":true,"schema":{"type":"string","enum":["organization","partner","customer"]}},{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"subjectId","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"organizationId","in":"path","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"mode","in":"path","schema":{"type":"string","enum":["live","test"]}},{"name":"onBehalf","in":"path","schema":{"type":"boolean"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"scope":{"type":"string","enum":["context","global"]}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"},"message":{"type":"string"}},"required":["success","message"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/payment/card/auth":{"post":{"description":"Creates an authorization hold on a card for a specified amount without capturing the funds.\n\n## Test Cards\n\n### Approved (no 3DS)\n| PAN | statusCode | responseCode |\n|-----|------------|--------------|\n| 4242424242424242 | approved | 0 |\n| 4111111111111111 | approved | 0 |\n| 5555555555554444 | approved | 0 |\n| 378282246310005 | approved | 0 |\n\n### Approved (3DS challenge)\n| PAN | statusCode | responseCode |\n|-----|------------|--------------|\n| 4000000000003220 | approved | 0 |\n| 4000002500003155 | approved | 0 |\n| 5200828282828210 | approved | 0 |\n\n### Declined\n| PAN | statusCode | responseCode |\n|-----|------------|--------------|\n| 4000000000000002 | do_not_honor | 5 |\n| 4000000000009995 | insufficient_funds | 51 |\n| 4000000000000069 | expired_card | 54 |\n| 4000000000000127 | invalid_cvv | 79 |\n| 4000000000000119 | psp_malfunction | 96 |\n| 4100000000000019 | suspected_fraud | 59 |\n| 4000000000000259 | issuer_err | 91 |\n| 4000000000000341 | 3ds_auth_failure | 103 |\n| 4000000000000051 | psp_timeout | 105 |","summary":"Authorize a card","tags":["payments"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"]},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"card":{"type":"object","properties":{"cardNumber":{"type":"string","description":"Credit or debit card number"},"expiryMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Card expiry month (1-12)"},"expiryYear":{"type":"integer","minimum":1970,"maximum":2100,"description":"Card expiry year (4 digits)"},"cvv":{"type":"string","description":"Card verification value (CVV/CVC)"},"cardHolderName":{"type":"string","minLength":1,"maxLength":100,"description":"Name of the cardholder as it appears on the card"},"cardBrand":{"type":"string","enum":["VISA","MASTERCARD","AMEX","DINERS","DISCOVER","JCB","UNIONPAY","MAESTRO","ELO","MIR","HIPERCARD","HIPER","DANKORT","RUPAY","ELECTRON","UNKNOWN"]},"iin":{"anyOf":[{"type":"string","minLength":6,"maxLength":6},{"type":"string","minLength":8,"maxLength":8}]},"save":{"type":"boolean"}},"required":["cardNumber","expiryMonth","expiryYear","cvv"],"description":"Credit or debit card details"},"threeDS":{"type":"object","properties":{"version":{"type":"string"},"eci":{"type":"string"},"cavv":{"type":"string"},"dsTransactionId":{"type":"string"},"xid":{"type":"string"},"transStatus":{"type":"string"},"enrolled":{"type":"string"}},"description":"External 3-D Secure authentication result"}},"required":["appId","amount","device","txRefId","card"],"example":{"appId":"towl-test-app","amount":{"amt":24.42,"cy":"EUR"},"device":{"ip":"203.0.113.7"},"user":{"userId":"DontPanic42","firstName":"Arthur","lastName":"Dent","email":"arthur.dent@example.com","phone":"+46701234567","address":{"line1":"Handduksvagen 42","city":"Stockholm","postalCode":"11122","countryCode":"SWE"}},"txRefId":"order-10442","card":{"cardNumber":"4242424242424242","expiryMonth":12,"expiryYear":2030,"cardHolderName":"Arthur Dent","cardBrand":"VISA"},"callbackUrl":"https://your-server.com/webhooks/payment-callback"}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency"},"txFee":{"type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"redirectUrl":{"type":"string","format":"uri"}},"required":["id"],"additionalProperties":false,"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","txAmount":{"amt":24.42,"cy":"EUR"},"txRefId":"order-10442","state":"success","statusCode":"approved","statusMessage":"Approved"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/payment/card/debit":{"post":{"description":"Creates an authorization hold on a card for a specified amount without capturing the funds.\n\n## Test Cards\n\n### Approved (no 3DS)\n| PAN | statusCode | responseCode |\n|-----|------------|--------------|\n| 4242424242424242 | approved | 0 |\n| 4111111111111111 | approved | 0 |\n| 5555555555554444 | approved | 0 |\n| 378282246310005 | approved | 0 |\n\n### Approved (3DS challenge)\n| PAN | statusCode | responseCode |\n|-----|------------|--------------|\n| 4000000000003220 | approved | 0 |\n| 4000002500003155 | approved | 0 |\n| 5200828282828210 | approved | 0 |\n\n### Declined\n| PAN | statusCode | responseCode |\n|-----|------------|--------------|\n| 4000000000000002 | do_not_honor | 5 |\n| 4000000000009995 | insufficient_funds | 51 |\n| 4000000000000069 | expired_card | 54 |\n| 4000000000000127 | invalid_cvv | 79 |\n| 4000000000000119 | psp_malfunction | 96 |\n| 4100000000000019 | suspected_fraud | 59 |\n| 4000000000000259 | issuer_err | 91 |\n| 4000000000000341 | 3ds_auth_failure | 103 |\n| 4000000000000051 | psp_timeout | 105 |","summary":"Debit a card","tags":["payments"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"]},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"card":{"type":"object","properties":{"cardNumber":{"type":"string","description":"Credit or debit card number"},"expiryMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Card expiry month (1-12)"},"expiryYear":{"type":"integer","minimum":1970,"maximum":2100,"description":"Card expiry year (4 digits)"},"cvv":{"type":"string","description":"Card verification value (CVV/CVC)"},"cardHolderName":{"type":"string","minLength":1,"maxLength":100,"description":"Name of the cardholder as it appears on the card"},"cardBrand":{"type":"string","enum":["VISA","MASTERCARD","AMEX","DINERS","DISCOVER","JCB","UNIONPAY","MAESTRO","ELO","MIR","HIPERCARD","HIPER","DANKORT","RUPAY","ELECTRON","UNKNOWN"]},"iin":{"anyOf":[{"type":"string","minLength":6,"maxLength":6},{"type":"string","minLength":8,"maxLength":8}]},"save":{"type":"boolean"}},"required":["cardNumber","expiryMonth","expiryYear","cvv"],"description":"Credit or debit card details"},"threeDS":{"type":"object","properties":{"version":{"type":"string"},"eci":{"type":"string"},"cavv":{"type":"string"},"dsTransactionId":{"type":"string"},"xid":{"type":"string"},"transStatus":{"type":"string"},"enrolled":{"type":"string"}},"description":"External 3-D Secure authentication result"}},"required":["appId","amount","device","txRefId","card"],"example":{"appId":"towl-test-app","amount":{"amt":24.42,"cy":"EUR"},"device":{"ip":"203.0.113.7"},"user":{"userId":"DontPanic42","firstName":"Arthur","lastName":"Dent","email":"arthur.dent@example.com","phone":"+46701234567","address":{"line1":"Handduksvagen 42","city":"Stockholm","postalCode":"11122","countryCode":"SWE"}},"txRefId":"order-10442","card":{"cardNumber":"4242424242424242","expiryMonth":12,"expiryYear":2030,"cardHolderName":"Arthur Dent","cardBrand":"VISA"},"callbackUrl":"https://your-server.com/webhooks/payment-callback"}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency"},"txFee":{"type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"redirectUrl":{"type":"string","format":"uri"}},"required":["id"],"additionalProperties":false,"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","txAmount":{"amt":24.42,"cy":"EUR"},"txRefId":"order-10442","state":"success","statusCode":"approved","statusMessage":"Approved"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/payment/card/credit":{"post":{"description":"Push funds directly to a card (Original Credit Transaction / payout). Card details are supplied by the caller — no prior transaction reference is required. 3DS authentication does not apply to outbound credit flows.\n\n## Test Cards\n\n### Approved\n| PAN | statusCode | responseCode |\n|-----|------------|--------------|\n| 4242424242424242 | approved | 0 |\n| 4111111111111111 | approved | 0 |\n| 5555555555554444 | approved | 0 |\n| 378282246310005 | approved | 0 |\n\n### Declined\n| PAN | statusCode | responseCode |\n|-----|------------|--------------|\n| 4000000000000002 | do_not_honor | 5 |\n| 4000000000009995 | insufficient_funds | 51 |\n| 4000000000000069 | expired_card | 54 |\n| 4000000000000127 | invalid_cvv | 79 |\n| 4000000000000119 | psp_malfunction | 96 |\n| 4100000000000019 | suspected_fraud | 59 |\n| 4000000000000259 | issuer_err | 91 |\n| 4000000000000051 | psp_timeout | 105 |","summary":"Credit a card (OCT / payout)","tags":["payments"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"]},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"card":{"type":"object","properties":{"cardNumber":{"type":"string","description":"Credit or debit card number"},"expiryMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Card expiry month (1-12)"},"expiryYear":{"type":"integer","minimum":1970,"maximum":2100,"description":"Card expiry year (4 digits)"},"cvv":{"type":"string","description":"Card verification value (CVV/CVC)"},"cardHolderName":{"type":"string","minLength":1,"maxLength":100,"description":"Name of the cardholder as it appears on the card"},"cardBrand":{"type":"string","enum":["VISA","MASTERCARD","AMEX","DINERS","DISCOVER","JCB","UNIONPAY","MAESTRO","ELO","MIR","HIPERCARD","HIPER","DANKORT","RUPAY","ELECTRON","UNKNOWN"]},"iin":{"anyOf":[{"type":"string","minLength":6,"maxLength":6},{"type":"string","minLength":8,"maxLength":8}]},"save":{"type":"boolean"}},"required":["cardNumber","expiryMonth","expiryYear"]}},"required":["appId","amount","device","txRefId","card"],"example":{"appId":"towl-test-app","amount":{"amt":50,"cy":"EUR"},"device":{"ip":"203.0.113.7"},"user":{"userId":"DontPanic42","firstName":"Arthur","lastName":"Dent","email":"arthur.dent@example.com","phone":"+46701234567","address":{"line1":"Handduksvagen 42","city":"Stockholm","postalCode":"11122","countryCode":"SWE"}},"txRefId":"payout-20881","card":{"cardNumber":"4242424242424242","expiryMonth":12,"expiryYear":2030,"cardHolderName":"Arthur Dent","cardBrand":"VISA"},"callbackUrl":"https://your-server.com/webhooks/payment-callback"}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency"},"txFee":{"type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"redirectUrl":{"type":"string","format":"uri"}},"required":["id"],"additionalProperties":false,"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","txAmount":{"amt":24.42,"cy":"EUR"},"txRefId":"order-10442","state":"success","statusCode":"approved","statusMessage":"Approved"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/payment/card/refund":{"post":{"description":"Refunds a previously captured charge.","summary":"Refund a charge","tags":["payments"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"callbackUrl":{"description":"URL to receive webhook callback with transaction result","type":"string","format":"uri"},"manualOverride":{"description":"Operator-only. When true, the provider is not called and the transaction is forced to a successful, manually-approved outcome. Honored only for authenticated operator (user) requests.","type":"boolean"},"attemptNo":{"description":"Operator-only. Target an attempt the failover cascade walked away from, instead of the provider the transaction row names. Its index in the transaction's routing attempt trail, as reported by the reconciliation finding for that attempt. This is how a payment left live at an abandoned provider — a double charge, or an authorization nothing will settle — is voided or refunded at the provider actually holding it. Honored only for authenticated operator (user) requests.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id"],"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","callbackUrl":"https://your-server.com/webhooks/payment-callback"}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency"},"txFee":{"type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"redirectUrl":{"type":"string","format":"uri"}},"required":["id"],"additionalProperties":false,"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","txAmount":{"amt":24.42,"cy":"EUR"},"txRefId":"order-10442","state":"success","statusCode":"approved","statusMessage":"Approved"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/payment/card/void":{"post":{"description":"Cancels an authorization hold without capturing.","summary":"Void an authorization","tags":["payments"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"callbackUrl":{"description":"URL to receive webhook callback with transaction result","type":"string","format":"uri"},"manualOverride":{"description":"Operator-only. When true, the provider is not called and the transaction is forced to a successful, manually-approved outcome. Honored only for authenticated operator (user) requests.","type":"boolean"},"attemptNo":{"description":"Operator-only. Target an attempt the failover cascade walked away from, instead of the provider the transaction row names. Its index in the transaction's routing attempt trail, as reported by the reconciliation finding for that attempt. This is how a payment left live at an abandoned provider — a double charge, or an authorization nothing will settle — is voided or refunded at the provider actually holding it. Honored only for authenticated operator (user) requests.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id"],"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","callbackUrl":"https://your-server.com/webhooks/payment-callback"}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency"},"txFee":{"type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"redirectUrl":{"type":"string","format":"uri"}},"required":["id"],"additionalProperties":false,"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","txAmount":{"amt":24.42,"cy":"EUR"},"txRefId":"order-10442","state":"success","statusCode":"approved","statusMessage":"Approved"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/payment/card/capture":{"post":{"description":"Captures funds from a previously authorized charge.","summary":"Capture an authorization","tags":["payments"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"callbackUrl":{"description":"URL to receive webhook callback with transaction result","type":"string","format":"uri"},"manualOverride":{"description":"Operator-only. When true, the provider is not called and the transaction is forced to a successful, manually-approved outcome. Honored only for authenticated operator (user) requests.","type":"boolean"},"attemptNo":{"description":"Operator-only. Target an attempt the failover cascade walked away from, instead of the provider the transaction row names. Its index in the transaction's routing attempt trail, as reported by the reconciliation finding for that attempt. This is how a payment left live at an abandoned provider — a double charge, or an authorization nothing will settle — is voided or refunded at the provider actually holding it. Honored only for authenticated operator (user) requests.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id"],"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","callbackUrl":"https://your-server.com/webhooks/payment-callback"}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency"},"txFee":{"type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"redirectUrl":{"type":"string","format":"uri"}},"required":["id"],"additionalProperties":false,"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","txAmount":{"amt":24.42,"cy":"EUR"},"txRefId":"order-10442","state":"success","statusCode":"approved","statusMessage":"Approved"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/payment/card/cancel":{"post":{"description":"Cancels a payment transaction.","summary":"Cancel a transaction","tags":["payments"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"callbackUrl":{"description":"URL to receive webhook callback with transaction result","type":"string","format":"uri"},"manualOverride":{"description":"Operator-only. When true, the provider is not called and the transaction is forced to a successful, manually-approved outcome. Honored only for authenticated operator (user) requests.","type":"boolean"},"attemptNo":{"description":"Operator-only. Target an attempt the failover cascade walked away from, instead of the provider the transaction row names. Its index in the transaction's routing attempt trail, as reported by the reconciliation finding for that attempt. This is how a payment left live at an abandoned provider — a double charge, or an authorization nothing will settle — is voided or refunded at the provider actually holding it. Honored only for authenticated operator (user) requests.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id"],"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","callbackUrl":"https://your-server.com/webhooks/payment-callback"}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency"},"txFee":{"type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"redirectUrl":{"type":"string","format":"uri"}},"required":["id"],"additionalProperties":false,"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","txAmount":{"amt":24.42,"cy":"EUR"},"txRefId":"order-10442","state":"success","statusCode":"approved","statusMessage":"Approved"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/payment/card/chargeback":{"post":{"description":"Records a chargeback against a settled transaction. Most providers do not expose a chargeback API, so this is typically used with manual override.","summary":"Charge back a transaction","tags":["payments"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"callbackUrl":{"description":"URL to receive webhook callback with transaction result","type":"string","format":"uri"},"manualOverride":{"description":"Operator-only. When true, the provider is not called and the transaction is forced to a successful, manually-approved outcome. Honored only for authenticated operator (user) requests.","type":"boolean"},"attemptNo":{"description":"Operator-only. Target an attempt the failover cascade walked away from, instead of the provider the transaction row names. Its index in the transaction's routing attempt trail, as reported by the reconciliation finding for that attempt. This is how a payment left live at an abandoned provider — a double charge, or an authorization nothing will settle — is voided or refunded at the provider actually holding it. Honored only for authenticated operator (user) requests.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id"],"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","callbackUrl":"https://your-server.com/webhooks/payment-callback"}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency"},"txFee":{"type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"redirectUrl":{"type":"string","format":"uri"}},"required":["id"],"additionalProperties":false,"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","txAmount":{"amt":24.42,"cy":"EUR"},"txRefId":"order-10442","state":"success","statusCode":"approved","statusMessage":"Approved"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/payment/status/{id}":{"get":{"description":"Get the status of a payment transaction by its ID.\n\n`amount` is what the payment was for; `txAmount` is what it was processed in.\n\n> **Warning:** `amount` is usually the amount and currency sent in the request that created the payment, but it can differ. For payment methods where the amount cannot be locked up front — such as a crypto deposit or a bank transfer — the payer decides what is actually sent. Always compare `amount` with your order before fulfilling it; never assume it equals what you requested.","summary":"Get payment status","tags":["payments"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"description":"The amount and currency the payment was processed in. It can be in a different currency from `amount`, for example when the payment is converted or settled in crypto.","type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false},"txFee":{"type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"redirectUrl":{"type":"string","format":"uri"},"amount":{"description":"The amount and currency of the payment.\n\n**Warning:** `amount` is usually the amount and currency sent in the request that created the payment, but it can differ. For payment methods where the amount cannot be locked up front — such as a crypto deposit or a bank transfer — the payer decides what is actually sent. Always compare `amount` with your order before fulfilling it; never assume it equals what you requested.","type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false}},"required":["id"],"additionalProperties":false,"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","txRefId":"order-10442","amount":{"amt":24.42,"cy":"EUR"},"txAmount":{"amt":24.42,"cy":"EUR"},"state":"success","statusCode":"approved","statusMessage":"Approved"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/payment/checkout-tokens":{"post":{"description":"Creates a checkout API client token for use with checkout API.\n\nSee the **[Checkout API guide](/api/docs/checkout-api)** for the full end-to-end flow (minting tokens, options, debit, status polling, appearance/styling).","summary":"Create checkout API client token","tags":["payments"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$","description":"Application slug ID"},"expiresIn":{"default":300,"description":"Token expiry in seconds (default 5 minutes)","type":"integer","minimum":60,"maximum":3600},"allowedOrigins":{"maxItems":10,"type":"array","items":{"type":"string"},"description":"List of allowed origins for CORS and Origin header enforcement. The browser SDK must send requests from one of these origins."},"metadata":{"description":"Your own data about the payment, as a JSON object. Frozen into the session and carried onto the payment it makes, where rule sets can match on it — the same as `metadata` on a server API payment. The published checkout design can match on it too, to decide which variant and which payment methods the shopper sees (for example a `kycStatus` property). Keys are 1-64 letters, digits, `_` or `-`; at most 5 levels deep and 4096 characters as JSON. Not sent to payment providers.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"txRefId":{"description":"External transaction reference ID","type":"string","maxLength":255},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"checkoutUrl":{"description":"If true, the response includes a fully-qualified checkout URL that can be used to redirect or embed the hosted checkout.","type":"boolean"},"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"]},"direction":{"description":"Which way money moves in this session: `debit` (from the shopper — a payment, the default) or `credit` (to the shopper — a withdrawal/payout). Frozen into the session: `POST /api/v1/checkout/credit` only accepts sessions minted with `credit`, and the options list follows the session's direction. A `credit` session requires `amount` — a payout amount is never taken from the browser.","type":"string","enum":["debit","credit"]},"paymentOption":{"description":"Pin the session to a single payment option, chosen by your server. The pin is stored on the session and validated here: the option must be offerable for the session's `direction` and routable for this application — otherwise this request fails with 400 (rather than the shopper meeting an error page). A pinned session offers exactly this option: it overrides the option list of the checkout design that serves the session (the design still styles the page), and `GET /options` returns only it. The hosted checkout lands inside the option — submitting straight away when it is a redirect option with no fields, or showing only its own fields when it has some. Included in the checkout URL when checkoutUrl is true; the URL's `?option=` keeps its narrowing-only meaning and cannot widen a pin.","type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"embedMode":{"description":"Embedding mode for the hosted checkout. Included in the checkout URL when checkoutUrl is true.","type":"string","enum":["redirect","iframe"]},"parentOrigin":{"description":"Origin of the merchant page embedding the checkout (iframe). Included in the checkout URL when checkoutUrl is true.","type":"string"},"appearance":{"description":"Appearance overrides for this checkout session. Resolved and frozen at token creation; applies to the hosted checkout (redirect and iframe) and to Card SDK fields created with this session's token. When a published checkout design serves the session, the checkout's `requestAppearanceMode` decides how they combine with it: `fill` (default) — the design wins and these tokens only fill in fields the design leaves unset; `override` — these tokens replace the design's, field by field; `ignore` — they are not used.","type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"styleUrl":{"description":"URL of a CSS file fetched ONCE at token creation, sanitized and frozen into the session (snapshot-at-mint). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"typography":{"description":"Type scale, heading weight and letter spacing","type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"description":"Logo height and alignment","type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]}},"additionalProperties":false}},"additionalProperties":false,"example":{"colors":{"background":"#101014","surface":"#1c1c24","accent":"#e8590c","textPrimary":"#ffffff"},"logoUrl":"https://your-domain.com/logo.svg","cornerRadius":"lg","fontFamily":"system"}},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The session then offers the shopper the card they already entered for that payment, so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the session is still created and the shopper enters a card as usual.","type":"string","maxLength":64},"checkout":{"description":"Slug of a checkout design (built in the admin portal's Checkout builder) to use for this session. Defaults to the checkout bound to the application, then the context's default checkout — your own first, then your organization's, which serves you whenever none of yours applies. Ignored while that checkout has no published version — the session then renders the standard checkout. When your organization provides the checkout for all its customers, only its checkouts are used: a slug naming one of your own designs is ignored and the session gets the organization's checkout.","type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"}},"required":["appId","allowedOrigins","user"]}}}},"responses":{"200":{"description":"Response schema for checkout token creation","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","description":"Checkout token"},"expiresAt":{"type":"string","description":"Token expiry timestamp in ISO format"},"allowedOrigins":{"type":"array","items":{"type":"string"},"description":"Allowed origins bound to this session token"},"url":{"description":"Fully-qualified hosted checkout URL. Only present when the request set checkoutUrl=true. Its path carries the API version of the request that minted the session — a session created on `/api/v2/...` gets a `/v2/` checkout URL — so the whole payment stays on the version you integrated against.","type":"string","format":"uri"}},"required":["token","expiresAt","allowedOrigins"],"additionalProperties":false,"description":"Response schema for checkout token creation","example":{"token":"ck_a1b2c3d4-e5f6-7890-abcd-ef1234567890","expiresAt":"2026-08-04T11:00:00.000Z","allowedOrigins":["https://your-domain.com"],"url":"https://checkout.wardenpay.com/v2/ck_a1b2c3d4-e5f6-7890-abcd-ef1234567890?amount=24.42&currency=EUR&embedMode=iframe"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/payment/card/auth":{"post":{"description":"Creates an authorization hold on a card for a specified amount without capturing the funds.\n\n## Test Cards\n\n### Approved (no 3DS)\n| PAN | statusCode | responseCode |\n|-----|------------|--------------|\n| 4242424242424242 | approved | 0 |\n| 4111111111111111 | approved | 0 |\n| 5555555555554444 | approved | 0 |\n| 378282246310005 | approved | 0 |\n\n### Approved (3DS challenge)\n| PAN | statusCode | responseCode |\n|-----|------------|--------------|\n| 4000000000003220 | approved | 0 |\n| 4000002500003155 | approved | 0 |\n| 5200828282828210 | approved | 0 |\n\n### Declined\n| PAN | statusCode | responseCode |\n|-----|------------|--------------|\n| 4000000000000002 | do_not_honor | 5 |\n| 4000000000009995 | insufficient_funds | 51 |\n| 4000000000000069 | expired_card | 54 |\n| 4000000000000127 | invalid_cvv | 79 |\n| 4000000000000119 | psp_malfunction | 96 |\n| 4100000000000019 | suspected_fraud | 59 |\n| 4000000000000259 | issuer_err | 91 |\n| 4000000000000341 | 3ds_auth_failure | 103 |\n| 4000000000000051 | psp_timeout | 105 |","summary":"Authorize a card","tags":["paymentsV2"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"card":{"type":"object","properties":{"cardNumber":{"type":"string","description":"Credit or debit card number"},"expiryMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Card expiry month (1-12)"},"expiryYear":{"type":"integer","minimum":1970,"maximum":2100,"description":"Card expiry year (4 digits)"},"cvv":{"type":"string","description":"Card verification value (CVV/CVC)"},"cardHolderName":{"type":"string","minLength":1,"maxLength":100,"description":"Name of the cardholder as it appears on the card"},"cardBrand":{"type":"string","enum":["VISA","MASTERCARD","AMEX","DINERS","DISCOVER","JCB","UNIONPAY","MAESTRO","ELO","MIR","HIPERCARD","HIPER","DANKORT","RUPAY","ELECTRON","UNKNOWN"]},"iin":{"anyOf":[{"type":"string","minLength":6,"maxLength":6},{"type":"string","minLength":8,"maxLength":8}]},"save":{"type":"boolean"}},"required":["cardNumber","expiryMonth","expiryYear","cvv"],"description":"Credit or debit card details"},"threeDS":{"type":"object","properties":{"version":{"type":"string"},"eci":{"type":"string"},"cavv":{"type":"string"},"dsTransactionId":{"type":"string"},"xid":{"type":"string"},"transStatus":{"type":"string"},"enrolled":{"type":"string"}},"description":"External 3-D Secure authentication result"}},"required":["appId","amount","device","txRefId","card"],"example":{"appId":"towl-test-app","amount":{"amt":"24.42","cy":"EUR"},"device":{"ip":"203.0.113.7"},"user":{"userId":"DontPanic42","firstName":"Arthur","lastName":"Dent","email":"arthur.dent@example.com","phone":"+46701234567","address":{"line1":"Handduksvagen 42","city":"Stockholm","postalCode":"11122","countryCode":"SWE"}},"txRefId":"order-10442","card":{"cardNumber":"4242424242424242","expiryMonth":12,"expiryYear":2030,"cardHolderName":"Arthur Dent","cardBrand":"VISA"},"callbackUrl":"https://your-server.com/webhooks/payment-callback"}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txFee":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"redirectUrl":{"type":"string","format":"uri"}},"required":["id"],"additionalProperties":false,"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","txAmount":{"amt":"24.42","cy":"EUR"},"txRefId":"order-10442","state":"success","statusCode":"approved","statusMessage":"Approved"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/payment/card/debit":{"post":{"description":"Creates an authorization hold on a card for a specified amount without capturing the funds.\n\n## Test Cards\n\n### Approved (no 3DS)\n| PAN | statusCode | responseCode |\n|-----|------------|--------------|\n| 4242424242424242 | approved | 0 |\n| 4111111111111111 | approved | 0 |\n| 5555555555554444 | approved | 0 |\n| 378282246310005 | approved | 0 |\n\n### Approved (3DS challenge)\n| PAN | statusCode | responseCode |\n|-----|------------|--------------|\n| 4000000000003220 | approved | 0 |\n| 4000002500003155 | approved | 0 |\n| 5200828282828210 | approved | 0 |\n\n### Declined\n| PAN | statusCode | responseCode |\n|-----|------------|--------------|\n| 4000000000000002 | do_not_honor | 5 |\n| 4000000000009995 | insufficient_funds | 51 |\n| 4000000000000069 | expired_card | 54 |\n| 4000000000000127 | invalid_cvv | 79 |\n| 4000000000000119 | psp_malfunction | 96 |\n| 4100000000000019 | suspected_fraud | 59 |\n| 4000000000000259 | issuer_err | 91 |\n| 4000000000000341 | 3ds_auth_failure | 103 |\n| 4000000000000051 | psp_timeout | 105 |","summary":"Debit a card","tags":["paymentsV2"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"card":{"type":"object","properties":{"cardNumber":{"type":"string","description":"Credit or debit card number"},"expiryMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Card expiry month (1-12)"},"expiryYear":{"type":"integer","minimum":1970,"maximum":2100,"description":"Card expiry year (4 digits)"},"cvv":{"type":"string","description":"Card verification value (CVV/CVC)"},"cardHolderName":{"type":"string","minLength":1,"maxLength":100,"description":"Name of the cardholder as it appears on the card"},"cardBrand":{"type":"string","enum":["VISA","MASTERCARD","AMEX","DINERS","DISCOVER","JCB","UNIONPAY","MAESTRO","ELO","MIR","HIPERCARD","HIPER","DANKORT","RUPAY","ELECTRON","UNKNOWN"]},"iin":{"anyOf":[{"type":"string","minLength":6,"maxLength":6},{"type":"string","minLength":8,"maxLength":8}]},"save":{"type":"boolean"}},"required":["cardNumber","expiryMonth","expiryYear","cvv"],"description":"Credit or debit card details"},"threeDS":{"type":"object","properties":{"version":{"type":"string"},"eci":{"type":"string"},"cavv":{"type":"string"},"dsTransactionId":{"type":"string"},"xid":{"type":"string"},"transStatus":{"type":"string"},"enrolled":{"type":"string"}},"description":"External 3-D Secure authentication result"}},"required":["appId","amount","device","txRefId","card"],"example":{"appId":"towl-test-app","amount":{"amt":"24.42","cy":"EUR"},"device":{"ip":"203.0.113.7"},"user":{"userId":"DontPanic42","firstName":"Arthur","lastName":"Dent","email":"arthur.dent@example.com","phone":"+46701234567","address":{"line1":"Handduksvagen 42","city":"Stockholm","postalCode":"11122","countryCode":"SWE"}},"txRefId":"order-10442","card":{"cardNumber":"4242424242424242","expiryMonth":12,"expiryYear":2030,"cardHolderName":"Arthur Dent","cardBrand":"VISA"},"callbackUrl":"https://your-server.com/webhooks/payment-callback"}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txFee":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"redirectUrl":{"type":"string","format":"uri"}},"required":["id"],"additionalProperties":false,"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","txAmount":{"amt":"24.42","cy":"EUR"},"txRefId":"order-10442","state":"success","statusCode":"approved","statusMessage":"Approved"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/payment/card/credit":{"post":{"description":"Push funds directly to a card (Original Credit Transaction / payout). Card details are supplied by the caller — no prior transaction reference is required. 3DS authentication does not apply to outbound credit flows.\n\n## Test Cards\n\n### Approved\n| PAN | statusCode | responseCode |\n|-----|------------|--------------|\n| 4242424242424242 | approved | 0 |\n| 4111111111111111 | approved | 0 |\n| 5555555555554444 | approved | 0 |\n| 378282246310005 | approved | 0 |\n\n### Declined\n| PAN | statusCode | responseCode |\n|-----|------------|--------------|\n| 4000000000000002 | do_not_honor | 5 |\n| 4000000000009995 | insufficient_funds | 51 |\n| 4000000000000069 | expired_card | 54 |\n| 4000000000000127 | invalid_cvv | 79 |\n| 4000000000000119 | psp_malfunction | 96 |\n| 4100000000000019 | suspected_fraud | 59 |\n| 4000000000000259 | issuer_err | 91 |\n| 4000000000000051 | psp_timeout | 105 |","summary":"Credit a card (OCT / payout)","tags":["paymentsV2"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"card":{"type":"object","properties":{"cardNumber":{"type":"string","description":"Credit or debit card number"},"expiryMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Card expiry month (1-12)"},"expiryYear":{"type":"integer","minimum":1970,"maximum":2100,"description":"Card expiry year (4 digits)"},"cvv":{"type":"string","description":"Card verification value (CVV/CVC)"},"cardHolderName":{"type":"string","minLength":1,"maxLength":100,"description":"Name of the cardholder as it appears on the card"},"cardBrand":{"type":"string","enum":["VISA","MASTERCARD","AMEX","DINERS","DISCOVER","JCB","UNIONPAY","MAESTRO","ELO","MIR","HIPERCARD","HIPER","DANKORT","RUPAY","ELECTRON","UNKNOWN"]},"iin":{"anyOf":[{"type":"string","minLength":6,"maxLength":6},{"type":"string","minLength":8,"maxLength":8}]},"save":{"type":"boolean"}},"required":["cardNumber","expiryMonth","expiryYear"]}},"required":["appId","amount","device","txRefId","card"],"example":{"appId":"towl-test-app","amount":{"amt":"50","cy":"EUR"},"device":{"ip":"203.0.113.7"},"user":{"userId":"DontPanic42","firstName":"Arthur","lastName":"Dent","email":"arthur.dent@example.com","phone":"+46701234567","address":{"line1":"Handduksvagen 42","city":"Stockholm","postalCode":"11122","countryCode":"SWE"}},"txRefId":"payout-20881","card":{"cardNumber":"4242424242424242","expiryMonth":12,"expiryYear":2030,"cardHolderName":"Arthur Dent","cardBrand":"VISA"},"callbackUrl":"https://your-server.com/webhooks/payment-callback"}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txFee":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"redirectUrl":{"type":"string","format":"uri"}},"required":["id"],"additionalProperties":false,"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","txAmount":{"amt":"24.42","cy":"EUR"},"txRefId":"order-10442","state":"success","statusCode":"approved","statusMessage":"Approved"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/payment/card/refund":{"post":{"description":"Refunds a previously captured charge.","summary":"Refund a charge","tags":["paymentsV2"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"callbackUrl":{"description":"URL to receive webhook callback with transaction result","type":"string","format":"uri"},"manualOverride":{"description":"Operator-only. When true, the provider is not called and the transaction is forced to a successful, manually-approved outcome. Honored only for authenticated operator (user) requests.","type":"boolean"},"attemptNo":{"description":"Operator-only. Target an attempt the failover cascade walked away from, instead of the provider the transaction row names. Its index in the transaction's routing attempt trail, as reported by the reconciliation finding for that attempt. This is how a payment left live at an abandoned provider — a double charge, or an authorization nothing will settle — is voided or refunded at the provider actually holding it. Honored only for authenticated operator (user) requests.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id"],"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","callbackUrl":"https://your-server.com/webhooks/payment-callback"}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txFee":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"redirectUrl":{"type":"string","format":"uri"}},"required":["id"],"additionalProperties":false,"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","txAmount":{"amt":"24.42","cy":"EUR"},"txRefId":"order-10442","state":"success","statusCode":"approved","statusMessage":"Approved"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/payment/card/void":{"post":{"description":"Cancels an authorization hold without capturing.","summary":"Void an authorization","tags":["paymentsV2"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"callbackUrl":{"description":"URL to receive webhook callback with transaction result","type":"string","format":"uri"},"manualOverride":{"description":"Operator-only. When true, the provider is not called and the transaction is forced to a successful, manually-approved outcome. Honored only for authenticated operator (user) requests.","type":"boolean"},"attemptNo":{"description":"Operator-only. Target an attempt the failover cascade walked away from, instead of the provider the transaction row names. Its index in the transaction's routing attempt trail, as reported by the reconciliation finding for that attempt. This is how a payment left live at an abandoned provider — a double charge, or an authorization nothing will settle — is voided or refunded at the provider actually holding it. Honored only for authenticated operator (user) requests.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id"],"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","callbackUrl":"https://your-server.com/webhooks/payment-callback"}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txFee":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"redirectUrl":{"type":"string","format":"uri"}},"required":["id"],"additionalProperties":false,"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","txAmount":{"amt":"24.42","cy":"EUR"},"txRefId":"order-10442","state":"success","statusCode":"approved","statusMessage":"Approved"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/payment/card/capture":{"post":{"description":"Captures funds from a previously authorized charge.","summary":"Capture an authorization","tags":["paymentsV2"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"callbackUrl":{"description":"URL to receive webhook callback with transaction result","type":"string","format":"uri"},"manualOverride":{"description":"Operator-only. When true, the provider is not called and the transaction is forced to a successful, manually-approved outcome. Honored only for authenticated operator (user) requests.","type":"boolean"},"attemptNo":{"description":"Operator-only. Target an attempt the failover cascade walked away from, instead of the provider the transaction row names. Its index in the transaction's routing attempt trail, as reported by the reconciliation finding for that attempt. This is how a payment left live at an abandoned provider — a double charge, or an authorization nothing will settle — is voided or refunded at the provider actually holding it. Honored only for authenticated operator (user) requests.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id"],"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","callbackUrl":"https://your-server.com/webhooks/payment-callback"}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txFee":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"redirectUrl":{"type":"string","format":"uri"}},"required":["id"],"additionalProperties":false,"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","txAmount":{"amt":"24.42","cy":"EUR"},"txRefId":"order-10442","state":"success","statusCode":"approved","statusMessage":"Approved"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/payment/card/cancel":{"post":{"description":"Cancels a payment transaction.","summary":"Cancel a transaction","tags":["paymentsV2"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"callbackUrl":{"description":"URL to receive webhook callback with transaction result","type":"string","format":"uri"},"manualOverride":{"description":"Operator-only. When true, the provider is not called and the transaction is forced to a successful, manually-approved outcome. Honored only for authenticated operator (user) requests.","type":"boolean"},"attemptNo":{"description":"Operator-only. Target an attempt the failover cascade walked away from, instead of the provider the transaction row names. Its index in the transaction's routing attempt trail, as reported by the reconciliation finding for that attempt. This is how a payment left live at an abandoned provider — a double charge, or an authorization nothing will settle — is voided or refunded at the provider actually holding it. Honored only for authenticated operator (user) requests.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id"],"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","callbackUrl":"https://your-server.com/webhooks/payment-callback"}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txFee":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"redirectUrl":{"type":"string","format":"uri"}},"required":["id"],"additionalProperties":false,"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","txAmount":{"amt":"24.42","cy":"EUR"},"txRefId":"order-10442","state":"success","statusCode":"approved","statusMessage":"Approved"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/payment/card/chargeback":{"post":{"description":"Records a chargeback against a settled transaction. Most providers do not expose a chargeback API, so this is typically used with manual override.","summary":"Charge back a transaction","tags":["paymentsV2"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"callbackUrl":{"description":"URL to receive webhook callback with transaction result","type":"string","format":"uri"},"manualOverride":{"description":"Operator-only. When true, the provider is not called and the transaction is forced to a successful, manually-approved outcome. Honored only for authenticated operator (user) requests.","type":"boolean"},"attemptNo":{"description":"Operator-only. Target an attempt the failover cascade walked away from, instead of the provider the transaction row names. Its index in the transaction's routing attempt trail, as reported by the reconciliation finding for that attempt. This is how a payment left live at an abandoned provider — a double charge, or an authorization nothing will settle — is voided or refunded at the provider actually holding it. Honored only for authenticated operator (user) requests.","type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id"],"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","callbackUrl":"https://your-server.com/webhooks/payment-callback"}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txFee":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"redirectUrl":{"type":"string","format":"uri"}},"required":["id"],"additionalProperties":false,"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","txAmount":{"amt":"24.42","cy":"EUR"},"txRefId":"order-10442","state":"success","statusCode":"approved","statusMessage":"Approved"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/payment/status/{id}":{"get":{"description":"Get the status of a payment transaction by its ID.\n\n`amount` is what the payment was for; `txAmount` is what it was processed in.\n\n> **Warning:** `amount` is usually the amount and currency sent in the request that created the payment, but it can differ. For payment methods where the amount cannot be locked up front — such as a crypto deposit or a bank transfer — the payer decides what is actually sent. Always compare `amount` with your order before fulfilling it; never assume it equals what you requested.","summary":"Get payment status","tags":["paymentsV2"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"description":"The amount and currency the payment was processed in. It can be in a different currency from `amount`, for example when the payment is converted or settled in crypto.","type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false},"txFee":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"redirectUrl":{"type":"string","format":"uri"},"amount":{"description":"The amount and currency of the payment.\n\n**Warning:** `amount` is usually the amount and currency sent in the request that created the payment, but it can differ. For payment methods where the amount cannot be locked up front — such as a crypto deposit or a bank transfer — the payer decides what is actually sent. Always compare `amount` with your order before fulfilling it; never assume it equals what you requested.","type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false}},"required":["id"],"additionalProperties":false,"example":{"id":"9f4b2c1a-7d3e-4a6b-9c2d-1e8f5a7b3c4d","txRefId":"order-10442","amount":{"amt":"24.42","cy":"EUR"},"txAmount":{"amt":"24.42","cy":"EUR"},"state":"success","statusCode":"approved","statusMessage":"Approved"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/payment/checkout-tokens":{"post":{"description":"Creates a checkout API client token for use with checkout API.\n\nSee the **[Checkout API guide](/api/docs/checkout-api)** for the full end-to-end flow (minting tokens, options, debit, status polling, appearance/styling).","summary":"Create checkout API client token","tags":["paymentsV2"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$","description":"Application slug ID"},"expiresIn":{"default":300,"description":"Token expiry in seconds (default 5 minutes)","type":"integer","minimum":60,"maximum":3600},"allowedOrigins":{"maxItems":10,"type":"array","items":{"type":"string"},"description":"List of allowed origins for CORS and Origin header enforcement. The browser SDK must send requests from one of these origins."},"metadata":{"description":"Your own data about the payment, as a JSON object. Frozen into the session and carried onto the payment it makes, where rule sets can match on it — the same as `metadata` on a server API payment. The published checkout design can match on it too, to decide which variant and which payment methods the shopper sees (for example a `kycStatus` property). Keys are 1-64 letters, digits, `_` or `-`; at most 5 levels deep and 4096 characters as JSON. Not sent to payment providers.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"txRefId":{"description":"External transaction reference ID","type":"string","maxLength":255},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"checkoutUrl":{"description":"If true, the response includes a fully-qualified checkout URL that can be used to redirect or embed the hosted checkout.","type":"boolean"},"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"direction":{"description":"Which way money moves in this session: `debit` (from the shopper — a payment, the default) or `credit` (to the shopper — a withdrawal/payout). Frozen into the session: `POST /api/v1/checkout/credit` only accepts sessions minted with `credit`, and the options list follows the session's direction. A `credit` session requires `amount` — a payout amount is never taken from the browser.","type":"string","enum":["debit","credit"]},"paymentOption":{"description":"Pin the session to a single payment option, chosen by your server. The pin is stored on the session and validated here: the option must be offerable for the session's `direction` and routable for this application — otherwise this request fails with 400 (rather than the shopper meeting an error page). A pinned session offers exactly this option: it overrides the option list of the checkout design that serves the session (the design still styles the page), and `GET /options` returns only it. The hosted checkout lands inside the option — submitting straight away when it is a redirect option with no fields, or showing only its own fields when it has some. Included in the checkout URL when checkoutUrl is true; the URL's `?option=` keeps its narrowing-only meaning and cannot widen a pin.","type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"embedMode":{"description":"Embedding mode for the hosted checkout. Included in the checkout URL when checkoutUrl is true.","type":"string","enum":["redirect","iframe"]},"parentOrigin":{"description":"Origin of the merchant page embedding the checkout (iframe). Included in the checkout URL when checkoutUrl is true.","type":"string"},"appearance":{"description":"Appearance overrides for this checkout session. Resolved and frozen at token creation; applies to the hosted checkout (redirect and iframe) and to Card SDK fields created with this session's token. When a published checkout design serves the session, the checkout's `requestAppearanceMode` decides how they combine with it: `fill` (default) — the design wins and these tokens only fill in fields the design leaves unset; `override` — these tokens replace the design's, field by field; `ignore` — they are not used.","type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"styleUrl":{"description":"URL of a CSS file fetched ONCE at token creation, sanitized and frozen into the session (snapshot-at-mint). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"typography":{"description":"Type scale, heading weight and letter spacing","type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"description":"Logo height and alignment","type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]}},"additionalProperties":false}},"additionalProperties":false,"example":{"colors":{"background":"#101014","surface":"#1c1c24","accent":"#e8590c","textPrimary":"#ffffff"},"logoUrl":"https://your-domain.com/logo.svg","cornerRadius":"lg","fontFamily":"system"}},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The session then offers the shopper the card they already entered for that payment, so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the session is still created and the shopper enters a card as usual.","type":"string","maxLength":64},"checkout":{"description":"Slug of a checkout design (built in the admin portal's Checkout builder) to use for this session. Defaults to the checkout bound to the application, then the context's default checkout — your own first, then your organization's, which serves you whenever none of yours applies. Ignored while that checkout has no published version — the session then renders the standard checkout. When your organization provides the checkout for all its customers, only its checkouts are used: a slug naming one of your own designs is ignored and the session gets the organization's checkout.","type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"cancelUrl":{"description":"Where the hosted checkout sends the shopper who leaves with Cancel before paying — normally the page they came from. Placeholders: `${id}` (empty: no payment was made), `${state}` (`cancelled`) and `${statusCode}` (`user_aborted_trx`). Without it, Cancel returns to `failureUrl` with an empty `${id}` and `${statusCode}` set to `cancelled`.","type":"string","format":"uri"}},"required":["appId","allowedOrigins","user"]}}}},"responses":{"200":{"description":"Response schema for checkout token creation","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string","description":"Checkout token"},"expiresAt":{"type":"string","description":"Token expiry timestamp in ISO format"},"allowedOrigins":{"type":"array","items":{"type":"string"},"description":"Allowed origins bound to this session token"},"url":{"description":"Fully-qualified hosted checkout URL. Only present when the request set checkoutUrl=true. Its path carries the API version of the request that minted the session — a session created on `/api/v2/...` gets a `/v2/` checkout URL — so the whole payment stays on the version you integrated against.","type":"string","format":"uri"}},"required":["token","expiresAt","allowedOrigins"],"additionalProperties":false,"description":"Response schema for checkout token creation","example":{"token":"ck_a1b2c3d4-e5f6-7890-abcd-ef1234567890","expiresAt":"2026-08-04T11:00:00.000Z","allowedOrigins":["https://your-domain.com"],"url":"https://checkout.wardenpay.com/v2/ck_a1b2c3d4-e5f6-7890-abcd-ef1234567890?amount=24.42&currency=EUR&embedMode=iframe"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/payment/options":{"post":{"description":"The payment options an application can take. A published checkout design's matching variant decides them, as for the hosted checkout. Without one, every option the application can route is listed (the hosted checkout would show card). Only options one of the application's active accounts can route are ever listed.\n\nThe design's conditions are evaluated against the `amount` and `user` you send, so send what the payment will carry. Pay a `card-debit-new` entry with `POST /card/debit` and every other entry with `POST /debit`, using the entry's `type` as `paymentType`. A device wallet is listed only when its provider hosts the wallet page; a wallet sheet raised in your own page is not available through the server API.","summary":"List an application's payment options","tags":["paymentsV2"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"amount":{"description":"The amount the payment will be for","type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"]},"user":{"description":"The shopper, as it will be sent on the payment","type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"]},"metadata":{"description":"Your own data about the payment, as it will be sent on it. The published checkout design can match on it (for example a `kycStatus` property), the same way rule sets do.","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"device":{"type":"object","properties":{"ip":{"description":"The shopper's IP address, for a design that counts per IP","anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]}}}},"required":["appId"],"description":"Request schema for listing an application's payment options","example":{"appId":"towl-test-app","amount":{"amt":"50.00","cy":"EUR"},"user":{"userId":"DontPanic42","firstName":"Arthur","lastName":"Dent","email":"arthur.dent@example.com","phone":"+46701234567","address":{"line1":"Handduksvagen 42","city":"Stockholm","postalCode":"11122","countryCode":"SWE"}},"metadata":{"kycStatus":"verified","depositCount":2},"device":{"ip":"203.0.113.7"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["card-debit-new","card-debit-token","card-debit-grant","card-credit-token","ideal-debit","bancontact-debit","paypal-debit","klarna-debit","pay-by-bank-debit","swish-debit","vipps-debit","mobilepay-debit","trustly-debit","paysafecard-debit","skrill-debit","neteller-debit","play-plus-debit","mifinity-debit","vip-preferred-debit","safetypay-debit","jeton-debit","eps-debit","przelewy24-debit","twint-debit","alipay-debit","blik-debit","bizum-debit","mb-way-debit","multibanco-debit","astropay-debit","pix-debit","spei-debit","oxxo-debit","pse-debit","efecty-debit","cash-at-retail-debit","local-bank-transfer-debit","interac-debit","applepay-debit","googlepay-debit","crypto-onramp-debit","crypto-accept-debit","swish-credit","trustly-credit","paysafecard-credit","skrill-credit","neteller-credit","astropay-credit","local-bank-transfer-credit","interac-credit","play-plus-credit","mifinity-credit","vip-preferred-credit","jeton-credit","paypal-credit","crypto-accept-credit","pay-by-bank-credit"],"description":"Payment option type identifier"},"paymentOption":{"description":"Canonical PSP-independent payment option this entry belongs to","type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"displayName":{"description":"User-facing display name. Always the payment option — never the underlying gateway.","type":"string"},"flow":{"description":"How the option is completed: inline card entry, a redirect that continues in the payment method's own page, a device-wallet sheet raised in the checkout page itself, or (withdrawals) a payout to a destination chosen in the page.","type":"string","enum":["inline-card","redirect","wallet","payout"]},"redirectDisplay":{"description":"How a redirect-flow option's provider page is displayed: in the checkout overlay iframe, or a popup handoff (bank/wallet pages routinely refuse framing via X-Frame-Options).","type":"string","enum":["iframe","popup"]},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Field name"},"type":{"type":"string","enum":["string","number","boolean"],"description":"Field type"},"required":{"type":"boolean","description":"Whether the field is required"},"label":{"type":"string","description":"Display label for the field"},"placeholder":{"description":"Placeholder text","type":"string"},"regex":{"description":"Validation regex pattern","type":"string"}},"required":["name","type","required","label"],"additionalProperties":false,"description":"Schema for a payment option field"},"description":"Fields required for this payment option"},"icon":{"description":"Icon URL or name","type":"string"},"wallet":{"description":"Setup for a `wallet`-flow option's sheet, filled in by the routed provider","type":"object","properties":{"environment":{"type":"string","enum":["TEST","PRODUCTION"],"description":"Wallet environment the provider's credentials belong to"},"merchantName":{"type":"string","maxLength":128,"description":"Name the sheet shows the shopper as the payee"},"countryCode":{"type":"string","minLength":2,"maxLength":2,"description":"Merchant country, ISO 3166-1 alpha-2"},"supportedNetworks":{"minItems":1,"type":"array","items":{"type":"string","maxLength":32},"description":"Card networks the processor accepts, in the wallet's vocabulary"},"merchantCapabilities":{"description":"Apple Pay merchant capabilities (e.g. supports3DS)","type":"array","items":{"type":"string","maxLength":32}},"allowedAuthMethods":{"description":"Google Pay auth methods (e.g. PAN_ONLY, CRYPTOGRAM_3DS)","type":"array","items":{"type":"string","maxLength":32}},"gateway":{"description":"Google Pay gateway identifier — opaque to the checkout","type":"string","maxLength":64},"gatewayMerchantId":{"description":"Google Pay gateway merchant id — opaque to the checkout","type":"string","maxLength":128},"merchantId":{"description":"Google Pay merchant id issued by Google, required in PRODUCTION","type":"string","maxLength":128},"requiresMerchantSession":{"description":"Apple Pay: the page must call POST /checkout/wallet/session to validate the merchant before the sheet can proceed","type":"boolean"},"vault":{"description":"Set when a card vault, not the processor, decrypts the wallet token: the page raises the sheet through the vault's wallet component and posts back a network token","type":"object","properties":{"provider":{"type":"string","const":"evervault","description":"Card vault whose wallet component raises the sheet"},"teamId":{"type":"string","minLength":1,"maxLength":64,"description":"Evervault team id (public)"},"appId":{"type":"string","minLength":1,"maxLength":64,"description":"Evervault app id (public); the app whose key encrypts the network token"},"merchantId":{"type":"string","minLength":1,"maxLength":128,"description":"Evervault merchant id the wallet transaction is created under"}},"required":["provider","teamId","appId","merchantId"],"additionalProperties":false}},"required":["environment","merchantName","countryCode","supportedNetworks"],"additionalProperties":false},"payoutInstrument":{"description":"Withdrawals: the shopper's payout destination this entry pays to","type":"object","properties":{"id":{"type":"string","description":"What a withdrawal names as `instrumentId`"},"kind":{"type":"string","enum":["iban","wallet"],"description":"A bank account, or an account or wallet at the payment method"},"masked":{"type":"string","description":"The destination as the shopper may see it: a masked IBAN, a masked phone or email"},"holderName":{"description":"The account holder, when known","type":"string"}},"required":["id","kind","masked"],"additionalProperties":false}},"required":["type","fields"],"additionalProperties":false,"description":"Schema for a payment option"},"example":[{"type":"card-debit-new","paymentOption":"card","displayName":"Card","flow":"inline-card","fields":[{"name":"encCardNumber","type":"string","required":true,"label":"Card number"},{"name":"encCvv","type":"string","required":true,"label":"CVV"},{"name":"expiryMonth","type":"number","required":true,"label":"Expiry month"},{"name":"expiryYear","type":"number","required":true,"label":"Expiry year"},{"name":"cardholderName","type":"string","required":false,"label":"Cardholder name"}]},{"type":"card-debit-token","paymentOption":"card","displayName":"Saved card","flow":"inline-card","fields":[{"name":"encCvv","type":"string","required":true,"label":"CVV"}],"icon":"{\"tokenId\":\"tok_7f3a…\",\"maskedCard\":\"424242••••4242\",\"expiryMonth\":\"12\",\"expiryYear\":\"2030\",\"cardBrand\":\"VISA\"}"},{"type":"ideal-debit","paymentOption":"ideal","displayName":"iDEAL","flow":"redirect","fields":[],"icon":"ideal"}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/payment/debit":{"post":{"description":"Takes a payment in an option other than card — the same `paymentType` and option fields as `POST /checkout/debit`, with the application, shopper and URLs in the body because there is no session. Cards are paid with `POST /card/debit`.\n\nThe shopper pays on the provider's page: the response's `redirectUrl` leads there, and the outcome arrives as for a card — the webhook to `callbackUrl` and `GET /status/{id}`. The option must be one an active account of the application can route (`POST /options` lists them), or the request fails with 400. Some options need more of `user`: `crypto-onramp-debit` needs `email` and `dateOfBirth`.","summary":"Debit in another payment option","tags":["paymentsV2"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"ideal-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"bancontact-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"paypal-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"klarna-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"pay-by-bank-debit"},"country":{"description":"Bank country","type":"string","minLength":2,"maxLength":2},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"swish-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"vipps-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"mobilepay-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"trustly-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"paysafecard-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"skrill-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"neteller-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"play-plus-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"mifinity-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"vip-preferred-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"safetypay-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"jeton-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"eps-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"przelewy24-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"twint-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"alipay-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"blik-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"bizum-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"mb-way-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"multibanco-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"astropay-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"pix-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"spei-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"oxxo-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"pse-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"efecty-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"cash-at-retail-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"local-bank-transfer-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"interac-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"applepay-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"googlepay-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"crypto-onramp-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"description":"Decimal amount as a canonical string","type":["string","number"]},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255,"description":"External transaction reference ID"},"paymentType":{"type":"string","const":"crypto-accept-debit"},"appId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"device":{"type":"object","properties":{"ip":{"anyOf":[{"type":"string","format":"ipv4","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$"},{"type":"string","format":"ipv6","pattern":"^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$"}]},"userAgent":{"type":"string"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"browser":{"type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840}},"description":"Shopper browser details for EMV 3DS device data"}},"required":["ip"],"description":"Enduser device details"},"user":{"type":"object","properties":{"userId":{"type":"string","minLength":1,"maxLength":100},"firstName":{"type":"string","minLength":1,"maxLength":100},"middleName":{"type":"string","minLength":1,"maxLength":100},"lastName":{"type":"string","minLength":1,"maxLength":100},"email":{"type":"string","maxLength":500,"format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$","description":"Email"},"phone":{"description":"Phone number in E.164 format; separators (spaces, hyphens, dots, parentheses) are accepted and stripped","type":"string","maxLength":50},"dateOfBirth":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$","description":"Date of birth in YYYY-MM-DD format"},"nationalId":{"description":"The user's national identity number (a Swedish personnummer, a Finnish henkilötunnus, …). Only for withdrawals to a provider that checks it: Swish pays out only to the person the number belongs to. Never stored on the transaction.","type":"string","minLength":4,"maxLength":32,"pattern":"^[A-Za-z0-9 .\\-]+$"},"address":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"},"shippingAddress":{"type":"object","properties":{"line1":{"type":"string","maxLength":200},"line2":{"type":"string","maxLength":200},"city":{"type":"string","maxLength":100},"state":{"type":"string","maxLength":100},"postalCode":{"type":"string","maxLength":20},"countryCode":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"required":["line1","city","postalCode","countryCode"],"description":"Address"}},"required":["firstName","lastName"],"description":"User details for the payment"},"successUrl":{"type":"string","format":"uri"},"failureUrl":{"type":"string","format":"uri"},"callbackUrl":{"type":"string","format":"uri"},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{},"description":"Your own data about the payment, as a JSON object (for example order or customer attributes). Rule sets can match on any property of it: in the admin portal, add an input column with the Payment metadata source and the property's name — `loyaltyTier`, or `order.category` for a nested one. Keys are 1-64 letters, digits, `_` or `-`; values may be strings, numbers, booleans, null, arrays or objects, nested at most 5 levels deep and at most 4096 characters as JSON. Metadata is not sent to payment providers."},"paymentMethodGrant":{"description":"A card handoff grant (`pmg_…`) you received with a payment request from this platform. The card is not charged by this request: it travels on to the provider that takes this payment, whose checkout offers it to the shopper so they only confirm it. The grant is single-use, short-lived, valid only for your account and for the same shopper (`user.email` / `user.phone`), and capped at the original amount plus a margin. A grant that does not qualify is ignored — the payment goes ahead and the shopper enters a card on the provider's page as usual.","type":"string","maxLength":64}},"required":["amount","txRefId","paymentType","appId","device"]}],"description":"Request schema for a payment in an option other than card","example":{"paymentType":"crypto-onramp-debit","appId":"towl-test-app","amount":{"amt":"50.00","cy":"EUR"},"txRefId":"order-10442","user":{"userId":"DontPanic42","firstName":"Arthur","lastName":"Dent","email":"arthur.dent@example.com","phone":"+46701234567","address":{"line1":"Handduksvagen 42","city":"Stockholm","postalCode":"11122","countryCode":"SWE"},"dateOfBirth":"1980-01-01"},"device":{"ip":"203.0.113.7","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) ..."},"successUrl":"https://your-domain.com/success?id=${id}&statusCode=${statusCode}","failureUrl":"https://your-domain.com/failed?id=${id}&statusCode=${statusCode}","callbackUrl":"https://your-server.com/webhooks/payment-callback","metadata":{"loyaltyTier":"gold","order":{"category":"electronics","itemCount":3}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txFee":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"redirectUrl":{"type":"string","format":"uri"},"paymentOption":{"description":"Canonical payment option the transaction was made with","type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}},"required":["id"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/transactions":{"get":{"description":"Search and retrieve transactions with pagination and filtering.","summary":"Search transactions","tags":["transactions"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"customerId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"sort","in":"query","schema":{"type":"string","enum":["asc","desc"]}},{"name":"page","in":"query","schema":{"default":1,"type":"number","minimum":1}},{"name":"limit","in":"query","schema":{"default":100,"type":"number","minimum":1}},{"name":"dateRange","in":"query","style":"deepObject","schema":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}}},{"name":"refresh","in":"query","schema":{"type":"boolean"}},{"name":"manual","in":"query","schema":{"type":"boolean"}},{"name":"reconciliation","in":"query","description":"Filter transactions by their reconciliation outcome","schema":{"type":"string","enum":["open","mismatch","unresolved","matched"]}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["state","statusCode","extStatusCode","statusMessage","statusMapped","builtInStatusCode","paymentType","paymentOption","transactionType","rail","custodian","deviceType","importBatchId","appSlugId","customerName","txRefId","user.userId","customerId","user.email","user.maskedAccount","user.countryCode","user.customerRefId","amount.amt","amount.cy","txAmount.amt","baseAmount.amt","txFee.amt","provider","providerAccount","providerTxId","providerFee.amt"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"applicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"appSlugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"txRefId":{"type":"string","maxLength":255},"originTxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"paymentType":{"type":"string","enum":["card","bank","ewallet","crypto","invoice","other"]},"paymentOption":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"transactionType":{"type":"string","enum":["debit","credit","refund","auth","capture","void","cancel","chargeback","3ds"]},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"statusMapping":{"anyOf":[{"type":"object","properties":{"from":{"type":"object","properties":{"statusCode":{"type":"string"},"state":{"type":"string"},"statusMessage":{"type":"string"}},"additionalProperties":false},"tableId":{"type":"string"},"tableName":{"type":"string"},"version":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"ruleId":{"type":"string"},"ruleNo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"level":{"type":"string","enum":["customer","organization"]},"source":{"type":"string","enum":["sync","callback","redirect","poll","reconciliation"]},"attemptNo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mappedAt":{"type":"string"}},"required":["from","level","source","mappedAt"],"additionalProperties":false,"description":"Which status mapping rule refined the provider's answer"},{"type":"null"}]},"amount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txAmount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txFee":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"providerFee":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"baseAmount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"user":{"type":"object","properties":{"userId":{"type":"string"},"email":{"type":"string"},"maskedAccount":{"type":"string"},"countryCode":{"type":"string"},"customerRefId":{"type":"string"}},"additionalProperties":false},"provider":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerAccount":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerTxId":{"type":"string"},"providerUserId":{"type":"string"},"card":{"type":"object","properties":{"cardNumber":{"type":"string"},"cvv":{"type":"string"},"expiryMonth":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expiryYear":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cardHolderName":{"type":"string"}},"required":["cardNumber"],"additionalProperties":false},"callbackUrl":{"type":"string","format":"uri"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"rail":{"type":"string","enum":["visa","mastercard","amex","diners","discover","jcb","unionpay","maestro","elo","mir","hipercard","hiper","dankort","rupay","electron","sepa-ct","sepa-dd","sepa-inst","iban","swift","ideal","bancontact","swish","eps","przelewy24","blik","bizum","mb-way","multibanco","pix","spei","pse","interac","faster-payments","bacs","ach","fedwire","paypal","klarna","apple-pay","google-pay","vipps","mobilepay","twint","alipay","astropay","paysafecard","skrill","neteller","mifinity","play-plus","jeton","bitcoin","bitcoin-cash","litecoin","dogecoin","ethereum","arbitrum","base","polygon","optimism","bnb-smart-chain","avalanche","solana","tron","xrp-ledger","stellar","cardano","unknown"]},"custodian":{"type":"string","maxLength":100},"subjectId":{"type":"string"},"metadata":{"description":"Your own data about the payment, as sent in the request's `metadata`","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"importBatchId":{"type":"string"},"workflowId":{"type":"string"},"pendingRedirectUrl":{"type":"string"},"checkoutId":{"type":"string"},"checkoutVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"checkoutVariantId":{"type":"string"},"checkoutExperimentId":{"type":"string"},"checkoutArmId":{"type":"string"},"checkoutTokenId":{"type":"string"},"checkoutSessionId":{"type":"string"},"routingAttempts":{"type":"array","items":{"type":"object","properties":{"service":{"type":"string"},"slugId":{"type":"string"},"provider":{"type":"string"},"state":{"type":"string"},"statusCode":{"type":"string"},"statusMessage":{"type":"string"},"failedOver":{"type":"boolean"},"skipped":{"type":"boolean"},"screened":{"type":"boolean"},"providerTxId":{"type":"string"},"extStatusCode":{"type":"string"},"statusMapping":{"type":"object","properties":{"from":{"type":"object","properties":{"statusCode":{"type":"string"},"state":{"type":"string"},"statusMessage":{"type":"string"}},"additionalProperties":false},"tableId":{"type":"string"},"tableName":{"type":"string"},"version":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"ruleId":{"type":"string"},"ruleNo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"level":{"type":"string","enum":["customer","organization"]},"source":{"type":"string","enum":["sync","callback","redirect","poll","reconciliation"]},"attemptNo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mappedAt":{"type":"string"}},"required":["from","level","source","mappedAt"],"additionalProperties":false,"description":"Which status mapping rule refined the provider's answer"}},"required":["service","slugId"],"additionalProperties":false}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["organizationId","customerId","id","createdAt","updatedAt"],"additionalProperties":false,"description":"Transaction data"}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/transactions/{id}":{"get":{"description":"Retrieve a single transaction by its ID.","summary":"Get transaction by ID","tags":["transactions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Transaction data","content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"applicationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"appSlugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"txRefId":{"type":"string","maxLength":255},"originTxId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"paymentType":{"type":"string","enum":["card","bank","ewallet","crypto","invoice","other"]},"paymentOption":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"transactionType":{"type":"string","enum":["debit","credit","refund","auth","capture","void","cancel","chargeback","3ds"]},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"extStatusCode":{"type":"string"},"statusMessage":{"type":"string"},"statusMapping":{"anyOf":[{"type":"object","properties":{"from":{"type":"object","properties":{"statusCode":{"type":"string"},"state":{"type":"string"},"statusMessage":{"type":"string"}},"additionalProperties":false},"tableId":{"type":"string"},"tableName":{"type":"string"},"version":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"ruleId":{"type":"string"},"ruleNo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"level":{"type":"string","enum":["customer","organization"]},"source":{"type":"string","enum":["sync","callback","redirect","poll","reconciliation"]},"attemptNo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mappedAt":{"type":"string"}},"required":["from","level","source","mappedAt"],"additionalProperties":false,"description":"Which status mapping rule refined the provider's answer"},{"type":"null"}]},"amount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txAmount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txFee":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"providerFee":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"baseAmount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"user":{"type":"object","properties":{"userId":{"type":"string"},"email":{"type":"string"},"maskedAccount":{"type":"string"},"countryCode":{"type":"string"},"customerRefId":{"type":"string"}},"additionalProperties":false},"provider":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerAccount":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerTxId":{"type":"string"},"providerUserId":{"type":"string"},"card":{"type":"object","properties":{"cardNumber":{"type":"string"},"cvv":{"type":"string"},"expiryMonth":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"expiryYear":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cardHolderName":{"type":"string"}},"required":["cardNumber"],"additionalProperties":false},"callbackUrl":{"type":"string","format":"uri"},"deviceType":{"type":"string","enum":["desktop","mobile","tablet","unknown"]},"rail":{"type":"string","enum":["visa","mastercard","amex","diners","discover","jcb","unionpay","maestro","elo","mir","hipercard","hiper","dankort","rupay","electron","sepa-ct","sepa-dd","sepa-inst","iban","swift","ideal","bancontact","swish","eps","przelewy24","blik","bizum","mb-way","multibanco","pix","spei","pse","interac","faster-payments","bacs","ach","fedwire","paypal","klarna","apple-pay","google-pay","vipps","mobilepay","twint","alipay","astropay","paysafecard","skrill","neteller","mifinity","play-plus","jeton","bitcoin","bitcoin-cash","litecoin","dogecoin","ethereum","arbitrum","base","polygon","optimism","bnb-smart-chain","avalanche","solana","tron","xrp-ledger","stellar","cardano","unknown"]},"custodian":{"type":"string","maxLength":100},"subjectId":{"type":"string"},"metadata":{"description":"Your own data about the payment, as sent in the request's `metadata`","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"importBatchId":{"type":"string"},"workflowId":{"type":"string"},"pendingRedirectUrl":{"type":"string"},"checkoutId":{"type":"string"},"checkoutVersion":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"checkoutVariantId":{"type":"string"},"checkoutExperimentId":{"type":"string"},"checkoutArmId":{"type":"string"},"checkoutTokenId":{"type":"string"},"checkoutSessionId":{"type":"string"},"routingAttempts":{"type":"array","items":{"type":"object","properties":{"service":{"type":"string"},"slugId":{"type":"string"},"provider":{"type":"string"},"state":{"type":"string"},"statusCode":{"type":"string"},"statusMessage":{"type":"string"},"failedOver":{"type":"boolean"},"skipped":{"type":"boolean"},"screened":{"type":"boolean"},"providerTxId":{"type":"string"},"extStatusCode":{"type":"string"},"statusMapping":{"type":"object","properties":{"from":{"type":"object","properties":{"statusCode":{"type":"string"},"state":{"type":"string"},"statusMessage":{"type":"string"}},"additionalProperties":false},"tableId":{"type":"string"},"tableName":{"type":"string"},"version":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"ruleId":{"type":"string"},"ruleNo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"level":{"type":"string","enum":["customer","organization"]},"source":{"type":"string","enum":["sync","callback","redirect","poll","reconciliation"]},"attemptNo":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"mappedAt":{"type":"string"}},"required":["from","level","source","mappedAt"],"additionalProperties":false,"description":"Which status mapping rule refined the provider's answer"}},"required":["service","slugId"],"additionalProperties":false}},"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["organizationId","customerId","id","createdAt","updatedAt"],"additionalProperties":false,"description":"Transaction data"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/transactions/{id}/workflow-steps":{"get":{"description":"Retrieve workflow step events for a specific transaction. Withheld in a customer context unless the organization runs as a gateway: the trace is the platform's internal processing record and names every provider it touched.","summary":"Get workflow steps for a transaction","tags":["transactions"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"timestamp":{"type":"string"},"workflowId":{"type":"string"},"workflowName":{"type":"string"},"stepName":{"type":"string"},"status":{"type":"string"},"data":{},"error":{"type":"string"},"completedAt":{"type":"string"},"durationMs":{"type":"number"},"order":{"type":"number"}},"required":["timestamp","workflowId","workflowName","stepName","status"],"additionalProperties":{},"description":"Workflow step event"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/transactions/export/csv":{"get":{"description":"Stream a CSV export of transactions matching the given filters.","summary":"Export transactions as CSV","tags":["transactions"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"customerId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"manual","in":"query","schema":{"type":"boolean"}},{"name":"dateRange","in":"query","style":"deepObject","schema":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["state","statusCode","extStatusCode","statusMessage","statusMapped","builtInStatusCode","paymentType","paymentOption","transactionType","rail","custodian","deviceType","importBatchId","appSlugId","customerName","txRefId","user.userId","customerId","user.email","user.maskedAccount","user.countryCode","user.customerRefId","amount.amt","amount.cy","txAmount.amt","baseAmount.amt","txFee.amt","provider","providerAccount","providerTxId","providerFee.amt"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/api-adaptor-definitions":{"get":{"description":"List all available API Adaptor definitions that can be configured.","summary":"List API Adaptor Definitions","tags":["apiAdaptors"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"definitions":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"slugId":{"type":"string"},"providerApiUrl":{"type":"string","format":"uri"},"subdomain":{"type":"string"},"uiMetadata":{"type":"object","properties":{"icon":{"type":"string"},"category":{"type":"string"},"description":{"type":"string"},"providerKeyLabel":{"type":"string"}},"additionalProperties":false}},"required":["name","slugId","providerApiUrl","subdomain"],"additionalProperties":false}},"apiAdaptorDomain":{"type":"string"}},"required":["definitions","apiAdaptorDomain"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/customers/{customerId}/api-adaptors":{"get":{"description":"List all API Adaptors for a customer.","summary":"List API Adaptors","tags":["apiAdaptors"],"parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"adaptorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"ownerId":{"type":"string"},"name":{"type":"string","minLength":1},"definitionSlugId":{"type":"string","minLength":1},"providerApiKey":{"type":"string","minLength":1},"applicationId":{"type":"string","minLength":1},"babelpayApiKey":{"type":"string","minLength":1},"babelpayApiUrl":{"type":"string","format":"uri"},"trafficPercentage":{"type":"integer","minimum":0,"maximum":100},"routePatterns":{"type":"array","items":{"type":"string"}},"enabled":{"type":"boolean"},"disabledFallback":{"type":"string","enum":["decline","proxy"]},"fallbackOnBabelpayFailure":{"type":"string","enum":["none","proxy","babelpay"]},"fallbackOnBabelpayDecline":{"type":"string","enum":["none","proxy","babelpay"]},"fallbackOnProxyFailure":{"type":"string","enum":["none","proxy","babelpay"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["adaptorId","ownerId","name","definitionSlugId","providerApiKey","applicationId","babelpayApiKey","babelpayApiUrl","trafficPercentage","enabled","createdAt","updatedAt"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"post":{"description":"Create a new API Adaptor for a customer.","summary":"Create API Adaptor","tags":["apiAdaptors"],"parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"definitionSlugId":{"type":"string","minLength":1},"providerApiKey":{"type":"string","minLength":1},"applicationId":{"type":"string","minLength":1},"trafficPercentage":{"type":"integer","minimum":0,"maximum":100},"routePatterns":{"type":"array","items":{"type":"string"}},"disabledFallback":{"type":"string","enum":["decline","proxy"]},"fallbackOnBabelpayFailure":{"type":"string","enum":["none","proxy","babelpay"]},"fallbackOnBabelpayDecline":{"type":"string","enum":["none","proxy","babelpay"]},"fallbackOnProxyFailure":{"type":"string","enum":["none","proxy","babelpay"]}},"required":["name","definitionSlugId","providerApiKey","applicationId","trafficPercentage"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"adaptorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"ownerId":{"type":"string"},"name":{"type":"string","minLength":1},"definitionSlugId":{"type":"string","minLength":1},"providerApiKey":{"type":"string","minLength":1},"applicationId":{"type":"string","minLength":1},"babelpayApiKey":{"type":"string","minLength":1},"babelpayApiUrl":{"type":"string","format":"uri"},"trafficPercentage":{"type":"integer","minimum":0,"maximum":100},"routePatterns":{"type":"array","items":{"type":"string"}},"enabled":{"type":"boolean"},"disabledFallback":{"type":"string","enum":["decline","proxy"]},"fallbackOnBabelpayFailure":{"type":"string","enum":["none","proxy","babelpay"]},"fallbackOnBabelpayDecline":{"type":"string","enum":["none","proxy","babelpay"]},"fallbackOnProxyFailure":{"type":"string","enum":["none","proxy","babelpay"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["adaptorId","ownerId","name","definitionSlugId","providerApiKey","applicationId","babelpayApiKey","babelpayApiUrl","trafficPercentage","enabled","createdAt","updatedAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/customers/{customerId}/api-adaptors/{adaptorId}":{"get":{"description":"Get a single API Adaptor by ID.","summary":"Get API Adaptor","tags":["apiAdaptors"],"parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"adaptorId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"adaptorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"ownerId":{"type":"string"},"name":{"type":"string","minLength":1},"definitionSlugId":{"type":"string","minLength":1},"providerApiKey":{"type":"string","minLength":1},"applicationId":{"type":"string","minLength":1},"babelpayApiKey":{"type":"string","minLength":1},"babelpayApiUrl":{"type":"string","format":"uri"},"trafficPercentage":{"type":"integer","minimum":0,"maximum":100},"routePatterns":{"type":"array","items":{"type":"string"}},"enabled":{"type":"boolean"},"disabledFallback":{"type":"string","enum":["decline","proxy"]},"fallbackOnBabelpayFailure":{"type":"string","enum":["none","proxy","babelpay"]},"fallbackOnBabelpayDecline":{"type":"string","enum":["none","proxy","babelpay"]},"fallbackOnProxyFailure":{"type":"string","enum":["none","proxy","babelpay"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["adaptorId","ownerId","name","definitionSlugId","providerApiKey","applicationId","babelpayApiKey","babelpayApiUrl","trafficPercentage","enabled","createdAt","updatedAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"patch":{"description":"Update an existing API Adaptor.","summary":"Update API Adaptor","tags":["apiAdaptors"],"parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"adaptorId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1},"definitionSlugId":{"type":"string","minLength":1},"providerApiKey":{"type":"string","minLength":1},"applicationId":{"type":"string","minLength":1},"trafficPercentage":{"type":"integer","minimum":0,"maximum":100},"routePatterns":{"type":"array","items":{"type":"string"}},"disabledFallback":{"type":"string","enum":["decline","proxy"]},"fallbackOnBabelpayFailure":{"type":"string","enum":["none","proxy","babelpay"]},"fallbackOnBabelpayDecline":{"type":"string","enum":["none","proxy","babelpay"]},"fallbackOnProxyFailure":{"type":"string","enum":["none","proxy","babelpay"]}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"adaptorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"ownerId":{"type":"string"},"name":{"type":"string","minLength":1},"definitionSlugId":{"type":"string","minLength":1},"providerApiKey":{"type":"string","minLength":1},"applicationId":{"type":"string","minLength":1},"babelpayApiKey":{"type":"string","minLength":1},"babelpayApiUrl":{"type":"string","format":"uri"},"trafficPercentage":{"type":"integer","minimum":0,"maximum":100},"routePatterns":{"type":"array","items":{"type":"string"}},"enabled":{"type":"boolean"},"disabledFallback":{"type":"string","enum":["decline","proxy"]},"fallbackOnBabelpayFailure":{"type":"string","enum":["none","proxy","babelpay"]},"fallbackOnBabelpayDecline":{"type":"string","enum":["none","proxy","babelpay"]},"fallbackOnProxyFailure":{"type":"string","enum":["none","proxy","babelpay"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["adaptorId","ownerId","name","definitionSlugId","providerApiKey","applicationId","babelpayApiKey","babelpayApiUrl","trafficPercentage","enabled","createdAt","updatedAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"description":"Delete an API Adaptor.","summary":"Delete API Adaptor","tags":["apiAdaptors"],"parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"adaptorId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"deleted":{"type":"boolean"}},"required":["deleted"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/customers/{customerId}/api-adaptors/{adaptorId}/enable":{"post":{"description":"Enable an API Adaptor.","summary":"Enable API Adaptor","tags":["apiAdaptors"],"parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"adaptorId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"adaptorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"ownerId":{"type":"string"},"name":{"type":"string","minLength":1},"definitionSlugId":{"type":"string","minLength":1},"providerApiKey":{"type":"string","minLength":1},"applicationId":{"type":"string","minLength":1},"babelpayApiKey":{"type":"string","minLength":1},"babelpayApiUrl":{"type":"string","format":"uri"},"trafficPercentage":{"type":"integer","minimum":0,"maximum":100},"routePatterns":{"type":"array","items":{"type":"string"}},"enabled":{"type":"boolean"},"disabledFallback":{"type":"string","enum":["decline","proxy"]},"fallbackOnBabelpayFailure":{"type":"string","enum":["none","proxy","babelpay"]},"fallbackOnBabelpayDecline":{"type":"string","enum":["none","proxy","babelpay"]},"fallbackOnProxyFailure":{"type":"string","enum":["none","proxy","babelpay"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["adaptorId","ownerId","name","definitionSlugId","providerApiKey","applicationId","babelpayApiKey","babelpayApiUrl","trafficPercentage","enabled","createdAt","updatedAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/customers/{customerId}/api-adaptors/{adaptorId}/disable":{"post":{"description":"Disable an API Adaptor.","summary":"Disable API Adaptor","tags":["apiAdaptors"],"parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"adaptorId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"object","properties":{"adaptorId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"ownerId":{"type":"string"},"name":{"type":"string","minLength":1},"definitionSlugId":{"type":"string","minLength":1},"providerApiKey":{"type":"string","minLength":1},"applicationId":{"type":"string","minLength":1},"babelpayApiKey":{"type":"string","minLength":1},"babelpayApiUrl":{"type":"string","format":"uri"},"trafficPercentage":{"type":"integer","minimum":0,"maximum":100},"routePatterns":{"type":"array","items":{"type":"string"}},"enabled":{"type":"boolean"},"disabledFallback":{"type":"string","enum":["decline","proxy"]},"fallbackOnBabelpayFailure":{"type":"string","enum":["none","proxy","babelpay"]},"fallbackOnBabelpayDecline":{"type":"string","enum":["none","proxy","babelpay"]},"fallbackOnProxyFailure":{"type":"string","enum":["none","proxy","babelpay"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["adaptorId","ownerId","name","definitionSlugId","providerApiKey","applicationId","babelpayApiKey","babelpayApiUrl","trafficPercentage","enabled","createdAt","updatedAt"],"additionalProperties":false}},"required":["data"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout/options":{"get":{"description":"Amounts follow the API version of the key that minted the checkout session, the same as the server API — the current version sends `{\"amt\": \"24.42\"}` as a decimal string, older ones send a JSON number. Requests accept either. Returns a list of available payment options with their required fields. Which direction they are for is the session's to decide: a session minted with `direction: \"credit\"` lists payout options (stored-card credits, derived from the session user's saved cards), and any other session lists payment options. There is no request parameter for this — the `ck_` token travels in a URL the shopper can edit, so letting the request choose would offer payout methods that `POST /checkout/credit` then refuses. A session minted with a `paymentOption` pin lists exactly that option. When the session's context has a published checkout design, the list is the design's — the variant matched from the session's own facts — so an integration rendering its own UI offers the same options as the hosted checkout.","summary":"List available payment options","tags":["checkout"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["card-debit-new","card-debit-token","card-debit-grant","card-credit-token","ideal-debit","bancontact-debit","paypal-debit","klarna-debit","pay-by-bank-debit","swish-debit","vipps-debit","mobilepay-debit","trustly-debit","paysafecard-debit","skrill-debit","neteller-debit","play-plus-debit","mifinity-debit","vip-preferred-debit","safetypay-debit","jeton-debit","eps-debit","przelewy24-debit","twint-debit","alipay-debit","blik-debit","bizum-debit","mb-way-debit","multibanco-debit","astropay-debit","pix-debit","spei-debit","oxxo-debit","pse-debit","efecty-debit","cash-at-retail-debit","local-bank-transfer-debit","interac-debit","applepay-debit","googlepay-debit","crypto-onramp-debit","crypto-accept-debit","swish-credit","trustly-credit","paysafecard-credit","skrill-credit","neteller-credit","astropay-credit","local-bank-transfer-credit","interac-credit","play-plus-credit","mifinity-credit","vip-preferred-credit","jeton-credit","paypal-credit","crypto-accept-credit","pay-by-bank-credit"],"description":"Payment option type identifier"},"paymentOption":{"description":"Canonical PSP-independent payment option this entry belongs to","type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"displayName":{"description":"User-facing display name. Always the payment option — never the underlying gateway.","type":"string"},"flow":{"description":"How the option is completed: inline card entry, a redirect that continues in the payment method's own page, a device-wallet sheet raised in the checkout page itself, or (withdrawals) a payout to a destination chosen in the page.","type":"string","enum":["inline-card","redirect","wallet","payout"]},"redirectDisplay":{"description":"How a redirect-flow option's provider page is displayed: in the checkout overlay iframe, or a popup handoff (bank/wallet pages routinely refuse framing via X-Frame-Options).","type":"string","enum":["iframe","popup"]},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Field name"},"type":{"type":"string","enum":["string","number","boolean"],"description":"Field type"},"required":{"type":"boolean","description":"Whether the field is required"},"label":{"type":"string","description":"Display label for the field"},"placeholder":{"description":"Placeholder text","type":"string"},"regex":{"description":"Validation regex pattern","type":"string"}},"required":["name","type","required","label"],"additionalProperties":false,"description":"Schema for a payment option field"},"description":"Fields required for this payment option"},"icon":{"description":"Icon URL or name","type":"string"},"wallet":{"description":"Setup for a `wallet`-flow option's sheet, filled in by the routed provider","type":"object","properties":{"environment":{"type":"string","enum":["TEST","PRODUCTION"],"description":"Wallet environment the provider's credentials belong to"},"merchantName":{"type":"string","maxLength":128,"description":"Name the sheet shows the shopper as the payee"},"countryCode":{"type":"string","minLength":2,"maxLength":2,"description":"Merchant country, ISO 3166-1 alpha-2"},"supportedNetworks":{"minItems":1,"type":"array","items":{"type":"string","maxLength":32},"description":"Card networks the processor accepts, in the wallet's vocabulary"},"merchantCapabilities":{"description":"Apple Pay merchant capabilities (e.g. supports3DS)","type":"array","items":{"type":"string","maxLength":32}},"allowedAuthMethods":{"description":"Google Pay auth methods (e.g. PAN_ONLY, CRYPTOGRAM_3DS)","type":"array","items":{"type":"string","maxLength":32}},"gateway":{"description":"Google Pay gateway identifier — opaque to the checkout","type":"string","maxLength":64},"gatewayMerchantId":{"description":"Google Pay gateway merchant id — opaque to the checkout","type":"string","maxLength":128},"merchantId":{"description":"Google Pay merchant id issued by Google, required in PRODUCTION","type":"string","maxLength":128},"requiresMerchantSession":{"description":"Apple Pay: the page must call POST /checkout/wallet/session to validate the merchant before the sheet can proceed","type":"boolean"},"vault":{"description":"Set when a card vault, not the processor, decrypts the wallet token: the page raises the sheet through the vault's wallet component and posts back a network token","type":"object","properties":{"provider":{"type":"string","const":"evervault","description":"Card vault whose wallet component raises the sheet"},"teamId":{"type":"string","minLength":1,"maxLength":64,"description":"Evervault team id (public)"},"appId":{"type":"string","minLength":1,"maxLength":64,"description":"Evervault app id (public); the app whose key encrypts the network token"},"merchantId":{"type":"string","minLength":1,"maxLength":128,"description":"Evervault merchant id the wallet transaction is created under"}},"required":["provider","teamId","appId","merchantId"],"additionalProperties":false}},"required":["environment","merchantName","countryCode","supportedNetworks"],"additionalProperties":false},"payoutInstrument":{"description":"Withdrawals: the shopper's payout destination this entry pays to","type":"object","properties":{"id":{"type":"string","description":"What a withdrawal names as `instrumentId`"},"kind":{"type":"string","enum":["iban","wallet"],"description":"A bank account, or an account or wallet at the payment method"},"masked":{"type":"string","description":"The destination as the shopper may see it: a masked IBAN, a masked phone or email"},"holderName":{"description":"The account holder, when known","type":"string"}},"required":["id","kind","masked"],"additionalProperties":false}},"required":["type","fields"],"additionalProperties":false,"description":"Schema for a payment option"},"example":[{"type":"card-debit-new","paymentOption":"card","displayName":"Card","flow":"inline-card","fields":[{"name":"encCardNumber","type":"string","required":true,"label":"Card number"},{"name":"encCvv","type":"string","required":true,"label":"CVV"},{"name":"expiryMonth","type":"number","required":true,"label":"Expiry month"},{"name":"expiryYear","type":"number","required":true,"label":"Expiry year"},{"name":"cardholderName","type":"string","required":false,"label":"Cardholder name"}]},{"type":"card-debit-token","paymentOption":"card","displayName":"Saved card","flow":"inline-card","fields":[{"name":"encCvv","type":"string","required":true,"label":"CVV"}],"icon":"{\"tokenId\":\"tok_7f3a…\",\"maskedCard\":\"424242••••4242\",\"expiryMonth\":\"12\",\"expiryYear\":\"2030\",\"cardBrand\":\"VISA\"}"},{"type":"ideal-debit","paymentOption":"ideal","displayName":"iDEAL","flow":"redirect","fields":[],"icon":"ideal"}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout/appearance":{"get":{"description":"Returns the merchant appearance (design tokens and snapshotted custom CSS) frozen into this checkout session at token creation. Empty object when the session has no appearance overrides.","summary":"Get session appearance","tags":["checkout"],"parameters":[],"responses":{"200":{"description":"Resolved appearance for the current checkout session","content":{"application/json":{"schema":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"description":"Type scale, heading weight, letter spacing and — when a checkout design serves the session — its uploaded font","type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"description":"Logo height and alignment and — when a checkout design serves the session — its uploaded logo","type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Resolved appearance for the current checkout session","example":{"colors":{"background":"#101014","surface":"#1c1c24","accent":"#e8590c","textPrimary":"#ffffff"},"logoUrl":"https://your-domain.com/logo.svg","cornerRadius":"lg","fontFamily":"system"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout/presentation":{"get":{"description":"Everything the hosted checkout needs to render this session in one call: the resolved theme, layout, copy overrides and the offered payment options in display order. When the session's context has a published checkout design, its matching variant decides all of it and the result is frozen into the session (later calls return the same variant). Otherwise the standard checkout is described — card (or the mint's pinned option), the session's appearance as theme. Used by the hosted checkout; integrations rendering their own UI keep using `GET /options` and `GET /appearance`.","summary":"Get the checkout presentation","tags":["checkout"],"parameters":[{"name":"x-bp-shopper-facts","in":"header","description":"Hosted checkout only: base64url shopper facts (device, IP country, locale, embed mode)","schema":{"type":"string"}},{"name":"x-bp-shopper-facts-sig","in":"header","description":"Hosted checkout only: signature over x-bp-shopper-facts; unsigned or invalid facts are ignored","schema":{"type":"string"}}],"responses":{"200":{"description":"Resolved checkout presentation for this session","content":{"application/json":{"schema":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"default":true,"description":"Promote, preselect and badge the shopper's last-used option (default true)","type":"boolean"},"lastUsedCount":{"default":1,"description":"How many of the shopper's most recently used options lead the list (1-3)","type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"default":["VISA","MASTERCARD","AMEX"],"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"required":["fieldLayout","showCardholderName","showSaveCard","showBrandIcons","brandIcons"],"additionalProperties":false},"showResult":{"default":true,"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"required":["template","optionsDisplay","maxVisibleOptions","preselect","promoteLastUsed","lastUsedCount","sections","cardForm","showResult"],"additionalProperties":false,"description":"Resolved checkout layout"},"content":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"options":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["card-debit-new","card-debit-token","card-debit-grant","card-credit-token","ideal-debit","bancontact-debit","paypal-debit","klarna-debit","pay-by-bank-debit","swish-debit","vipps-debit","mobilepay-debit","trustly-debit","paysafecard-debit","skrill-debit","neteller-debit","play-plus-debit","mifinity-debit","vip-preferred-debit","safetypay-debit","jeton-debit","eps-debit","przelewy24-debit","twint-debit","alipay-debit","blik-debit","bizum-debit","mb-way-debit","multibanco-debit","astropay-debit","pix-debit","spei-debit","oxxo-debit","pse-debit","efecty-debit","cash-at-retail-debit","local-bank-transfer-debit","interac-debit","applepay-debit","googlepay-debit","crypto-onramp-debit","crypto-accept-debit","swish-credit","trustly-credit","paysafecard-credit","skrill-credit","neteller-credit","astropay-credit","local-bank-transfer-credit","interac-credit","play-plus-credit","mifinity-credit","vip-preferred-credit","jeton-credit","paypal-credit","crypto-accept-credit","pay-by-bank-credit"],"description":"Payment option type identifier"},"paymentOption":{"description":"Canonical PSP-independent payment option this entry belongs to","type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"displayName":{"description":"User-facing display name. Always the payment option — never the underlying gateway.","type":"string"},"flow":{"description":"How the option is completed: inline card entry, a redirect that continues in the payment method's own page, a device-wallet sheet raised in the checkout page itself, or (withdrawals) a payout to a destination chosen in the page.","type":"string","enum":["inline-card","redirect","wallet","payout"]},"redirectDisplay":{"description":"How a redirect-flow option's provider page is displayed: in the checkout overlay iframe, or a popup handoff (bank/wallet pages routinely refuse framing via X-Frame-Options).","type":"string","enum":["iframe","popup"]},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Field name"},"type":{"type":"string","enum":["string","number","boolean"],"description":"Field type"},"required":{"type":"boolean","description":"Whether the field is required"},"label":{"type":"string","description":"Display label for the field"},"placeholder":{"description":"Placeholder text","type":"string"},"regex":{"description":"Validation regex pattern","type":"string"}},"required":["name","type","required","label"],"additionalProperties":false,"description":"Schema for a payment option field"},"description":"Fields required for this payment option"},"icon":{"description":"Icon URL or name","type":"string"},"wallet":{"description":"Setup for a `wallet`-flow option's sheet, filled in by the routed provider","type":"object","properties":{"environment":{"type":"string","enum":["TEST","PRODUCTION"],"description":"Wallet environment the provider's credentials belong to"},"merchantName":{"type":"string","maxLength":128,"description":"Name the sheet shows the shopper as the payee"},"countryCode":{"type":"string","minLength":2,"maxLength":2,"description":"Merchant country, ISO 3166-1 alpha-2"},"supportedNetworks":{"minItems":1,"type":"array","items":{"type":"string","maxLength":32},"description":"Card networks the processor accepts, in the wallet's vocabulary"},"merchantCapabilities":{"description":"Apple Pay merchant capabilities (e.g. supports3DS)","type":"array","items":{"type":"string","maxLength":32}},"allowedAuthMethods":{"description":"Google Pay auth methods (e.g. PAN_ONLY, CRYPTOGRAM_3DS)","type":"array","items":{"type":"string","maxLength":32}},"gateway":{"description":"Google Pay gateway identifier — opaque to the checkout","type":"string","maxLength":64},"gatewayMerchantId":{"description":"Google Pay gateway merchant id — opaque to the checkout","type":"string","maxLength":128},"merchantId":{"description":"Google Pay merchant id issued by Google, required in PRODUCTION","type":"string","maxLength":128},"requiresMerchantSession":{"description":"Apple Pay: the page must call POST /checkout/wallet/session to validate the merchant before the sheet can proceed","type":"boolean"},"vault":{"description":"Set when a card vault, not the processor, decrypts the wallet token: the page raises the sheet through the vault's wallet component and posts back a network token","type":"object","properties":{"provider":{"type":"string","const":"evervault","description":"Card vault whose wallet component raises the sheet"},"teamId":{"type":"string","minLength":1,"maxLength":64,"description":"Evervault team id (public)"},"appId":{"type":"string","minLength":1,"maxLength":64,"description":"Evervault app id (public); the app whose key encrypts the network token"},"merchantId":{"type":"string","minLength":1,"maxLength":128,"description":"Evervault merchant id the wallet transaction is created under"}},"required":["provider","teamId","appId","merchantId"],"additionalProperties":false}},"required":["environment","merchantName","countryCode","supportedNetworks"],"additionalProperties":false},"payoutInstrument":{"description":"Withdrawals: the shopper's payout destination this entry pays to","type":"object","properties":{"id":{"type":"string","description":"What a withdrawal names as `instrumentId`"},"kind":{"type":"string","enum":["iban","wallet"],"description":"A bank account, or an account or wallet at the payment method"},"masked":{"type":"string","description":"The destination as the shopper may see it: a masked IBAN, a masked phone or email"},"holderName":{"description":"The account holder, when known","type":"string"}},"required":["id","kind","masked"],"additionalProperties":false},"presentation":{"type":"object","properties":{"label":{"type":"string"},"description":{"type":"string"},"badge":{"type":"string"},"placement":{"type":"string","enum":["express","list"]},"lastUsed":{"type":"boolean"}},"required":["placement"],"additionalProperties":false}},"required":["type","fields"],"additionalProperties":false}},"meta":{"type":"object","properties":{"checkoutId":{"type":"string"},"versionId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"variantId":{"type":"string"},"variantName":{"type":"string"},"preview":{"type":"boolean"},"viewToken":{"type":"string"},"clientEventsEnabled":{"type":"boolean"},"lastUsed":{"type":"object","properties":{"option":{"type":"string"},"tokenId":{"type":"string"},"promoted":{"type":"boolean"}},"required":["option","promoted"],"additionalProperties":false},"pinnedOption":{"type":"string"},"experimentId":{"type":"string"},"armId":{"type":"string"},"autoOrdered":{"type":"boolean"}},"additionalProperties":false},"tagManager":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"maxLength":32},"consentDefault":{"type":"string","enum":["denied","granted"]}},"required":["containerId"],"additionalProperties":false}},"required":["theme","layout","content","options","meta"],"additionalProperties":false,"description":"Resolved checkout presentation for this session"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout/page":{"get":{"description":"`GET /options` and `GET /appearance` in one response — `{ options, appearance }`, each exactly what its own endpoint returns. A page that renders both on load should use this: one request authenticates the session once and waits on one answer instead of two.","summary":"Get options and appearance together","tags":["checkout"],"parameters":[],"responses":{"200":{"description":"Everything a checkout page needs to render its first screen","content":{"application/json":{"schema":{"type":"object","properties":{"options":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["card-debit-new","card-debit-token","card-debit-grant","card-credit-token","ideal-debit","bancontact-debit","paypal-debit","klarna-debit","pay-by-bank-debit","swish-debit","vipps-debit","mobilepay-debit","trustly-debit","paysafecard-debit","skrill-debit","neteller-debit","play-plus-debit","mifinity-debit","vip-preferred-debit","safetypay-debit","jeton-debit","eps-debit","przelewy24-debit","twint-debit","alipay-debit","blik-debit","bizum-debit","mb-way-debit","multibanco-debit","astropay-debit","pix-debit","spei-debit","oxxo-debit","pse-debit","efecty-debit","cash-at-retail-debit","local-bank-transfer-debit","interac-debit","applepay-debit","googlepay-debit","crypto-onramp-debit","crypto-accept-debit","swish-credit","trustly-credit","paysafecard-credit","skrill-credit","neteller-credit","astropay-credit","local-bank-transfer-credit","interac-credit","play-plus-credit","mifinity-credit","vip-preferred-credit","jeton-credit","paypal-credit","crypto-accept-credit","pay-by-bank-credit"],"description":"Payment option type identifier"},"paymentOption":{"description":"Canonical PSP-independent payment option this entry belongs to","type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"displayName":{"description":"User-facing display name. Always the payment option — never the underlying gateway.","type":"string"},"flow":{"description":"How the option is completed: inline card entry, a redirect that continues in the payment method's own page, a device-wallet sheet raised in the checkout page itself, or (withdrawals) a payout to a destination chosen in the page.","type":"string","enum":["inline-card","redirect","wallet","payout"]},"redirectDisplay":{"description":"How a redirect-flow option's provider page is displayed: in the checkout overlay iframe, or a popup handoff (bank/wallet pages routinely refuse framing via X-Frame-Options).","type":"string","enum":["iframe","popup"]},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Field name"},"type":{"type":"string","enum":["string","number","boolean"],"description":"Field type"},"required":{"type":"boolean","description":"Whether the field is required"},"label":{"type":"string","description":"Display label for the field"},"placeholder":{"description":"Placeholder text","type":"string"},"regex":{"description":"Validation regex pattern","type":"string"}},"required":["name","type","required","label"],"additionalProperties":false,"description":"Schema for a payment option field"},"description":"Fields required for this payment option"},"icon":{"description":"Icon URL or name","type":"string"},"wallet":{"description":"Setup for a `wallet`-flow option's sheet, filled in by the routed provider","type":"object","properties":{"environment":{"type":"string","enum":["TEST","PRODUCTION"],"description":"Wallet environment the provider's credentials belong to"},"merchantName":{"type":"string","maxLength":128,"description":"Name the sheet shows the shopper as the payee"},"countryCode":{"type":"string","minLength":2,"maxLength":2,"description":"Merchant country, ISO 3166-1 alpha-2"},"supportedNetworks":{"minItems":1,"type":"array","items":{"type":"string","maxLength":32},"description":"Card networks the processor accepts, in the wallet's vocabulary"},"merchantCapabilities":{"description":"Apple Pay merchant capabilities (e.g. supports3DS)","type":"array","items":{"type":"string","maxLength":32}},"allowedAuthMethods":{"description":"Google Pay auth methods (e.g. PAN_ONLY, CRYPTOGRAM_3DS)","type":"array","items":{"type":"string","maxLength":32}},"gateway":{"description":"Google Pay gateway identifier — opaque to the checkout","type":"string","maxLength":64},"gatewayMerchantId":{"description":"Google Pay gateway merchant id — opaque to the checkout","type":"string","maxLength":128},"merchantId":{"description":"Google Pay merchant id issued by Google, required in PRODUCTION","type":"string","maxLength":128},"requiresMerchantSession":{"description":"Apple Pay: the page must call POST /checkout/wallet/session to validate the merchant before the sheet can proceed","type":"boolean"},"vault":{"description":"Set when a card vault, not the processor, decrypts the wallet token: the page raises the sheet through the vault's wallet component and posts back a network token","type":"object","properties":{"provider":{"type":"string","const":"evervault","description":"Card vault whose wallet component raises the sheet"},"teamId":{"type":"string","minLength":1,"maxLength":64,"description":"Evervault team id (public)"},"appId":{"type":"string","minLength":1,"maxLength":64,"description":"Evervault app id (public); the app whose key encrypts the network token"},"merchantId":{"type":"string","minLength":1,"maxLength":128,"description":"Evervault merchant id the wallet transaction is created under"}},"required":["provider","teamId","appId","merchantId"],"additionalProperties":false}},"required":["environment","merchantName","countryCode","supportedNetworks"],"additionalProperties":false},"payoutInstrument":{"description":"Withdrawals: the shopper's payout destination this entry pays to","type":"object","properties":{"id":{"type":"string","description":"What a withdrawal names as `instrumentId`"},"kind":{"type":"string","enum":["iban","wallet"],"description":"A bank account, or an account or wallet at the payment method"},"masked":{"type":"string","description":"The destination as the shopper may see it: a masked IBAN, a masked phone or email"},"holderName":{"description":"The account holder, when known","type":"string"}},"required":["id","kind","masked"],"additionalProperties":false}},"required":["type","fields"],"additionalProperties":false,"description":"Schema for a payment option"},"example":[{"type":"card-debit-new","paymentOption":"card","displayName":"Card","flow":"inline-card","fields":[{"name":"encCardNumber","type":"string","required":true,"label":"Card number"},{"name":"encCvv","type":"string","required":true,"label":"CVV"},{"name":"expiryMonth","type":"number","required":true,"label":"Expiry month"},{"name":"expiryYear","type":"number","required":true,"label":"Expiry year"},{"name":"cardholderName","type":"string","required":false,"label":"Cardholder name"}]},{"type":"card-debit-token","paymentOption":"card","displayName":"Saved card","flow":"inline-card","fields":[{"name":"encCvv","type":"string","required":true,"label":"CVV"}],"icon":"{\"tokenId\":\"tok_7f3a…\",\"maskedCard\":\"424242••••4242\",\"expiryMonth\":\"12\",\"expiryYear\":\"2030\",\"cardBrand\":\"VISA\"}"},{"type":"ideal-debit","paymentOption":"ideal","displayName":"iDEAL","flow":"redirect","fields":[],"icon":"ideal"}]},"appearance":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"description":"Type scale, heading weight, letter spacing and — when a checkout design serves the session — its uploaded font","type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"description":"Logo height and alignment and — when a checkout design serves the session — its uploaded logo","type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Resolved appearance for the current checkout session","example":{"colors":{"background":"#101014","surface":"#1c1c24","accent":"#e8590c","textPrimary":"#ffffff"},"logoUrl":"https://your-domain.com/logo.svg","cornerRadius":"lg","fontFamily":"system"}}},"required":["options","appearance"],"additionalProperties":false,"description":"Everything a checkout page needs to render its first screen"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout/debit":{"post":{"description":"Processes a debit payment using the checkout API.","summary":"Process debit payment","tags":["checkout"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"card-debit-new"},"encCardNumber":{"type":"string","minLength":1,"maxLength":256,"description":"Encrypted card number"},"encCvv":{"type":"string","minLength":1,"maxLength":256,"description":"Encrypted CVV"},"expiryMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Card expiry month (1-12)"},"expiryYear":{"type":"integer","minimum":1970,"maximum":2100,"description":"Card expiry year (4 digits)"},"cardholderName":{"type":"string","minLength":1,"maxLength":100,"description":"Name of the cardholder as it appears on the card"},"save":{"description":"Save card for future payments","type":"boolean"}},"required":["amount","paymentType","encCardNumber","encCvv","expiryMonth","expiryYear","cardholderName"],"description":"Checkout payload for a new card debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"card-debit-token"},"tokenId":{"type":"string","minLength":1,"maxLength":256,"description":"Stored card token ID to debit"},"encCvv":{"type":"string","minLength":1,"maxLength":256,"description":"Encrypted CVV"},"expiryMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Card expiry month (1-12)"},"expiryYear":{"type":"integer","minimum":1970,"maximum":2100,"description":"Card expiry year (4 digits)"}},"required":["amount","paymentType","tokenId","encCvv"],"description":"Checkout payload for a tokenized card debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"card-debit-grant"},"grantId":{"type":"string","minLength":1,"maxLength":64,"description":"The handed-on card's id, as the session's options list it"},"encCvv":{"description":"Encrypted CVV, when the handed-on card does not carry one","type":"string","minLength":1,"maxLength":256}},"required":["amount","paymentType","grantId"],"description":"Checkout payload for a card handed on from another merchant"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"ideal-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for an iDEAL debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"bancontact-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Bancontact debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"paypal-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a PayPal debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"klarna-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Klarna debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"pay-by-bank-debit"},"country":{"description":"Bank country","type":"string","minLength":2,"maxLength":2}},"required":["amount","paymentType"],"description":"Checkout payload for a Pay by Bank (open banking) debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"swish-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Swish debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"vipps-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Vipps debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"mobilepay-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a MobilePay debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"trustly-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Trustly debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"paysafecard-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Paysafecard debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"skrill-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Skrill debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"neteller-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Neteller debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"play-plus-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Play+ debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"mifinity-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a MiFinity debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"vip-preferred-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a VIP Preferred debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"safetypay-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a SafetyPay debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"jeton-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Jeton Wallet debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"eps-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for an eps debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"przelewy24-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Przelewy24 debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"twint-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a TWINT debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"alipay-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for an Alipay debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"blik-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a BLIK debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"bizum-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Bizum debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"mb-way-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for an MB WAY debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"multibanco-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Multibanco reference"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"astropay-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for an AstroPay debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"pix-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Pix debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"spei-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a SPEI debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"oxxo-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for an OXXO cash voucher"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"pse-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a PSE debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"efecty-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for an Efecty cash voucher"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"cash-at-retail-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for cash at a store"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"local-bank-transfer-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a local bank transfer"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"interac-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for an Interac payment"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"applepay-debit"},"wallet":{"type":"object","properties":{"token":{"description":"Opaque, processor-encrypted wallet payment token","type":"string","minLength":1,"maxLength":65536},"networkToken":{"description":"Vault-encrypted network token, when a card vault decrypted the wallet's token","type":"object","properties":{"number":{"type":"string","maxLength":4096,"description":"Vault-encrypted device account number (DPAN)"},"expiryMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Card expiry month (1-12)"},"expiryYear":{"type":"integer","minimum":1970,"maximum":2100,"description":"Card expiry year (4 digits)"},"cryptogram":{"type":"string","maxLength":4096,"description":"Vault-encrypted online payment cryptogram (TAVV / DSRP)"},"eci":{"description":"Electronic commerce indicator, when the wallet supplied one","type":"string","pattern":"^\\d{1,2}$"},"deviceManufacturerIdentifier":{"description":"Apple Pay's hex device manufacturer identifier, when the vault reported one (not card data)","type":"string","pattern":"^[0-9A-Fa-f]{1,64}$"}},"required":["number","expiryMonth","expiryYear","cryptogram"]},"card":{"description":"Vault-encrypted card on file, when a card vault decrypted a PAN_ONLY wallet token","type":"object","properties":{"number":{"type":"string","maxLength":4096,"description":"Vault-encrypted card number (FPAN)"},"expiryMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Card expiry month (1-12)"},"expiryYear":{"type":"integer","minimum":1970,"maximum":2100,"description":"Card expiry year (4 digits)"}},"required":["number","expiryMonth","expiryYear"]},"network":{"description":"Card network the wallet reported","type":"string","maxLength":32},"lastFour":{"description":"Last four of the device account number","type":"string","maxLength":4},"displayName":{"description":"Card description the wallet showed the shopper","type":"string","maxLength":64}},"description":"Payment credential returned by a device wallet"}},"required":["amount","paymentType"],"description":"Checkout payload for an Apple Pay debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"googlepay-debit"},"wallet":{"type":"object","properties":{"token":{"description":"Opaque, processor-encrypted wallet payment token","type":"string","minLength":1,"maxLength":65536},"networkToken":{"description":"Vault-encrypted network token, when a card vault decrypted the wallet's token","type":"object","properties":{"number":{"type":"string","maxLength":4096,"description":"Vault-encrypted device account number (DPAN)"},"expiryMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Card expiry month (1-12)"},"expiryYear":{"type":"integer","minimum":1970,"maximum":2100,"description":"Card expiry year (4 digits)"},"cryptogram":{"type":"string","maxLength":4096,"description":"Vault-encrypted online payment cryptogram (TAVV / DSRP)"},"eci":{"description":"Electronic commerce indicator, when the wallet supplied one","type":"string","pattern":"^\\d{1,2}$"},"deviceManufacturerIdentifier":{"description":"Apple Pay's hex device manufacturer identifier, when the vault reported one (not card data)","type":"string","pattern":"^[0-9A-Fa-f]{1,64}$"}},"required":["number","expiryMonth","expiryYear","cryptogram"]},"card":{"description":"Vault-encrypted card on file, when a card vault decrypted a PAN_ONLY wallet token","type":"object","properties":{"number":{"type":"string","maxLength":4096,"description":"Vault-encrypted card number (FPAN)"},"expiryMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Card expiry month (1-12)"},"expiryYear":{"type":"integer","minimum":1970,"maximum":2100,"description":"Card expiry year (4 digits)"}},"required":["number","expiryMonth","expiryYear"]},"network":{"description":"Card network the wallet reported","type":"string","maxLength":32},"lastFour":{"description":"Last four of the device account number","type":"string","maxLength":4},"displayName":{"description":"Card description the wallet showed the shopper","type":"string","maxLength":64}},"description":"Payment credential returned by a device wallet"}},"required":["amount","paymentType"],"description":"Checkout payload for a Google Pay debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"crypto-onramp-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a crypto onramp debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"crypto-accept-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a crypto (own wallet) debit"}],"description":"Request schema for checkout debit","example":{"paymentType":"card-debit-new","amount":{"amt":"24.42","cy":"EUR"},"encCardNumber":"ev:Tk9D:A7x…:$","encCvv":"ev:Tk9D:Q2v…:$","expiryMonth":12,"expiryYear":2030,"cardholderName":"Arthur Dent","save":true}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"redirectUrl":{"type":"string","format":"uri"},"paymentOption":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}},"required":["id"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout/credit":{"post":{"description":"Processes a credit payment using the checkout API.","summary":"Process credit payment","tags":["checkout"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"card-credit-token"},"tokenId":{"type":"string","minLength":1,"maxLength":256,"description":"Stored card token ID to credit"}},"required":["amount","paymentType","tokenId"],"description":"Checkout payload for a tokenized card credit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"swish-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal to Swish"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"trustly-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal with Trustly"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"paysafecard-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal to Paysafecard"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"skrill-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal to Skrill"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"neteller-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal to Neteller"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"astropay-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal to AstroPay"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"local-bank-transfer-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal to a local bank account"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"interac-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal by Interac e-Transfer"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"play-plus-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal to Play+"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"mifinity-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal to MiFinity"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"vip-preferred-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal with VIP Preferred"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"jeton-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal to Jeton"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"paypal-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal to PayPal"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"crypto-accept-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"},"network":{"description":"Coin and network","type":"string","pattern":"^[A-Z0-9]{2,8}(-[A-Z0-9]{3,10})?$"},"address":{"description":"Wallet address","type":"string","minLength":20,"maxLength":128,"pattern":"^[A-Za-z0-9:]+$"},"tag":{"description":"Destination tag","type":"string","pattern":"^\\d{1,10}$"}},"required":["amount","paymentType"],"description":"Checkout payload for a withdrawal in crypto"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"pay-by-bank-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"},"iban":{"description":"IBAN","type":"string","minLength":15,"maxLength":42,"pattern":"^[A-Za-z]{2}[0-9]{2}[A-Za-z0-9 ]{11,38}$"},"holderName":{"description":"Account holder","type":"string","minLength":1,"maxLength":140}},"required":["amount","paymentType"],"description":"Checkout payload for a withdrawal to a bank account"}],"description":"Request schema for checkout credit","example":{"paymentType":"card-credit-token","amount":{"amt":"50","cy":"EUR"},"tokenId":"tok_7f3a…","txRefId":"payout-20881"}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"redirectUrl":{"type":"string","format":"uri"},"paymentOption":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}},"required":["id"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout/wallet/session":{"post":{"description":"Apple Pay asks the page to prove the merchant is entitled to take a payment on this domain, and only the holder of the Apple Pay merchant identity certificate can answer. The page relays the wallet's one-time `validationUrl` here and the provider routed for this session answers with its own certificate, so the checkout never handles wallet credentials of any kind. Returns the merchant session verbatim, for `completeMerchantValidation`. Google Pay needs no such step and is rejected here.","summary":"Validate a device-wallet merchant session","tags":["checkout"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"option":{"type":"string","enum":["apple-pay","google-pay"],"description":"Which wallet is asking"},"validationUrl":{"type":"string","maxLength":512,"format":"uri","description":"Validation URL the wallet supplied"},"initiativeContext":{"description":"Domain the sheet is running on; defaults to the checkout host","type":"string","maxLength":255}},"required":["option","validationUrl"],"description":"Request schema for a wallet merchant session","example":{"option":"apple-pay","validationUrl":"https://apple-pay-gateway.apple.com/paymentservices/paymentSession","initiativeContext":"checkout.wardenpay.com"}}}}},"responses":{"200":{"description":"Response schema for a wallet merchant session","content":{"application/json":{"schema":{"type":"object","properties":{"merchantSession":{"type":"string","description":"Opaque merchant session JSON, passed straight to the wallet"}},"required":["merchantSession"],"additionalProperties":false,"description":"Response schema for a wallet merchant session"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout/status/{id}":{"get":{"description":"Get the status of a checkout payment transaction by its ID.","summary":"Get payment status","tags":["checkout"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"number","minimum":-1000000000,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"redirectUrl":{"type":"string","format":"uri"},"paymentOption":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}},"required":["id"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout/revoke/{tokenId}":{"delete":{"description":"Marks a saved card as revoked and removes encrypted data.","summary":"Revoke a saved card","tags":["checkout"],"parameters":[{"name":"tokenId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response schema for checkout revoke","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the revocation was successful"}},"required":["success"],"additionalProperties":false,"description":"Response schema for checkout revoke","example":{"success":true}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/checkout/options":{"get":{"description":"Amounts follow the API version of the key that minted the checkout session, the same as the server API — the current version sends `{\"amt\": \"24.42\"}` as a decimal string, older ones send a JSON number. Requests accept either. Returns a list of available payment options with their required fields. Which direction they are for is the session's to decide: a session minted with `direction: \"credit\"` lists payout options (stored-card credits, derived from the session user's saved cards), and any other session lists payment options. There is no request parameter for this — the `ck_` token travels in a URL the shopper can edit, so letting the request choose would offer payout methods that `POST /checkout/credit` then refuses. A session minted with a `paymentOption` pin lists exactly that option. When the session's context has a published checkout design, the list is the design's — the variant matched from the session's own facts — so an integration rendering its own UI offers the same options as the hosted checkout.","summary":"List available payment options","tags":["checkoutV2"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["card-debit-new","card-debit-token","card-debit-grant","card-credit-token","ideal-debit","bancontact-debit","paypal-debit","klarna-debit","pay-by-bank-debit","swish-debit","vipps-debit","mobilepay-debit","trustly-debit","paysafecard-debit","skrill-debit","neteller-debit","play-plus-debit","mifinity-debit","vip-preferred-debit","safetypay-debit","jeton-debit","eps-debit","przelewy24-debit","twint-debit","alipay-debit","blik-debit","bizum-debit","mb-way-debit","multibanco-debit","astropay-debit","pix-debit","spei-debit","oxxo-debit","pse-debit","efecty-debit","cash-at-retail-debit","local-bank-transfer-debit","interac-debit","applepay-debit","googlepay-debit","crypto-onramp-debit","crypto-accept-debit","swish-credit","trustly-credit","paysafecard-credit","skrill-credit","neteller-credit","astropay-credit","local-bank-transfer-credit","interac-credit","play-plus-credit","mifinity-credit","vip-preferred-credit","jeton-credit","paypal-credit","crypto-accept-credit","pay-by-bank-credit"],"description":"Payment option type identifier"},"paymentOption":{"description":"Canonical PSP-independent payment option this entry belongs to","type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"displayName":{"description":"User-facing display name. Always the payment option — never the underlying gateway.","type":"string"},"flow":{"description":"How the option is completed: inline card entry, a redirect that continues in the payment method's own page, a device-wallet sheet raised in the checkout page itself, or (withdrawals) a payout to a destination chosen in the page.","type":"string","enum":["inline-card","redirect","wallet","payout"]},"redirectDisplay":{"description":"How a redirect-flow option's provider page is displayed: in the checkout overlay iframe, or a popup handoff (bank/wallet pages routinely refuse framing via X-Frame-Options).","type":"string","enum":["iframe","popup"]},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Field name"},"type":{"type":"string","enum":["string","number","boolean"],"description":"Field type"},"required":{"type":"boolean","description":"Whether the field is required"},"label":{"type":"string","description":"Display label for the field"},"placeholder":{"description":"Placeholder text","type":"string"},"regex":{"description":"Validation regex pattern","type":"string"}},"required":["name","type","required","label"],"additionalProperties":false,"description":"Schema for a payment option field"},"description":"Fields required for this payment option"},"icon":{"description":"Icon URL or name","type":"string"},"wallet":{"description":"Setup for a `wallet`-flow option's sheet, filled in by the routed provider","type":"object","properties":{"environment":{"type":"string","enum":["TEST","PRODUCTION"],"description":"Wallet environment the provider's credentials belong to"},"merchantName":{"type":"string","maxLength":128,"description":"Name the sheet shows the shopper as the payee"},"countryCode":{"type":"string","minLength":2,"maxLength":2,"description":"Merchant country, ISO 3166-1 alpha-2"},"supportedNetworks":{"minItems":1,"type":"array","items":{"type":"string","maxLength":32},"description":"Card networks the processor accepts, in the wallet's vocabulary"},"merchantCapabilities":{"description":"Apple Pay merchant capabilities (e.g. supports3DS)","type":"array","items":{"type":"string","maxLength":32}},"allowedAuthMethods":{"description":"Google Pay auth methods (e.g. PAN_ONLY, CRYPTOGRAM_3DS)","type":"array","items":{"type":"string","maxLength":32}},"gateway":{"description":"Google Pay gateway identifier — opaque to the checkout","type":"string","maxLength":64},"gatewayMerchantId":{"description":"Google Pay gateway merchant id — opaque to the checkout","type":"string","maxLength":128},"merchantId":{"description":"Google Pay merchant id issued by Google, required in PRODUCTION","type":"string","maxLength":128},"requiresMerchantSession":{"description":"Apple Pay: the page must call POST /checkout/wallet/session to validate the merchant before the sheet can proceed","type":"boolean"},"vault":{"description":"Set when a card vault, not the processor, decrypts the wallet token: the page raises the sheet through the vault's wallet component and posts back a network token","type":"object","properties":{"provider":{"type":"string","const":"evervault","description":"Card vault whose wallet component raises the sheet"},"teamId":{"type":"string","minLength":1,"maxLength":64,"description":"Evervault team id (public)"},"appId":{"type":"string","minLength":1,"maxLength":64,"description":"Evervault app id (public); the app whose key encrypts the network token"},"merchantId":{"type":"string","minLength":1,"maxLength":128,"description":"Evervault merchant id the wallet transaction is created under"}},"required":["provider","teamId","appId","merchantId"],"additionalProperties":false}},"required":["environment","merchantName","countryCode","supportedNetworks"],"additionalProperties":false},"payoutInstrument":{"description":"Withdrawals: the shopper's payout destination this entry pays to","type":"object","properties":{"id":{"type":"string","description":"What a withdrawal names as `instrumentId`"},"kind":{"type":"string","enum":["iban","wallet"],"description":"A bank account, or an account or wallet at the payment method"},"masked":{"type":"string","description":"The destination as the shopper may see it: a masked IBAN, a masked phone or email"},"holderName":{"description":"The account holder, when known","type":"string"}},"required":["id","kind","masked"],"additionalProperties":false}},"required":["type","fields"],"additionalProperties":false,"description":"Schema for a payment option"},"example":[{"type":"card-debit-new","paymentOption":"card","displayName":"Card","flow":"inline-card","fields":[{"name":"encCardNumber","type":"string","required":true,"label":"Card number"},{"name":"encCvv","type":"string","required":true,"label":"CVV"},{"name":"expiryMonth","type":"number","required":true,"label":"Expiry month"},{"name":"expiryYear","type":"number","required":true,"label":"Expiry year"},{"name":"cardholderName","type":"string","required":false,"label":"Cardholder name"}]},{"type":"card-debit-token","paymentOption":"card","displayName":"Saved card","flow":"inline-card","fields":[{"name":"encCvv","type":"string","required":true,"label":"CVV"}],"icon":"{\"tokenId\":\"tok_7f3a…\",\"maskedCard\":\"424242••••4242\",\"expiryMonth\":\"12\",\"expiryYear\":\"2030\",\"cardBrand\":\"VISA\"}"},{"type":"ideal-debit","paymentOption":"ideal","displayName":"iDEAL","flow":"redirect","fields":[],"icon":"ideal"}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/checkout/appearance":{"get":{"description":"Returns the merchant appearance (design tokens and snapshotted custom CSS) frozen into this checkout session at token creation. Empty object when the session has no appearance overrides.","summary":"Get session appearance","tags":["checkoutV2"],"parameters":[],"responses":{"200":{"description":"Resolved appearance for the current checkout session","content":{"application/json":{"schema":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"description":"Type scale, heading weight, letter spacing and — when a checkout design serves the session — its uploaded font","type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"description":"Logo height and alignment and — when a checkout design serves the session — its uploaded logo","type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Resolved appearance for the current checkout session","example":{"colors":{"background":"#101014","surface":"#1c1c24","accent":"#e8590c","textPrimary":"#ffffff"},"logoUrl":"https://your-domain.com/logo.svg","cornerRadius":"lg","fontFamily":"system"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/checkout/presentation":{"get":{"description":"Everything the hosted checkout needs to render this session in one call: the resolved theme, layout, copy overrides and the offered payment options in display order. When the session's context has a published checkout design, its matching variant decides all of it and the result is frozen into the session (later calls return the same variant). Otherwise the standard checkout is described — card (or the mint's pinned option), the session's appearance as theme. Used by the hosted checkout; integrations rendering their own UI keep using `GET /options` and `GET /appearance`.","summary":"Get the checkout presentation","tags":["checkoutV2"],"parameters":[{"name":"x-bp-shopper-facts","in":"header","description":"Hosted checkout only: base64url shopper facts (device, IP country, locale, embed mode)","schema":{"type":"string"}},{"name":"x-bp-shopper-facts-sig","in":"header","description":"Hosted checkout only: signature over x-bp-shopper-facts; unsigned or invalid facts are ignored","schema":{"type":"string"}}],"responses":{"200":{"description":"Resolved checkout presentation for this session","content":{"application/json":{"schema":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"default":true,"description":"Promote, preselect and badge the shopper's last-used option (default true)","type":"boolean"},"lastUsedCount":{"default":1,"description":"How many of the shopper's most recently used options lead the list (1-3)","type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"default":["VISA","MASTERCARD","AMEX"],"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"required":["fieldLayout","showCardholderName","showSaveCard","showBrandIcons","brandIcons"],"additionalProperties":false},"showResult":{"default":true,"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"required":["template","optionsDisplay","maxVisibleOptions","preselect","promoteLastUsed","lastUsedCount","sections","cardForm","showResult"],"additionalProperties":false,"description":"Resolved checkout layout"},"content":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"options":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["card-debit-new","card-debit-token","card-debit-grant","card-credit-token","ideal-debit","bancontact-debit","paypal-debit","klarna-debit","pay-by-bank-debit","swish-debit","vipps-debit","mobilepay-debit","trustly-debit","paysafecard-debit","skrill-debit","neteller-debit","play-plus-debit","mifinity-debit","vip-preferred-debit","safetypay-debit","jeton-debit","eps-debit","przelewy24-debit","twint-debit","alipay-debit","blik-debit","bizum-debit","mb-way-debit","multibanco-debit","astropay-debit","pix-debit","spei-debit","oxxo-debit","pse-debit","efecty-debit","cash-at-retail-debit","local-bank-transfer-debit","interac-debit","applepay-debit","googlepay-debit","crypto-onramp-debit","crypto-accept-debit","swish-credit","trustly-credit","paysafecard-credit","skrill-credit","neteller-credit","astropay-credit","local-bank-transfer-credit","interac-credit","play-plus-credit","mifinity-credit","vip-preferred-credit","jeton-credit","paypal-credit","crypto-accept-credit","pay-by-bank-credit"],"description":"Payment option type identifier"},"paymentOption":{"description":"Canonical PSP-independent payment option this entry belongs to","type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"displayName":{"description":"User-facing display name. Always the payment option — never the underlying gateway.","type":"string"},"flow":{"description":"How the option is completed: inline card entry, a redirect that continues in the payment method's own page, a device-wallet sheet raised in the checkout page itself, or (withdrawals) a payout to a destination chosen in the page.","type":"string","enum":["inline-card","redirect","wallet","payout"]},"redirectDisplay":{"description":"How a redirect-flow option's provider page is displayed: in the checkout overlay iframe, or a popup handoff (bank/wallet pages routinely refuse framing via X-Frame-Options).","type":"string","enum":["iframe","popup"]},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Field name"},"type":{"type":"string","enum":["string","number","boolean"],"description":"Field type"},"required":{"type":"boolean","description":"Whether the field is required"},"label":{"type":"string","description":"Display label for the field"},"placeholder":{"description":"Placeholder text","type":"string"},"regex":{"description":"Validation regex pattern","type":"string"}},"required":["name","type","required","label"],"additionalProperties":false,"description":"Schema for a payment option field"},"description":"Fields required for this payment option"},"icon":{"description":"Icon URL or name","type":"string"},"wallet":{"description":"Setup for a `wallet`-flow option's sheet, filled in by the routed provider","type":"object","properties":{"environment":{"type":"string","enum":["TEST","PRODUCTION"],"description":"Wallet environment the provider's credentials belong to"},"merchantName":{"type":"string","maxLength":128,"description":"Name the sheet shows the shopper as the payee"},"countryCode":{"type":"string","minLength":2,"maxLength":2,"description":"Merchant country, ISO 3166-1 alpha-2"},"supportedNetworks":{"minItems":1,"type":"array","items":{"type":"string","maxLength":32},"description":"Card networks the processor accepts, in the wallet's vocabulary"},"merchantCapabilities":{"description":"Apple Pay merchant capabilities (e.g. supports3DS)","type":"array","items":{"type":"string","maxLength":32}},"allowedAuthMethods":{"description":"Google Pay auth methods (e.g. PAN_ONLY, CRYPTOGRAM_3DS)","type":"array","items":{"type":"string","maxLength":32}},"gateway":{"description":"Google Pay gateway identifier — opaque to the checkout","type":"string","maxLength":64},"gatewayMerchantId":{"description":"Google Pay gateway merchant id — opaque to the checkout","type":"string","maxLength":128},"merchantId":{"description":"Google Pay merchant id issued by Google, required in PRODUCTION","type":"string","maxLength":128},"requiresMerchantSession":{"description":"Apple Pay: the page must call POST /checkout/wallet/session to validate the merchant before the sheet can proceed","type":"boolean"},"vault":{"description":"Set when a card vault, not the processor, decrypts the wallet token: the page raises the sheet through the vault's wallet component and posts back a network token","type":"object","properties":{"provider":{"type":"string","const":"evervault","description":"Card vault whose wallet component raises the sheet"},"teamId":{"type":"string","minLength":1,"maxLength":64,"description":"Evervault team id (public)"},"appId":{"type":"string","minLength":1,"maxLength":64,"description":"Evervault app id (public); the app whose key encrypts the network token"},"merchantId":{"type":"string","minLength":1,"maxLength":128,"description":"Evervault merchant id the wallet transaction is created under"}},"required":["provider","teamId","appId","merchantId"],"additionalProperties":false}},"required":["environment","merchantName","countryCode","supportedNetworks"],"additionalProperties":false},"payoutInstrument":{"description":"Withdrawals: the shopper's payout destination this entry pays to","type":"object","properties":{"id":{"type":"string","description":"What a withdrawal names as `instrumentId`"},"kind":{"type":"string","enum":["iban","wallet"],"description":"A bank account, or an account or wallet at the payment method"},"masked":{"type":"string","description":"The destination as the shopper may see it: a masked IBAN, a masked phone or email"},"holderName":{"description":"The account holder, when known","type":"string"}},"required":["id","kind","masked"],"additionalProperties":false},"presentation":{"type":"object","properties":{"label":{"type":"string"},"description":{"type":"string"},"badge":{"type":"string"},"placement":{"type":"string","enum":["express","list"]},"lastUsed":{"type":"boolean"}},"required":["placement"],"additionalProperties":false}},"required":["type","fields"],"additionalProperties":false}},"meta":{"type":"object","properties":{"checkoutId":{"type":"string"},"versionId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"variantId":{"type":"string"},"variantName":{"type":"string"},"preview":{"type":"boolean"},"viewToken":{"type":"string"},"clientEventsEnabled":{"type":"boolean"},"lastUsed":{"type":"object","properties":{"option":{"type":"string"},"tokenId":{"type":"string"},"promoted":{"type":"boolean"}},"required":["option","promoted"],"additionalProperties":false},"pinnedOption":{"type":"string"},"experimentId":{"type":"string"},"armId":{"type":"string"},"autoOrdered":{"type":"boolean"}},"additionalProperties":false},"tagManager":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"maxLength":32},"consentDefault":{"type":"string","enum":["denied","granted"]}},"required":["containerId"],"additionalProperties":false}},"required":["theme","layout","content","options","meta"],"additionalProperties":false,"description":"Resolved checkout presentation for this session"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/checkout/page":{"get":{"description":"`GET /options` and `GET /appearance` in one response — `{ options, appearance }`, each exactly what its own endpoint returns. A page that renders both on load should use this: one request authenticates the session once and waits on one answer instead of two.","summary":"Get options and appearance together","tags":["checkoutV2"],"parameters":[],"responses":{"200":{"description":"Everything a checkout page needs to render its first screen","content":{"application/json":{"schema":{"type":"object","properties":{"options":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["card-debit-new","card-debit-token","card-debit-grant","card-credit-token","ideal-debit","bancontact-debit","paypal-debit","klarna-debit","pay-by-bank-debit","swish-debit","vipps-debit","mobilepay-debit","trustly-debit","paysafecard-debit","skrill-debit","neteller-debit","play-plus-debit","mifinity-debit","vip-preferred-debit","safetypay-debit","jeton-debit","eps-debit","przelewy24-debit","twint-debit","alipay-debit","blik-debit","bizum-debit","mb-way-debit","multibanco-debit","astropay-debit","pix-debit","spei-debit","oxxo-debit","pse-debit","efecty-debit","cash-at-retail-debit","local-bank-transfer-debit","interac-debit","applepay-debit","googlepay-debit","crypto-onramp-debit","crypto-accept-debit","swish-credit","trustly-credit","paysafecard-credit","skrill-credit","neteller-credit","astropay-credit","local-bank-transfer-credit","interac-credit","play-plus-credit","mifinity-credit","vip-preferred-credit","jeton-credit","paypal-credit","crypto-accept-credit","pay-by-bank-credit"],"description":"Payment option type identifier"},"paymentOption":{"description":"Canonical PSP-independent payment option this entry belongs to","type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"displayName":{"description":"User-facing display name. Always the payment option — never the underlying gateway.","type":"string"},"flow":{"description":"How the option is completed: inline card entry, a redirect that continues in the payment method's own page, a device-wallet sheet raised in the checkout page itself, or (withdrawals) a payout to a destination chosen in the page.","type":"string","enum":["inline-card","redirect","wallet","payout"]},"redirectDisplay":{"description":"How a redirect-flow option's provider page is displayed: in the checkout overlay iframe, or a popup handoff (bank/wallet pages routinely refuse framing via X-Frame-Options).","type":"string","enum":["iframe","popup"]},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Field name"},"type":{"type":"string","enum":["string","number","boolean"],"description":"Field type"},"required":{"type":"boolean","description":"Whether the field is required"},"label":{"type":"string","description":"Display label for the field"},"placeholder":{"description":"Placeholder text","type":"string"},"regex":{"description":"Validation regex pattern","type":"string"}},"required":["name","type","required","label"],"additionalProperties":false,"description":"Schema for a payment option field"},"description":"Fields required for this payment option"},"icon":{"description":"Icon URL or name","type":"string"},"wallet":{"description":"Setup for a `wallet`-flow option's sheet, filled in by the routed provider","type":"object","properties":{"environment":{"type":"string","enum":["TEST","PRODUCTION"],"description":"Wallet environment the provider's credentials belong to"},"merchantName":{"type":"string","maxLength":128,"description":"Name the sheet shows the shopper as the payee"},"countryCode":{"type":"string","minLength":2,"maxLength":2,"description":"Merchant country, ISO 3166-1 alpha-2"},"supportedNetworks":{"minItems":1,"type":"array","items":{"type":"string","maxLength":32},"description":"Card networks the processor accepts, in the wallet's vocabulary"},"merchantCapabilities":{"description":"Apple Pay merchant capabilities (e.g. supports3DS)","type":"array","items":{"type":"string","maxLength":32}},"allowedAuthMethods":{"description":"Google Pay auth methods (e.g. PAN_ONLY, CRYPTOGRAM_3DS)","type":"array","items":{"type":"string","maxLength":32}},"gateway":{"description":"Google Pay gateway identifier — opaque to the checkout","type":"string","maxLength":64},"gatewayMerchantId":{"description":"Google Pay gateway merchant id — opaque to the checkout","type":"string","maxLength":128},"merchantId":{"description":"Google Pay merchant id issued by Google, required in PRODUCTION","type":"string","maxLength":128},"requiresMerchantSession":{"description":"Apple Pay: the page must call POST /checkout/wallet/session to validate the merchant before the sheet can proceed","type":"boolean"},"vault":{"description":"Set when a card vault, not the processor, decrypts the wallet token: the page raises the sheet through the vault's wallet component and posts back a network token","type":"object","properties":{"provider":{"type":"string","const":"evervault","description":"Card vault whose wallet component raises the sheet"},"teamId":{"type":"string","minLength":1,"maxLength":64,"description":"Evervault team id (public)"},"appId":{"type":"string","minLength":1,"maxLength":64,"description":"Evervault app id (public); the app whose key encrypts the network token"},"merchantId":{"type":"string","minLength":1,"maxLength":128,"description":"Evervault merchant id the wallet transaction is created under"}},"required":["provider","teamId","appId","merchantId"],"additionalProperties":false}},"required":["environment","merchantName","countryCode","supportedNetworks"],"additionalProperties":false},"payoutInstrument":{"description":"Withdrawals: the shopper's payout destination this entry pays to","type":"object","properties":{"id":{"type":"string","description":"What a withdrawal names as `instrumentId`"},"kind":{"type":"string","enum":["iban","wallet"],"description":"A bank account, or an account or wallet at the payment method"},"masked":{"type":"string","description":"The destination as the shopper may see it: a masked IBAN, a masked phone or email"},"holderName":{"description":"The account holder, when known","type":"string"}},"required":["id","kind","masked"],"additionalProperties":false}},"required":["type","fields"],"additionalProperties":false,"description":"Schema for a payment option"},"example":[{"type":"card-debit-new","paymentOption":"card","displayName":"Card","flow":"inline-card","fields":[{"name":"encCardNumber","type":"string","required":true,"label":"Card number"},{"name":"encCvv","type":"string","required":true,"label":"CVV"},{"name":"expiryMonth","type":"number","required":true,"label":"Expiry month"},{"name":"expiryYear","type":"number","required":true,"label":"Expiry year"},{"name":"cardholderName","type":"string","required":false,"label":"Cardholder name"}]},{"type":"card-debit-token","paymentOption":"card","displayName":"Saved card","flow":"inline-card","fields":[{"name":"encCvv","type":"string","required":true,"label":"CVV"}],"icon":"{\"tokenId\":\"tok_7f3a…\",\"maskedCard\":\"424242••••4242\",\"expiryMonth\":\"12\",\"expiryYear\":\"2030\",\"cardBrand\":\"VISA\"}"},{"type":"ideal-debit","paymentOption":"ideal","displayName":"iDEAL","flow":"redirect","fields":[],"icon":"ideal"}]},"appearance":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"description":"Type scale, heading weight, letter spacing and — when a checkout design serves the session — its uploaded font","type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"description":"Logo height and alignment and — when a checkout design serves the session — its uploaded logo","type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Resolved appearance for the current checkout session","example":{"colors":{"background":"#101014","surface":"#1c1c24","accent":"#e8590c","textPrimary":"#ffffff"},"logoUrl":"https://your-domain.com/logo.svg","cornerRadius":"lg","fontFamily":"system"}}},"required":["options","appearance"],"additionalProperties":false,"description":"Everything a checkout page needs to render its first screen"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/checkout/debit":{"post":{"description":"Processes a debit payment using the checkout API.","summary":"Process debit payment","tags":["checkoutV2"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"card-debit-new"},"encCardNumber":{"type":"string","minLength":1,"maxLength":256,"description":"Encrypted card number"},"encCvv":{"type":"string","minLength":1,"maxLength":256,"description":"Encrypted CVV"},"expiryMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Card expiry month (1-12)"},"expiryYear":{"type":"integer","minimum":1970,"maximum":2100,"description":"Card expiry year (4 digits)"},"cardholderName":{"type":"string","minLength":1,"maxLength":100,"description":"Name of the cardholder as it appears on the card"},"save":{"description":"Save card for future payments","type":"boolean"}},"required":["amount","paymentType","encCardNumber","encCvv","expiryMonth","expiryYear","cardholderName"],"description":"Checkout payload for a new card debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"card-debit-token"},"tokenId":{"type":"string","minLength":1,"maxLength":256,"description":"Stored card token ID to debit"},"encCvv":{"type":"string","minLength":1,"maxLength":256,"description":"Encrypted CVV"},"expiryMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Card expiry month (1-12)"},"expiryYear":{"type":"integer","minimum":1970,"maximum":2100,"description":"Card expiry year (4 digits)"}},"required":["amount","paymentType","tokenId","encCvv"],"description":"Checkout payload for a tokenized card debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"card-debit-grant"},"grantId":{"type":"string","minLength":1,"maxLength":64,"description":"The handed-on card's id, as the session's options list it"},"encCvv":{"description":"Encrypted CVV, when the handed-on card does not carry one","type":"string","minLength":1,"maxLength":256}},"required":["amount","paymentType","grantId"],"description":"Checkout payload for a card handed on from another merchant"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"ideal-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for an iDEAL debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"bancontact-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Bancontact debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"paypal-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a PayPal debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"klarna-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Klarna debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"pay-by-bank-debit"},"country":{"description":"Bank country","type":"string","minLength":2,"maxLength":2}},"required":["amount","paymentType"],"description":"Checkout payload for a Pay by Bank (open banking) debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"swish-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Swish debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"vipps-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Vipps debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"mobilepay-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a MobilePay debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"trustly-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Trustly debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"paysafecard-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Paysafecard debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"skrill-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Skrill debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"neteller-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Neteller debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"play-plus-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Play+ debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"mifinity-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a MiFinity debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"vip-preferred-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a VIP Preferred debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"safetypay-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a SafetyPay debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"jeton-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Jeton Wallet debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"eps-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for an eps debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"przelewy24-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Przelewy24 debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"twint-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a TWINT debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"alipay-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for an Alipay debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"blik-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a BLIK debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"bizum-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Bizum debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"mb-way-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for an MB WAY debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"multibanco-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Multibanco reference"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"astropay-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for an AstroPay debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"pix-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a Pix debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"spei-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a SPEI debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"oxxo-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for an OXXO cash voucher"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"pse-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a PSE debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"efecty-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for an Efecty cash voucher"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"cash-at-retail-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for cash at a store"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"local-bank-transfer-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a local bank transfer"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"interac-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for an Interac payment"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"applepay-debit"},"wallet":{"type":"object","properties":{"token":{"description":"Opaque, processor-encrypted wallet payment token","type":"string","minLength":1,"maxLength":65536},"networkToken":{"description":"Vault-encrypted network token, when a card vault decrypted the wallet's token","type":"object","properties":{"number":{"type":"string","maxLength":4096,"description":"Vault-encrypted device account number (DPAN)"},"expiryMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Card expiry month (1-12)"},"expiryYear":{"type":"integer","minimum":1970,"maximum":2100,"description":"Card expiry year (4 digits)"},"cryptogram":{"type":"string","maxLength":4096,"description":"Vault-encrypted online payment cryptogram (TAVV / DSRP)"},"eci":{"description":"Electronic commerce indicator, when the wallet supplied one","type":"string","pattern":"^\\d{1,2}$"},"deviceManufacturerIdentifier":{"description":"Apple Pay's hex device manufacturer identifier, when the vault reported one (not card data)","type":"string","pattern":"^[0-9A-Fa-f]{1,64}$"}},"required":["number","expiryMonth","expiryYear","cryptogram"]},"card":{"description":"Vault-encrypted card on file, when a card vault decrypted a PAN_ONLY wallet token","type":"object","properties":{"number":{"type":"string","maxLength":4096,"description":"Vault-encrypted card number (FPAN)"},"expiryMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Card expiry month (1-12)"},"expiryYear":{"type":"integer","minimum":1970,"maximum":2100,"description":"Card expiry year (4 digits)"}},"required":["number","expiryMonth","expiryYear"]},"network":{"description":"Card network the wallet reported","type":"string","maxLength":32},"lastFour":{"description":"Last four of the device account number","type":"string","maxLength":4},"displayName":{"description":"Card description the wallet showed the shopper","type":"string","maxLength":64}},"description":"Payment credential returned by a device wallet"}},"required":["amount","paymentType"],"description":"Checkout payload for an Apple Pay debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"googlepay-debit"},"wallet":{"type":"object","properties":{"token":{"description":"Opaque, processor-encrypted wallet payment token","type":"string","minLength":1,"maxLength":65536},"networkToken":{"description":"Vault-encrypted network token, when a card vault decrypted the wallet's token","type":"object","properties":{"number":{"type":"string","maxLength":4096,"description":"Vault-encrypted device account number (DPAN)"},"expiryMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Card expiry month (1-12)"},"expiryYear":{"type":"integer","minimum":1970,"maximum":2100,"description":"Card expiry year (4 digits)"},"cryptogram":{"type":"string","maxLength":4096,"description":"Vault-encrypted online payment cryptogram (TAVV / DSRP)"},"eci":{"description":"Electronic commerce indicator, when the wallet supplied one","type":"string","pattern":"^\\d{1,2}$"},"deviceManufacturerIdentifier":{"description":"Apple Pay's hex device manufacturer identifier, when the vault reported one (not card data)","type":"string","pattern":"^[0-9A-Fa-f]{1,64}$"}},"required":["number","expiryMonth","expiryYear","cryptogram"]},"card":{"description":"Vault-encrypted card on file, when a card vault decrypted a PAN_ONLY wallet token","type":"object","properties":{"number":{"type":"string","maxLength":4096,"description":"Vault-encrypted card number (FPAN)"},"expiryMonth":{"type":"integer","minimum":1,"maximum":12,"description":"Card expiry month (1-12)"},"expiryYear":{"type":"integer","minimum":1970,"maximum":2100,"description":"Card expiry year (4 digits)"}},"required":["number","expiryMonth","expiryYear"]},"network":{"description":"Card network the wallet reported","type":"string","maxLength":32},"lastFour":{"description":"Last four of the device account number","type":"string","maxLength":4},"displayName":{"description":"Card description the wallet showed the shopper","type":"string","maxLength":64}},"description":"Payment credential returned by a device wallet"}},"required":["amount","paymentType"],"description":"Checkout payload for a Google Pay debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"crypto-onramp-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a crypto onramp debit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"crypto-accept-debit"}},"required":["amount","paymentType"],"description":"Checkout payload for a crypto (own wallet) debit"}],"description":"Request schema for checkout debit","example":{"paymentType":"card-debit-new","amount":{"amt":"24.42","cy":"EUR"},"encCardNumber":"ev:Tk9D:A7x…:$","encCvv":"ev:Tk9D:Q2v…:$","expiryMonth":12,"expiryYear":2030,"cardholderName":"Arthur Dent","save":true}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"redirectUrl":{"type":"string","format":"uri"},"paymentOption":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}},"required":["id"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/checkout/credit":{"post":{"description":"Processes a credit payment using the checkout API.","summary":"Process credit payment","tags":["checkoutV2"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"card-credit-token"},"tokenId":{"type":"string","minLength":1,"maxLength":256,"description":"Stored card token ID to credit"}},"required":["amount","paymentType","tokenId"],"description":"Checkout payload for a tokenized card credit"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"swish-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal to Swish"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"trustly-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal with Trustly"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"paysafecard-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal to Paysafecard"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"skrill-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal to Skrill"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"neteller-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal to Neteller"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"astropay-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal to AstroPay"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"local-bank-transfer-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal to a local bank account"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"interac-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal by Interac e-Transfer"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"play-plus-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal to Play+"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"mifinity-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal to MiFinity"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"vip-preferred-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal with VIP Preferred"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"jeton-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal to Jeton"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"paypal-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"}},"required":["amount","paymentType","instrumentId"],"description":"Checkout payload for a withdrawal to PayPal"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"crypto-accept-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"},"network":{"description":"Coin and network","type":"string","pattern":"^[A-Z0-9]{2,8}(-[A-Z0-9]{3,10})?$"},"address":{"description":"Wallet address","type":"string","minLength":20,"maxLength":128,"pattern":"^[A-Za-z0-9:]+$"},"tag":{"description":"Destination tag","type":"string","pattern":"^\\d{1,10}$"}},"required":["amount","paymentType"],"description":"Checkout payload for a withdrawal in crypto"},{"type":"object","properties":{"amount":{"type":"object","properties":{"amt":{"type":"number","exclusiveMinimum":0,"maximum":1000000000,"description":"Amount"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"description":"Amount to process; must be greater than zero. When the session locked an amount (`amount` at token creation), the session's amount and currency are charged and this must name the same amount and currency, or the request fails with 400."},"txRefId":{"description":"External transaction reference ID. Ignored when the session carries one (`txRefId` at token creation), which always wins. A session minted without one takes this value as sent — it comes from the browser, so set `txRefId` at token creation whenever your webhooks rely on it.","type":"string","maxLength":255},"browser":{"description":"EMV 3DS browser data collected on the checkout page","type":"object","properties":{"acceptHeader":{"description":"HTTP Accept header sent by the shopper's browser","type":"string","maxLength":2048},"language":{"description":"Browser language per BCP 47 (navigator.language), e.g. en-US","type":"string","minLength":1,"maxLength":35},"javaEnabled":{"description":"Whether Java is enabled (navigator.javaEnabled())","type":"boolean"},"javaScriptEnabled":{"description":"Whether JavaScript is enabled in the shopper's browser","type":"boolean"},"colorDepth":{"description":"Screen colour depth in bits per pixel (screen.colorDepth)","type":"integer","minimum":1,"maximum":48},"screenHeight":{"description":"Screen height in pixels (screen.height)","type":"integer","minimum":0,"maximum":999999},"screenWidth":{"description":"Screen width in pixels (screen.width)","type":"integer","minimum":0,"maximum":999999},"timeZoneOffset":{"description":"Minutes between UTC and browser local time, as returned by Date.getTimezoneOffset() — e.g. 300 for UTC-5, -120 for UTC+2","type":"integer","minimum":-840,"maximum":840},"userAgent":{"description":"Shopper's User-Agent header, stamped by the checkout worker","type":"string","maxLength":2048}}},"themeHint":{"description":"Theme the checkout page resolved at submit time (see CheckoutThemeHintSchema)","type":"object","properties":{"colorScheme":{"description":"Colour scheme the checkout resolved for itself","type":"string","enum":["light","dark"]},"background":{"description":"Background the checkout's opaque surfaces paint","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}}},"viewToken":{"description":"Hosted checkout only: the signed view token of the page that submitted (`meta.viewToken` of `GET /presentation`). It names the checkout, version, variant and experiment arm the shopper was shown; versions are immutable, so the backend can re-derive the offered option list from it when the session's frozen list is missing. Optional and verified server-side — a missing, forged or expired token is ignored, never trusted.","type":"string","maxLength":8192},"paymentType":{"type":"string","const":"pay-by-bank-credit"},"instrumentId":{"type":"string","minLength":1,"maxLength":64,"description":"The payout destination's id, as the session's payout options list it"},"iban":{"description":"IBAN","type":"string","minLength":15,"maxLength":42,"pattern":"^[A-Za-z]{2}[0-9]{2}[A-Za-z0-9 ]{11,38}$"},"holderName":{"description":"Account holder","type":"string","minLength":1,"maxLength":140}},"required":["amount","paymentType"],"description":"Checkout payload for a withdrawal to a bank account"}],"description":"Request schema for checkout credit","example":{"paymentType":"card-credit-token","amount":{"amt":"50","cy":"EUR"},"tokenId":"tok_7f3a…","txRefId":"payout-20881"}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"redirectUrl":{"type":"string","format":"uri"},"paymentOption":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}},"required":["id"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/checkout/wallet/session":{"post":{"description":"Apple Pay asks the page to prove the merchant is entitled to take a payment on this domain, and only the holder of the Apple Pay merchant identity certificate can answer. The page relays the wallet's one-time `validationUrl` here and the provider routed for this session answers with its own certificate, so the checkout never handles wallet credentials of any kind. Returns the merchant session verbatim, for `completeMerchantValidation`. Google Pay needs no such step and is rejected here.","summary":"Validate a device-wallet merchant session","tags":["checkoutV2"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"option":{"type":"string","enum":["apple-pay","google-pay"],"description":"Which wallet is asking"},"validationUrl":{"type":"string","maxLength":512,"format":"uri","description":"Validation URL the wallet supplied"},"initiativeContext":{"description":"Domain the sheet is running on; defaults to the checkout host","type":"string","maxLength":255}},"required":["option","validationUrl"],"description":"Request schema for a wallet merchant session","example":{"option":"apple-pay","validationUrl":"https://apple-pay-gateway.apple.com/paymentservices/paymentSession","initiativeContext":"checkout.wardenpay.com"}}}}},"responses":{"200":{"description":"Response schema for a wallet merchant session","content":{"application/json":{"schema":{"type":"object","properties":{"merchantSession":{"type":"string","description":"Opaque merchant session JSON, passed straight to the wallet"}},"required":["merchantSession"],"additionalProperties":false,"description":"Response schema for a wallet merchant session"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/checkout/status/{id}":{"get":{"description":"Get the status of a checkout payment transaction by its ID.","summary":"Get payment status","tags":["checkoutV2"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txAmount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"redirectUrl":{"type":"string","format":"uri"},"paymentOption":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}},"required":["id"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v2/checkout/revoke/{tokenId}":{"delete":{"description":"Marks a saved card as revoked and removes encrypted data.","summary":"Revoke a saved card","tags":["checkoutV2"],"parameters":[{"name":"tokenId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Response schema for checkout revoke","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean","description":"Whether the revocation was successful"}},"required":["success"],"additionalProperties":false,"description":"Response schema for checkout revoke","example":{"success":true}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/reconciliations":{"get":{"description":"Search transaction reconciliation records. Defaults to open findings (mismatch/unresolved with no resolution) when `openOnly` is set.","summary":"Search reconciliation records","tags":["reconciliations"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"customerId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"sort","in":"query","schema":{"type":"string","enum":["asc","desc"]}},{"name":"page","in":"query","schema":{"default":1,"type":"number","minimum":1}},{"name":"limit","in":"query","schema":{"default":100,"type":"number","minimum":1}},{"name":"dateRange","in":"query","style":"deepObject","schema":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}}},{"name":"refresh","in":"query","schema":{"type":"boolean"}},{"name":"openOnly","in":"query","schema":{"type":"boolean"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["status","severity","mismatchKind","resolution","transactionType","provider","providerAccount","providerTxId","transactionId","appSlugId","customerName","localState","localStatusCode","providerState","providerStatusCode","providerExtStatusCode","duplicateGroup","lastError","attempts","amount.amt","amount.cy"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"transactionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"attemptNo":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"appSlugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"provider":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerAccount":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerTxId":{"type":"string"},"localState":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"localStatusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"providerState":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"providerStatusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"providerExtStatusCode":{"type":"string"},"providerResponse":{},"providerTimestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"providerOrderId":{"type":"string"},"duplicateGroup":{"type":"string"},"localRecordCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"providerRecordCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"transactionCreatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"transactionType":{"type":"string","enum":["debit","credit","refund","auth","capture","void","cancel","chargeback","3ds"]},"customerName":{"type":"string"},"status":{"type":"string","enum":["pending","matched","repaired","mismatch","unresolved","skipped","error"],"description":"Reconciliation record status"},"mismatchKind":{"type":"string","enum":["local_success_provider_failed","local_success_provider_stuck","local_failed_provider_success","local_pending_provider_final","state_drift","duplicate_local","duplicate_provider","abandoned_attempt_double_charge","abandoned_attempt_stranded"],"description":"Kind of disagreement between our record and the provider's"},"severity":{"type":"string","enum":["critical","high","low"],"description":"Operational severity of a mismatch"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextCheckAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastCheckedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastError":{"type":"string"},"resolution":{"type":"string","enum":["auto_repaired","corrected","dismissed"],"description":"How a reconciliation finding was resolved"},"resolvedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"resolvedBy":{"type":"string"},"resolutionNote":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","transactionId","attemptNo","status","attempts","createdAt","updatedAt"],"additionalProperties":false,"description":"Reconciliation record for a single transaction"}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/reconciliations/summary":{"get":{"description":"Aggregate open-finding counts by severity for the caller's context.","summary":"Reconciliation summary counts","tags":["reconciliations"],"parameters":[],"responses":{"200":{"description":"Aggregate reconciliation counts for the caller's context","content":{"application/json":{"schema":{"type":"object","properties":{"critical":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"high":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"low":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"open":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastSweptAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["critical","high","low","open"],"additionalProperties":false,"description":"Aggregate reconciliation counts for the caller's context"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/reconciliations/flags":{"post":{"description":"Return reconciliation flags for the given transaction ids, for decorating a transactions list page.","summary":"Batch reconciliation flags","tags":["reconciliations"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"transactionIds":{"maxItems":500,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["transactionIds"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"transactionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"status":{"type":"string","enum":["pending","matched","repaired","mismatch","unresolved","skipped","error"],"description":"Reconciliation record status"},"mismatchKind":{"type":"string","enum":["local_success_provider_failed","local_success_provider_stuck","local_failed_provider_success","local_pending_provider_final","state_drift","duplicate_local","duplicate_provider","abandoned_attempt_double_charge","abandoned_attempt_stranded"],"description":"Kind of disagreement between our record and the provider's"},"severity":{"type":"string","enum":["critical","high","low"],"description":"Operational severity of a mismatch"},"providerState":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"}},"required":["transactionId","status"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/reconciliations/transaction/{transactionId}":{"get":{"summary":"Get a transaction's reconciliation findings, one per attempt","tags":["reconciliations"],"parameters":[{"name":"transactionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"transactionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"attemptNo":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"appSlugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"provider":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerAccount":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerTxId":{"type":"string"},"localState":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"localStatusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"providerState":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"providerStatusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"providerExtStatusCode":{"type":"string"},"providerResponse":{},"providerTimestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"providerOrderId":{"type":"string"},"duplicateGroup":{"type":"string"},"localRecordCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"providerRecordCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"transactionCreatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"transactionType":{"type":"string","enum":["debit","credit","refund","auth","capture","void","cancel","chargeback","3ds"]},"customerName":{"type":"string"},"status":{"type":"string","enum":["pending","matched","repaired","mismatch","unresolved","skipped","error"],"description":"Reconciliation record status"},"mismatchKind":{"type":"string","enum":["local_success_provider_failed","local_success_provider_stuck","local_failed_provider_success","local_pending_provider_final","state_drift","duplicate_local","duplicate_provider","abandoned_attempt_double_charge","abandoned_attempt_stranded"],"description":"Kind of disagreement between our record and the provider's"},"severity":{"type":"string","enum":["critical","high","low"],"description":"Operational severity of a mismatch"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextCheckAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastCheckedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastError":{"type":"string"},"resolution":{"type":"string","enum":["auto_repaired","corrected","dismissed"],"description":"How a reconciliation finding was resolved"},"resolvedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"resolvedBy":{"type":"string"},"resolutionNote":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","transactionId","attemptNo","status","attempts","createdAt","updatedAt"],"additionalProperties":false,"description":"Reconciliation record for a single transaction"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/reconciliations/transaction/{transactionId}/check":{"post":{"description":"Performs an immediate provider status lookup for each of the transaction's routing attempts — the winning one and any the failover cascade walked away from — and records the outcomes. Returns one finding per attempt, winner first. Safe: never applies a final-state correction, and an abandoned attempt never writes to the transaction at all.","summary":"Check every attempt of a transaction against its provider now","tags":["reconciliations"],"parameters":[{"name":"transactionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"transactionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"attemptNo":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"appSlugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"provider":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerAccount":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerTxId":{"type":"string"},"localState":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"localStatusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"providerState":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"providerStatusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"providerExtStatusCode":{"type":"string"},"providerResponse":{},"providerTimestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"providerOrderId":{"type":"string"},"duplicateGroup":{"type":"string"},"localRecordCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"providerRecordCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"transactionCreatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"transactionType":{"type":"string","enum":["debit","credit","refund","auth","capture","void","cancel","chargeback","3ds"]},"customerName":{"type":"string"},"status":{"type":"string","enum":["pending","matched","repaired","mismatch","unresolved","skipped","error"],"description":"Reconciliation record status"},"mismatchKind":{"type":"string","enum":["local_success_provider_failed","local_success_provider_stuck","local_failed_provider_success","local_pending_provider_final","state_drift","duplicate_local","duplicate_provider","abandoned_attempt_double_charge","abandoned_attempt_stranded"],"description":"Kind of disagreement between our record and the provider's"},"severity":{"type":"string","enum":["critical","high","low"],"description":"Operational severity of a mismatch"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextCheckAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastCheckedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastError":{"type":"string"},"resolution":{"type":"string","enum":["auto_repaired","corrected","dismissed"],"description":"How a reconciliation finding was resolved"},"resolvedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"resolvedBy":{"type":"string"},"resolutionNote":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","transactionId","attemptNo","status","attempts","createdAt","updatedAt"],"additionalProperties":false,"description":"Reconciliation record for a single transaction"}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/reconciliations/check":{"post":{"summary":"Check several transactions against their providers now","tags":["reconciliations"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"transactionIds":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}},"required":["transactionIds"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"checked":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"failed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"records":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"transactionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"attemptNo":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"appSlugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"provider":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerAccount":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerTxId":{"type":"string"},"localState":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"localStatusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"providerState":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"providerStatusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"providerExtStatusCode":{"type":"string"},"providerResponse":{},"providerTimestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"providerOrderId":{"type":"string"},"duplicateGroup":{"type":"string"},"localRecordCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"providerRecordCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"transactionCreatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"transactionType":{"type":"string","enum":["debit","credit","refund","auth","capture","void","cancel","chargeback","3ds"]},"customerName":{"type":"string"},"status":{"type":"string","enum":["pending","matched","repaired","mismatch","unresolved","skipped","error"],"description":"Reconciliation record status"},"mismatchKind":{"type":"string","enum":["local_success_provider_failed","local_success_provider_stuck","local_failed_provider_success","local_pending_provider_final","state_drift","duplicate_local","duplicate_provider","abandoned_attempt_double_charge","abandoned_attempt_stranded"],"description":"Kind of disagreement between our record and the provider's"},"severity":{"type":"string","enum":["critical","high","low"],"description":"Operational severity of a mismatch"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextCheckAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastCheckedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastError":{"type":"string"},"resolution":{"type":"string","enum":["auto_repaired","corrected","dismissed"],"description":"How a reconciliation finding was resolved"},"resolvedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"resolvedBy":{"type":"string"},"resolutionNote":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","transactionId","attemptNo","status","attempts","createdAt","updatedAt"],"additionalProperties":false,"description":"Reconciliation record for a single transaction"}}},"required":["checked","failed","records"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/reconciliations/resolve":{"post":{"summary":"Dismiss several reconciliation findings","tags":["reconciliations"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"ids":{"minItems":1,"maxItems":200,"type":"array","items":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"action":{"type":"string","const":"dismiss"},"note":{"type":"string","minLength":1,"maxLength":1000}},"required":["ids","action","note"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"resolved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["resolved"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/reconciliations/{id}/resolve":{"post":{"summary":"Resolve a reconciliation finding","tags":["reconciliations"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"action":{"type":"string","enum":["dismiss","apply"]},"note":{"type":"string","minLength":1,"maxLength":1000}},"required":["action","note"]}}}},"responses":{"200":{"description":"Reconciliation record for a single transaction","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"transactionId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"attemptNo":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"appSlugId":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"provider":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerAccount":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"providerTxId":{"type":"string"},"localState":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"localStatusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"providerState":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"providerStatusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"providerExtStatusCode":{"type":"string"},"providerResponse":{},"providerTimestamp":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"providerOrderId":{"type":"string"},"duplicateGroup":{"type":"string"},"localRecordCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"providerRecordCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"amount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false,"description":"Monetary amount with currency, amount as a canonical decimal string"},"transactionCreatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"transactionType":{"type":"string","enum":["debit","credit","refund","auth","capture","void","cancel","chargeback","3ds"]},"customerName":{"type":"string"},"status":{"type":"string","enum":["pending","matched","repaired","mismatch","unresolved","skipped","error"],"description":"Reconciliation record status"},"mismatchKind":{"type":"string","enum":["local_success_provider_failed","local_success_provider_stuck","local_failed_provider_success","local_pending_provider_final","state_drift","duplicate_local","duplicate_provider","abandoned_attempt_double_charge","abandoned_attempt_stranded"],"description":"Kind of disagreement between our record and the provider's"},"severity":{"type":"string","enum":["critical","high","low"],"description":"Operational severity of a mismatch"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"nextCheckAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastCheckedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastError":{"type":"string"},"resolution":{"type":"string","enum":["auto_repaired","corrected","dismissed"],"description":"How a reconciliation finding was resolved"},"resolvedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"resolvedBy":{"type":"string"},"resolutionNote":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","transactionId","attemptNo","status","attempts","createdAt","updatedAt"],"additionalProperties":false,"description":"Reconciliation record for a single transaction"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/platform-logs/transaction/{id}":{"get":{"description":"Every log line correlated to this transaction, within the log store's retention window.","summary":"Get the log trace for a transaction","tags":["platformLogs"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"q","in":"query","schema":{"type":"string"}},{"name":"from","in":"query","schema":{"type":"string"}},{"name":"to","in":"query","schema":{"type":"string"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["traceEvent","traceOutcome","level","service","trigger","requestId","outcome","mode"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":2000}},{"name":"offset","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"timestamp":{"type":"string"},"level":{"type":"string"},"message":{"type":"string"},"service":{"type":"string"},"requestId":{"type":"string"},"trigger":{"type":"string"},"outcome":{"type":"string"},"error":{"type":"string"},"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","timestamp","fields"],"additionalProperties":false}},"clamped":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"retentionDays":{"type":"number"},"nextOffset":{"type":"string"}},"required":["events","clamped","from","to","retentionDays"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/platform-logs/search":{"get":{"summary":"Search platform logs","tags":["platformLogs"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"from","in":"query","schema":{"type":"string"}},{"name":"to","in":"query","schema":{"type":"string"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["traceEvent","traceOutcome","level","service","trigger","requestId","outcome","mode"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":2000}},{"name":"offset","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"events":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"timestamp":{"type":"string"},"level":{"type":"string"},"message":{"type":"string"},"service":{"type":"string"},"requestId":{"type":"string"},"trigger":{"type":"string"},"outcome":{"type":"string"},"error":{"type":"string"},"fields":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","timestamp","fields"],"additionalProperties":false}},"clamped":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"retentionDays":{"type":"number"},"nextOffset":{"type":"string"}},"required":["events","clamped","from","to","retentionDays"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/platform-logs/keys":{"get":{"summary":"List available log fields","tags":["platformLogs"],"parameters":[{"name":"from","in":"query","schema":{"type":"string"}},{"name":"to","in":"query","schema":{"type":"string"}},{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"type":{"type":"string","enum":["string","number","boolean"]},"lastSeenAt":{"type":"number"}},"required":["key","type"],"additionalProperties":false}}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/transaction-imports/customers":{"get":{"description":"Customers across every organization, matched on name. Platform operator only.","summary":"Find customers to import between","tags":["transactionImports"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"organizationId":{"type":"string"},"organizationName":{"type":"string"},"businessModel":{"type":"string"}},"required":["id","name","organizationId","organizationName","businessModel"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/transaction-imports/customers/{customerId}":{"get":{"description":"What an import can use at this customer. Platform operator only.","summary":"Applications and gateway accounts of a customer","tags":["transactionImports"],"parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"applications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slugId":{"type":"string"}},"required":["id","name","slugId"],"additionalProperties":false}},"accounts":{"type":"array","items":{"type":"object","properties":{"slugId":{"type":"string"},"name":{"type":"string"},"provider":{"type":"string"},"contextType":{"type":"string","enum":["organization","customer"]},"upstreamCustomerId":{"type":"string"},"upstreamCustomerName":{"type":"string"}},"required":["slugId","name","provider","contextType"],"additionalProperties":false}}},"required":["applications","accounts"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/transaction-imports/preview":{"post":{"description":"Counts and totals of what a batch with these settings would import. Writes nothing.","summary":"Dry run of an import","tags":["transactionImports"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"sourceCustomerId":{"type":"string","minLength":1},"targetCustomerId":{"type":"string","minLength":1},"applicationMap":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","null"]}},"createMissingApplications":{"type":"boolean"},"providerAccount":{"type":"string"},"cutoverAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["sourceCustomerId","targetCustomerId","cutoverAt"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"applications":{"type":"array","items":{"type":"object","properties":{"sourceApplicationId":{"type":"string"},"sourceName":{"type":"string"},"slugId":{"type":"string"},"action":{"type":"string","enum":["existing","create","explicit","skip","link","conflict","unmapped"]},"targetApplicationId":{"type":"string"},"targetName":{"type":"string"},"reason":{"type":"string"},"rows":{"type":"number"}},"required":["sourceApplicationId","sourceName","slugId","action"],"additionalProperties":false}},"eligible":{"type":"number"},"alreadyImported":{"type":"number"},"notFinal":{"type":"number"},"byState":{"type":"array","items":{"type":"object","properties":{"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"count":{"type":"number"}},"required":["state","count"],"additionalProperties":false}},"byCurrency":{"type":"array","items":{"type":"object","properties":{"cy":{"type":"string"},"count":{"type":"number"},"approxTotal":{"type":"number"}},"required":["cy","count","approxTotal"],"additionalProperties":false}},"earliest":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"latest":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"provider":{"type":"string"},"refundable":{"type":"boolean"},"refundableReason":{"type":"string"}},"required":["applications","eligible","alreadyImported","notFinal","byState","byCurrency","refundable"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/transaction-imports":{"get":{"description":"Every import batch, newest first. Platform operator only.","summary":"List import batches","tags":["transactionImports"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sourceOrganizationId":{"type":"string"},"sourceOrganizationName":{"type":"string"},"sourceCustomerId":{"type":"string"},"sourceCustomerName":{"type":"string"},"targetOrganizationId":{"type":"string"},"targetOrganizationName":{"type":"string"},"targetCustomerId":{"type":"string"},"targetCustomerName":{"type":"string"},"applicationMap":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"providerAccount":{"type":"string"},"provider":{"type":"string"},"cutoverAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"state":{"type":"string","enum":["PENDING","RUNNING","COMPLETED","FAILED","REVERTED"]},"importedCount":{"type":"number"},"skippedDuplicateCount":{"type":"number"},"skippedOrphanCount":{"type":"number"},"cursorCreatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"error":{"type":"string"},"createdBy":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","sourceOrganizationId","sourceCustomerId","targetOrganizationId","targetCustomerId","applicationMap","cutoverAt","state","importedCount","skippedDuplicateCount","skippedOrphanCount","createdBy","createdAt","updatedAt"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"post":{"description":"Validates the settings and creates a PENDING batch. Nothing is copied until it is run.","summary":"Create an import batch","tags":["transactionImports"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"sourceCustomerId":{"type":"string","minLength":1},"targetCustomerId":{"type":"string","minLength":1},"applicationMap":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","null"]}},"createMissingApplications":{"type":"boolean"},"providerAccount":{"type":"string"},"cutoverAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["sourceCustomerId","targetCustomerId","cutoverAt"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"sourceOrganizationId":{"type":"string"},"sourceOrganizationName":{"type":"string"},"sourceCustomerId":{"type":"string"},"sourceCustomerName":{"type":"string"},"targetOrganizationId":{"type":"string"},"targetOrganizationName":{"type":"string"},"targetCustomerId":{"type":"string"},"targetCustomerName":{"type":"string"},"applicationMap":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"providerAccount":{"type":"string"},"provider":{"type":"string"},"cutoverAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"state":{"type":"string","enum":["PENDING","RUNNING","COMPLETED","FAILED","REVERTED"]},"importedCount":{"type":"number"},"skippedDuplicateCount":{"type":"number"},"skippedOrphanCount":{"type":"number"},"cursorCreatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"error":{"type":"string"},"createdBy":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","sourceOrganizationId","sourceCustomerId","targetOrganizationId","targetCustomerId","applicationMap","cutoverAt","state","importedCount","skippedDuplicateCount","skippedOrphanCount","createdBy","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/transaction-imports/{id}/run":{"post":{"description":"Copies the next chunk of source rows and returns the batch. Call again until its state is COMPLETED; a failed or interrupted run resumes where it stopped.","summary":"Import the next chunk of a batch","tags":["transactionImports"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"sourceOrganizationId":{"type":"string"},"sourceOrganizationName":{"type":"string"},"sourceCustomerId":{"type":"string"},"sourceCustomerName":{"type":"string"},"targetOrganizationId":{"type":"string"},"targetOrganizationName":{"type":"string"},"targetCustomerId":{"type":"string"},"targetCustomerName":{"type":"string"},"applicationMap":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"providerAccount":{"type":"string"},"provider":{"type":"string"},"cutoverAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"state":{"type":"string","enum":["PENDING","RUNNING","COMPLETED","FAILED","REVERTED"]},"importedCount":{"type":"number"},"skippedDuplicateCount":{"type":"number"},"skippedOrphanCount":{"type":"number"},"cursorCreatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"error":{"type":"string"},"createdBy":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","sourceOrganizationId","sourceCustomerId","targetOrganizationId","targetCustomerId","applicationMap","cutoverAt","state","importedCount","skippedDuplicateCount","skippedOrphanCount","createdBy","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/transaction-imports/{id}/revert":{"post":{"description":"Deletes the batch's rows from the transaction store. Refused once a live refund, void or capture points at one of them. Events already sent to Axiom stay there.","summary":"Remove a batch's rows","tags":["transactionImports"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"sourceOrganizationId":{"type":"string"},"sourceOrganizationName":{"type":"string"},"sourceCustomerId":{"type":"string"},"sourceCustomerName":{"type":"string"},"targetOrganizationId":{"type":"string"},"targetOrganizationName":{"type":"string"},"targetCustomerId":{"type":"string"},"targetCustomerName":{"type":"string"},"applicationMap":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"providerAccount":{"type":"string"},"provider":{"type":"string"},"cutoverAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"state":{"type":"string","enum":["PENDING","RUNNING","COMPLETED","FAILED","REVERTED"]},"importedCount":{"type":"number"},"skippedDuplicateCount":{"type":"number"},"skippedOrphanCount":{"type":"number"},"cursorCreatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"error":{"type":"string"},"createdBy":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","sourceOrganizationId","sourceCustomerId","targetOrganizationId","targetCustomerId","applicationMap","cutoverAt","state","importedCount","skippedDuplicateCount","skippedOrphanCount","createdBy","createdAt","updatedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/customer-migration/organizations":{"get":{"description":"Platform operator only.","summary":"Find organizations to move a customer to","tags":["customerMigration"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"businessModel":{"type":"string"}},"required":["id","name","businessModel"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/customer-migration/organizations/{organizationId}/customers":{"get":{"description":"Every customer of the organization, with the organizations it was already re-created in.","summary":"Customers of an organization","tags":["customerMigration"],"parameters":[{"name":"organizationId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"copies":{"type":"array","items":{"type":"object","properties":{"organizationId":{"type":"string"},"customerId":{"type":"string"}},"required":["organizationId","customerId"],"additionalProperties":false}}},"required":["id","name","status","copies"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/customer-migration/recreate":{"post":{"description":"Copies each selected customer of the source organization into the destination organization, with a like-for-like application (same name and id) for each of its applications except a gateway link's. Each customer succeeds or fails on its own; one already re-created there is reported, not copied twice.","summary":"Re-create customers in another organization","tags":["customerMigration"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"sourceOrganizationId":{"type":"string","minLength":1},"sourceCustomerIds":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"string","minLength":1}},"targetOrganizationId":{"type":"string","minLength":1}},"required":["sourceOrganizationId","sourceCustomerIds","targetOrganizationId"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"organizationId":{"type":"string"},"results":{"type":"array","items":{"type":"object","properties":{"sourceCustomerId":{"type":"string"},"sourceCustomerName":{"type":"string"},"status":{"type":"string","enum":["created","exists","failed"]},"customerId":{"type":"string"},"customerName":{"type":"string"},"applications":{"type":"array","items":{"type":"object","properties":{"sourceApplicationId":{"type":"string"},"sourceName":{"type":"string"},"slugId":{"type":"string"},"action":{"type":"string","enum":["existing","create","explicit","skip","link","conflict","unmapped"]},"targetApplicationId":{"type":"string"},"targetName":{"type":"string"},"reason":{"type":"string"},"rows":{"type":"number"}},"required":["sourceApplicationId","sourceName","slugId","action"],"additionalProperties":false}},"message":{"type":"string"}},"required":["sourceCustomerId","status"],"additionalProperties":false}}},"required":["organizationId","results"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/customer-migration/access-moves/preview":{"post":{"description":"What would move, what cannot, and what would refuse the move. Writes nothing.","summary":"Dry run of moving users and API keys","tags":["customerMigration"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"sourceCustomerId":{"type":"string","minLength":1},"targetCustomerId":{"type":"string","minLength":1},"apiKeyIds":{"type":"array","items":{"type":"string"}},"subjectIds":{"type":"array","items":{"type":"string"}},"createMissingApplications":{"type":"boolean"},"note":{"type":"string","maxLength":500}},"required":["sourceCustomerId","targetCustomerId"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"apiKeys":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"createdAt":{"type":"string"},"eligible":{"type":"boolean"},"reason":{"type":"string"},"selected":{"type":"boolean"}},"required":["id","name","createdAt","eligible","selected"],"additionalProperties":false}},"users":{"type":"array","items":{"type":"object","properties":{"subjectId":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"selected":{"type":"boolean"},"roles":{"type":"array","items":{"type":"object","properties":{"roleName":{"type":"string"},"action":{"type":"string","enum":["map","copy","keep"]},"alreadyAtTarget":{"type":"boolean"}},"required":["roleName","action","alreadyAtTarget"],"additionalProperties":false}}},"required":["subjectId","selected","roles"],"additionalProperties":false}},"applications":{"type":"array","items":{"type":"object","properties":{"sourceApplicationId":{"type":"string"},"sourceName":{"type":"string"},"slugId":{"type":"string"},"action":{"type":"string","enum":["existing","create","explicit","skip","link","conflict","unmapped"]},"targetApplicationId":{"type":"string"},"targetName":{"type":"string"},"reason":{"type":"string"},"rows":{"type":"number"}},"required":["sourceApplicationId","sourceName","slugId","action"],"additionalProperties":false}},"blocking":{"type":"array","items":{"type":"string"}},"warnings":{"type":"array","items":{"type":"string"}}},"required":["apiKeys","users","applications","blocking","warnings"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/customer-migration/access-moves":{"get":{"description":"Every move of users and API keys, newest first.","summary":"List access moves","tags":["customerMigration"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"sourceCustomerId":{"type":"string"},"sourceCustomerName":{"type":"string"},"sourceOrganizationName":{"type":"string"},"targetCustomerId":{"type":"string"},"targetCustomerName":{"type":"string"},"targetOrganizationName":{"type":"string"},"state":{"type":"string","enum":["MOVED","ROLLED_BACK"]},"apiKeyCount":{"type":"number"},"userCount":{"type":"number"},"note":{"type":"string"},"createdBy":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"rolledBackBy":{"type":"string"},"rolledBackAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","sourceCustomerId","targetCustomerId","state","apiKeyCount","userCount","createdBy","createdAt"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"post":{"description":"Moves the selected API keys and users' role assignments in one transaction, recording everything changed so the move can be rolled back.","summary":"Move users and API keys to another customer","tags":["customerMigration"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"sourceCustomerId":{"type":"string","minLength":1},"targetCustomerId":{"type":"string","minLength":1},"apiKeyIds":{"type":"array","items":{"type":"string"}},"subjectIds":{"type":"array","items":{"type":"string"}},"createMissingApplications":{"type":"boolean"},"note":{"type":"string","maxLength":500}},"required":["sourceCustomerId","targetCustomerId"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"sourceCustomerId":{"type":"string"},"sourceCustomerName":{"type":"string"},"sourceOrganizationName":{"type":"string"},"targetCustomerId":{"type":"string"},"targetCustomerName":{"type":"string"},"targetOrganizationName":{"type":"string"},"state":{"type":"string","enum":["MOVED","ROLLED_BACK"]},"apiKeyCount":{"type":"number"},"userCount":{"type":"number"},"note":{"type":"string"},"createdBy":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"rolledBackBy":{"type":"string"},"rolledBackAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","sourceCustomerId","targetCustomerId","state","apiKeyCount","userCount","createdBy","createdAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/customer-migration/access-moves/{id}/rollback":{"get":{"description":"Writes nothing.","summary":"What a rollback would restore","tags":["customerMigration"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"apiKeys":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"restorable":{"type":"boolean"},"reason":{"type":"string"}},"required":["id","name","restorable"],"additionalProperties":false}},"assignments":{"type":"number"},"rolesToRemove":{"type":"array","items":{"type":"string"}},"keysCreatedSince":{"type":"number"},"warnings":{"type":"array","items":{"type":"string"}}},"required":["apiKeys","assignments","rolesToRemove","keysCreatedSince","warnings"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"post":{"description":"Puts every key and assignment the move changed back exactly as it was, in one transaction, and removes the roles it created when nothing else uses them.","summary":"Roll a move back to the original customer","tags":["customerMigration"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"sourceCustomerId":{"type":"string"},"sourceCustomerName":{"type":"string"},"sourceOrganizationName":{"type":"string"},"targetCustomerId":{"type":"string"},"targetCustomerName":{"type":"string"},"targetOrganizationName":{"type":"string"},"state":{"type":"string","enum":["MOVED","ROLLED_BACK"]},"apiKeyCount":{"type":"number"},"userCount":{"type":"number"},"note":{"type":"string"},"createdBy":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"rolledBackBy":{"type":"string"},"rolledBackAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","sourceCustomerId","targetCustomerId","state","apiKeyCount","userCount","createdBy","createdAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/checkouts":{"get":{"description":"Checkouts of the selected context. Uncounted: `meta.hasMore` drives the pager; pass `count=true` for `meta.total`. `serving` tells which organization checkout is the fallback and whether customers may design their own.","summary":"List checkouts","tags":["checkouts"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"customerId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"sort","in":"query","schema":{"type":"string","enum":["asc","desc"]}},{"name":"page","in":"query","schema":{"default":1,"type":"number","minimum":1}},{"name":"limit","in":"query","schema":{"default":100,"type":"number","minimum":1}},{"name":"dateRange","in":"query","style":"deepObject","schema":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}}},{"name":"refresh","in":"query","schema":{"type":"boolean"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["name","isDefault","scope"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}},{"name":"count","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"customerId":{"type":["string","null"]},"scope":{"type":"string","enum":["organization","customer"]},"name":{"type":"string"},"slug":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"isDefault":{"type":"boolean"},"applicationSlugIds":{"type":"array","items":{"type":"string"}},"allowRequestAppearance":{"type":"boolean","description":"Deprecated — read `requestAppearanceMode`. True unless `requestAppearanceMode` is `ignore`."},"requestAppearanceMode":{"type":"string","enum":["fill","override","ignore"],"description":"How the `appearance` an integration sends with a checkout session combines with this checkout's published design. `fill` (default): the design wins — the request only fills in fields the design leaves unset (per colour key, per flat field, per field inside each token group; `customCss` only when the design has none). `override`: the request's values replace the design's, field by field. `ignore`: the request appearance is not used while this design serves the session. Sessions without a published design always use the request appearance as their whole theme."},"liveVersionId":{"type":["string","null"]},"liveVersionNumber":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lastPublishedAt":{"type":["string","null"]},"variantsCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"draftRevision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"draftUpdatedAt":{"type":["string","null"]},"draftUpdatedBy":{"type":["string","null"]},"hasUnpublishedChanges":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"scheduledVersionId":{"type":["string","null"]},"scheduledPublishAt":{"type":["string","null"]},"pendingPublishRequestId":{"type":["string","null"]}},"required":["id","organizationId","customerId","scope","name","slug","isDefault","applicationSlugIds","allowRequestAppearance","requestAppearanceMode","liveVersionId","liveVersionNumber","lastPublishedAt","variantsCount","draftRevision","draftUpdatedAt","draftUpdatedBy","hasUnpublishedChanges","createdAt","updatedAt"],"additionalProperties":false,"description":"Checkout summary"}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false},"serving":{"type":"object","properties":{"customerDesignsEnabled":{"type":"boolean"},"organizationDefault":{"anyOf":[{"type":"object","properties":{"name":{"type":"string"},"slug":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"}},"required":["name","slug"],"additionalProperties":false},{"type":"null"}]},"locked":{"type":"boolean"}},"required":["customerDesignsEnabled","organizationDefault","locked"],"additionalProperties":false,"description":"Which checkouts serve the context"}},"required":["data","meta"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"post":{"description":"Creates a checkout with an empty doc (today's look, card only), a copy of another checkout's draft, or a starter template. Nothing is served until it is published. 409 when the slug is taken.","summary":"Create a checkout","tags":["checkouts"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"slug":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"fromCheckoutId":{"type":"string"},"templateId":{"type":"string","enum":["minimal","bold","dark","compact-iframe","wallets-first"]}},"required":["name"]}}}},"responses":{"201":{"description":"Checkout with draft and live version","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"customerId":{"type":["string","null"]},"scope":{"type":"string","enum":["organization","customer"]},"name":{"type":"string"},"slug":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"isDefault":{"type":"boolean"},"applicationSlugIds":{"type":"array","items":{"type":"string"}},"allowRequestAppearance":{"type":"boolean","description":"Deprecated — read `requestAppearanceMode`. True unless `requestAppearanceMode` is `ignore`."},"requestAppearanceMode":{"type":"string","enum":["fill","override","ignore"],"description":"How the `appearance` an integration sends with a checkout session combines with this checkout's published design. `fill` (default): the design wins — the request only fills in fields the design leaves unset (per colour key, per flat field, per field inside each token group; `customCss` only when the design has none). `override`: the request's values replace the design's, field by field. `ignore`: the request appearance is not used while this design serves the session. Sessions without a published design always use the request appearance as their whole theme."},"liveVersionId":{"type":["string","null"]},"liveVersionNumber":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lastPublishedAt":{"type":["string","null"]},"variantsCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"draftRevision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"draftUpdatedAt":{"type":["string","null"]},"draftUpdatedBy":{"type":["string","null"]},"hasUnpublishedChanges":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"scheduledVersionId":{"type":["string","null"]},"scheduledPublishAt":{"type":["string","null"]},"pendingPublishRequestId":{"type":["string","null"]},"draftDoc":{"type":"object","properties":{"schemaVersion":{"type":"number","const":1},"base":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"trustLine":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"payButton":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cardDetailsTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"saveCardLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cancelLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"successTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"failureTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"footerText":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsUrl":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"lastUsedBadge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"}},"additionalProperties":false,"description":"Copy overrides per content key"}},"required":["theme","layout","content"],"additionalProperties":false},"variants":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"enabled":{"type":"boolean"},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false},"experiment":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"status":{"type":"string","enum":["running","stopped"]},"arms":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"weight":{"type":"number","minimum":0,"maximum":10000,"description":"Relative traffic share (> 0 to publish)"},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false}},"required":["id","name","weight"],"additionalProperties":false,"description":"Experiment arm: replaces the variant's options and/or deep-merges overrides"}}},"required":["id","status","arms"],"additionalProperties":false,"description":"A/B experiment; the first arm is the control"},"optionOrdering":{"type":"string","enum":["manual","auto"]},"schedule":{"type":"object","properties":{"from":{"description":"Inclusive start (ISO 8601)","type":"string","maxLength":64},"until":{"description":"Exclusive end (ISO 8601)","type":"string","maxLength":64}},"additionalProperties":false}},"required":["id","name","enabled","conditions","options"],"additionalProperties":false}},"timezone":{"type":"string","maxLength":64},"tagManager":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"maxLength":32},"consentDefault":{"type":"string","enum":["denied","granted"]}},"required":["containerId"],"additionalProperties":false},"facts":{"type":"object","properties":{"metadata":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":90,"description":"Property path inside metadata (`kycStatus`, `player.tier`)"},"label":{"type":"string","minLength":1,"maxLength":60},"type":{"type":"string","enum":["string","number","boolean","enum"]},"options":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}}},"required":["path","label","type"],"additionalProperties":false}}},"additionalProperties":false,"description":"The merchant metadata properties conditions may read (`metadata.<path>`)"},"hideRuleBlockedOptions":{"type":"boolean"}},"required":["schemaVersion","base","variants"],"additionalProperties":false,"description":"Checkout builder document"},"liveVersion":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"checkoutId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":["string","null"]},"publishedBy":{"type":"string"},"publishedByName":{"type":["string","null"]},"publishedAt":{"type":"string"},"isLive":{"type":"boolean"},"status":{"type":"string","enum":["live","scheduled","superseded","cancelled"]},"publishAt":{"type":["string","null"]},"doc":{"type":"object","properties":{"schemaVersion":{"type":"number","const":1},"base":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"trustLine":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"payButton":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cardDetailsTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"saveCardLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cancelLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"successTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"failureTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"footerText":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsUrl":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"lastUsedBadge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"}},"additionalProperties":false,"description":"Copy overrides per content key"}},"required":["theme","layout","content"],"additionalProperties":false},"variants":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"enabled":{"type":"boolean"},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false},"experiment":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"status":{"type":"string","enum":["running","stopped"]},"arms":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"weight":{"type":"number","minimum":0,"maximum":10000,"description":"Relative traffic share (> 0 to publish)"},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false}},"required":["id","name","weight"],"additionalProperties":false,"description":"Experiment arm: replaces the variant's options and/or deep-merges overrides"}}},"required":["id","status","arms"],"additionalProperties":false,"description":"A/B experiment; the first arm is the control"},"optionOrdering":{"type":"string","enum":["manual","auto"]},"schedule":{"type":"object","properties":{"from":{"description":"Inclusive start (ISO 8601)","type":"string","maxLength":64},"until":{"description":"Exclusive end (ISO 8601)","type":"string","maxLength":64}},"additionalProperties":false}},"required":["id","name","enabled","conditions","options"],"additionalProperties":false}},"timezone":{"type":"string","maxLength":64},"tagManager":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"maxLength":32},"consentDefault":{"type":"string","enum":["denied","granted"]}},"required":["containerId"],"additionalProperties":false},"facts":{"type":"object","properties":{"metadata":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":90,"description":"Property path inside metadata (`kycStatus`, `player.tier`)"},"label":{"type":"string","minLength":1,"maxLength":60},"type":{"type":"string","enum":["string","number","boolean","enum"]},"options":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}}},"required":["path","label","type"],"additionalProperties":false}}},"additionalProperties":false,"description":"The merchant metadata properties conditions may read (`metadata.<path>`)"},"hideRuleBlockedOptions":{"type":"boolean"}},"required":["schemaVersion","base","variants"],"additionalProperties":false,"description":"Checkout builder document"}},"required":["id","checkoutId","version","note","publishedBy","publishedAt","isLive","status","publishAt","doc"],"additionalProperties":false,"description":"Published checkout version"},{"type":"null"}]},"locked":{"type":"boolean"}},"required":["id","organizationId","customerId","scope","name","slug","isDefault","applicationSlugIds","allowRequestAppearance","requestAppearanceMode","liveVersionId","liveVersionNumber","lastPublishedAt","variantsCount","draftRevision","draftUpdatedAt","draftUpdatedBy","hasUnpublishedChanges","createdAt","updatedAt","draftDoc","liveVersion"],"additionalProperties":false,"description":"Checkout with draft and live version"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/checkouts/import":{"post":{"description":"The write half of copying a checkout between test and live mode: the design read in the other mode (`getCheckout`) is written into this one as a draft — a new, unpublished checkout, or with `replace: true` the draft of this mode's checkout with the same slug (its published version keeps serving). Nothing is published. 409 `exists` when the slug is taken and `replace` was not given. `dryRun` answers the outcome and this mode's validation without writing.","summary":"Copy a checkout in from the other mode","tags":["checkouts"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"slug":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"customerId":{"type":["string","null"]},"doc":{"type":"object","properties":{"schemaVersion":{"type":"number","const":1},"base":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"trustLine":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"payButton":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cardDetailsTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"saveCardLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cancelLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"successTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"failureTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"footerText":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsUrl":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"lastUsedBadge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"}},"additionalProperties":false,"description":"Copy overrides per content key"}},"required":["theme","layout","content"],"additionalProperties":false},"variants":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"enabled":{"type":"boolean"},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field"],"description":"A single search filter"}},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field"],"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false},"experiment":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"status":{"type":"string","enum":["running","stopped"]},"arms":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"weight":{"type":"number","minimum":0,"maximum":10000,"description":"Relative traffic share (> 0 to publish)"},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field"],"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false}},"required":["id","name","weight"],"additionalProperties":false,"description":"Experiment arm: replaces the variant's options and/or deep-merges overrides"}}},"required":["id","status","arms"],"additionalProperties":false,"description":"A/B experiment; the first arm is the control"},"optionOrdering":{"type":"string","enum":["manual","auto"]},"schedule":{"type":"object","properties":{"from":{"description":"Inclusive start (ISO 8601)","type":"string","maxLength":64},"until":{"description":"Exclusive end (ISO 8601)","type":"string","maxLength":64}},"additionalProperties":false}},"required":["id","name","enabled","conditions","options"],"additionalProperties":false}},"timezone":{"type":"string","maxLength":64},"tagManager":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"maxLength":32},"consentDefault":{"type":"string","enum":["denied","granted"]}},"required":["containerId"],"additionalProperties":false},"facts":{"type":"object","properties":{"metadata":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":90,"description":"Property path inside metadata (`kycStatus`, `player.tier`)"},"label":{"type":"string","minLength":1,"maxLength":60},"type":{"type":"string","enum":["string","number","boolean","enum"]},"options":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}}},"required":["path","label","type"],"additionalProperties":false}}},"additionalProperties":false,"description":"The merchant metadata properties conditions may read (`metadata.<path>`)"},"hideRuleBlockedOptions":{"type":"boolean"}},"required":["schemaVersion","base","variants"],"additionalProperties":false,"description":"Checkout builder document"},"requestAppearanceMode":{"type":"string","enum":["fill","override","ignore"],"description":"How the `appearance` an integration sends with a checkout session combines with this checkout's published design. `fill` (default): the design wins — the request only fills in fields the design leaves unset (per colour key, per flat field, per field inside each token group; `customCss` only when the design has none). `override`: the request's values replace the design's, field by field. `ignore`: the request appearance is not used while this design serves the session. Sessions without a published design always use the request appearance as their whole theme."},"replace":{"type":"boolean"},"dryRun":{"type":"boolean"}},"required":["name","slug","doc"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"outcome":{"type":"string","enum":["created","replaced"]},"dryRun":{"type":"boolean"},"checkout":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"customerId":{"type":["string","null"]},"scope":{"type":"string","enum":["organization","customer"]},"name":{"type":"string"},"slug":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"isDefault":{"type":"boolean"},"applicationSlugIds":{"type":"array","items":{"type":"string"}},"allowRequestAppearance":{"type":"boolean","description":"Deprecated — read `requestAppearanceMode`. True unless `requestAppearanceMode` is `ignore`."},"requestAppearanceMode":{"type":"string","enum":["fill","override","ignore"],"description":"How the `appearance` an integration sends with a checkout session combines with this checkout's published design. `fill` (default): the design wins — the request only fills in fields the design leaves unset (per colour key, per flat field, per field inside each token group; `customCss` only when the design has none). `override`: the request's values replace the design's, field by field. `ignore`: the request appearance is not used while this design serves the session. Sessions without a published design always use the request appearance as their whole theme."},"liveVersionId":{"type":["string","null"]},"liveVersionNumber":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lastPublishedAt":{"type":["string","null"]},"variantsCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"draftRevision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"draftUpdatedAt":{"type":["string","null"]},"draftUpdatedBy":{"type":["string","null"]},"hasUnpublishedChanges":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"scheduledVersionId":{"type":["string","null"]},"scheduledPublishAt":{"type":["string","null"]},"pendingPublishRequestId":{"type":["string","null"]}},"required":["id","organizationId","customerId","scope","name","slug","isDefault","applicationSlugIds","allowRequestAppearance","requestAppearanceMode","liveVersionId","liveVersionNumber","lastPublishedAt","variantsCount","draftRevision","draftUpdatedAt","draftUpdatedBy","hasUnpublishedChanges","createdAt","updatedAt"],"additionalProperties":false,"description":"Checkout summary"},{"type":"null"}]},"validation":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["schema_invalid","no_variants","no_enabled_variants","no_catch_all","duplicate_variant_id","variant_no_options","unknown_option","unknown_condition_field","invalid_condition_operator","invalid_condition_value","required_section_hidden","custom_css_not_enabled","insecure_logo_url","insecure_content_url","platform_branding","experiment_invalid","schedule_invalid","timezone_invalid","tag_manager_container_invalid","metadata_field_undeclared","metadata_declaration_invalid","option_visibility_empty_allow","shadowed_variant","option_not_routable","low_contrast","wallet_impossible_device","locale_gap","unsupported_locale","condition_no_values","duplicate_option","preselect_not_offered","express_non_wallet","unknown_placeholder","auto_ordering_few_options","card_field_unsupported","schedule_expired","asset_missing","option_never_visible","velocity_field_unknown","velocity_field_uncomputable","velocity_absent_matches","option_cannot_receive"]},"message":{"type":"string"},"variantId":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}}},"required":["code","message"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["schema_invalid","no_variants","no_enabled_variants","no_catch_all","duplicate_variant_id","variant_no_options","unknown_option","unknown_condition_field","invalid_condition_operator","invalid_condition_value","required_section_hidden","custom_css_not_enabled","insecure_logo_url","insecure_content_url","platform_branding","experiment_invalid","schedule_invalid","timezone_invalid","tag_manager_container_invalid","metadata_field_undeclared","metadata_declaration_invalid","option_visibility_empty_allow","shadowed_variant","option_not_routable","low_contrast","wallet_impossible_device","locale_gap","unsupported_locale","condition_no_values","duplicate_option","preselect_not_offered","express_non_wallet","unknown_placeholder","auto_ordering_few_options","card_field_unsupported","schedule_expired","asset_missing","option_never_visible","velocity_field_unknown","velocity_field_uncomputable","velocity_absent_matches","option_cannot_receive"]},"message":{"type":"string"},"variantId":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}}},"required":["code","message"],"additionalProperties":false}}},"required":["errors","warnings"],"additionalProperties":false}},"required":["outcome","dryRun","checkout","validation"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"reason":{"type":"string","enum":["exists","draft-changed"]}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/checkouts/{id}":{"get":{"summary":"Get a checkout","tags":["checkouts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Checkout with draft and live version","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"customerId":{"type":["string","null"]},"scope":{"type":"string","enum":["organization","customer"]},"name":{"type":"string"},"slug":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"isDefault":{"type":"boolean"},"applicationSlugIds":{"type":"array","items":{"type":"string"}},"allowRequestAppearance":{"type":"boolean","description":"Deprecated — read `requestAppearanceMode`. True unless `requestAppearanceMode` is `ignore`."},"requestAppearanceMode":{"type":"string","enum":["fill","override","ignore"],"description":"How the `appearance` an integration sends with a checkout session combines with this checkout's published design. `fill` (default): the design wins — the request only fills in fields the design leaves unset (per colour key, per flat field, per field inside each token group; `customCss` only when the design has none). `override`: the request's values replace the design's, field by field. `ignore`: the request appearance is not used while this design serves the session. Sessions without a published design always use the request appearance as their whole theme."},"liveVersionId":{"type":["string","null"]},"liveVersionNumber":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lastPublishedAt":{"type":["string","null"]},"variantsCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"draftRevision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"draftUpdatedAt":{"type":["string","null"]},"draftUpdatedBy":{"type":["string","null"]},"hasUnpublishedChanges":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"scheduledVersionId":{"type":["string","null"]},"scheduledPublishAt":{"type":["string","null"]},"pendingPublishRequestId":{"type":["string","null"]},"draftDoc":{"type":"object","properties":{"schemaVersion":{"type":"number","const":1},"base":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"trustLine":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"payButton":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cardDetailsTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"saveCardLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cancelLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"successTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"failureTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"footerText":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsUrl":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"lastUsedBadge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"}},"additionalProperties":false,"description":"Copy overrides per content key"}},"required":["theme","layout","content"],"additionalProperties":false},"variants":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"enabled":{"type":"boolean"},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false},"experiment":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"status":{"type":"string","enum":["running","stopped"]},"arms":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"weight":{"type":"number","minimum":0,"maximum":10000,"description":"Relative traffic share (> 0 to publish)"},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false}},"required":["id","name","weight"],"additionalProperties":false,"description":"Experiment arm: replaces the variant's options and/or deep-merges overrides"}}},"required":["id","status","arms"],"additionalProperties":false,"description":"A/B experiment; the first arm is the control"},"optionOrdering":{"type":"string","enum":["manual","auto"]},"schedule":{"type":"object","properties":{"from":{"description":"Inclusive start (ISO 8601)","type":"string","maxLength":64},"until":{"description":"Exclusive end (ISO 8601)","type":"string","maxLength":64}},"additionalProperties":false}},"required":["id","name","enabled","conditions","options"],"additionalProperties":false}},"timezone":{"type":"string","maxLength":64},"tagManager":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"maxLength":32},"consentDefault":{"type":"string","enum":["denied","granted"]}},"required":["containerId"],"additionalProperties":false},"facts":{"type":"object","properties":{"metadata":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":90,"description":"Property path inside metadata (`kycStatus`, `player.tier`)"},"label":{"type":"string","minLength":1,"maxLength":60},"type":{"type":"string","enum":["string","number","boolean","enum"]},"options":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}}},"required":["path","label","type"],"additionalProperties":false}}},"additionalProperties":false,"description":"The merchant metadata properties conditions may read (`metadata.<path>`)"},"hideRuleBlockedOptions":{"type":"boolean"}},"required":["schemaVersion","base","variants"],"additionalProperties":false,"description":"Checkout builder document"},"liveVersion":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"checkoutId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":["string","null"]},"publishedBy":{"type":"string"},"publishedByName":{"type":["string","null"]},"publishedAt":{"type":"string"},"isLive":{"type":"boolean"},"status":{"type":"string","enum":["live","scheduled","superseded","cancelled"]},"publishAt":{"type":["string","null"]},"doc":{"type":"object","properties":{"schemaVersion":{"type":"number","const":1},"base":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"trustLine":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"payButton":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cardDetailsTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"saveCardLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cancelLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"successTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"failureTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"footerText":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsUrl":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"lastUsedBadge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"}},"additionalProperties":false,"description":"Copy overrides per content key"}},"required":["theme","layout","content"],"additionalProperties":false},"variants":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"enabled":{"type":"boolean"},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false},"experiment":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"status":{"type":"string","enum":["running","stopped"]},"arms":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"weight":{"type":"number","minimum":0,"maximum":10000,"description":"Relative traffic share (> 0 to publish)"},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false}},"required":["id","name","weight"],"additionalProperties":false,"description":"Experiment arm: replaces the variant's options and/or deep-merges overrides"}}},"required":["id","status","arms"],"additionalProperties":false,"description":"A/B experiment; the first arm is the control"},"optionOrdering":{"type":"string","enum":["manual","auto"]},"schedule":{"type":"object","properties":{"from":{"description":"Inclusive start (ISO 8601)","type":"string","maxLength":64},"until":{"description":"Exclusive end (ISO 8601)","type":"string","maxLength":64}},"additionalProperties":false}},"required":["id","name","enabled","conditions","options"],"additionalProperties":false}},"timezone":{"type":"string","maxLength":64},"tagManager":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"maxLength":32},"consentDefault":{"type":"string","enum":["denied","granted"]}},"required":["containerId"],"additionalProperties":false},"facts":{"type":"object","properties":{"metadata":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":90,"description":"Property path inside metadata (`kycStatus`, `player.tier`)"},"label":{"type":"string","minLength":1,"maxLength":60},"type":{"type":"string","enum":["string","number","boolean","enum"]},"options":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}}},"required":["path","label","type"],"additionalProperties":false}}},"additionalProperties":false,"description":"The merchant metadata properties conditions may read (`metadata.<path>`)"},"hideRuleBlockedOptions":{"type":"boolean"}},"required":["schemaVersion","base","variants"],"additionalProperties":false,"description":"Checkout builder document"}},"required":["id","checkoutId","version","note","publishedBy","publishedAt","isLive","status","publishAt","doc"],"additionalProperties":false,"description":"Published checkout version"},{"type":"null"}]},"locked":{"type":"boolean"}},"required":["id","organizationId","customerId","scope","name","slug","isDefault","applicationSlugIds","allowRequestAppearance","requestAppearanceMode","liveVersionId","liveVersionNumber","lastPublishedAt","variantsCount","draftRevision","draftUpdatedAt","draftUpdatedBy","hasUnpublishedChanges","createdAt","updatedAt","draftDoc","liveVersion"],"additionalProperties":false,"description":"Checkout with draft and live version"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"patch":{"description":"Name, slug, default flag, bound applications and `requestAppearanceMode` — how the `appearance` an integration sends with a session combines with this checkout's design (`fill`: the design wins and the request only fills unset fields; `override`: the request wins field by field; `ignore`: the request appearance is not used). 409 when the slug is taken.","summary":"Update checkout metadata","tags":["checkouts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"slug":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"isDefault":{"type":"boolean"},"applicationSlugIds":{"maxItems":100,"type":"array","items":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"}},"requestAppearanceMode":{"type":"string","enum":["fill","override","ignore"],"description":"How the `appearance` an integration sends with a checkout session combines with this checkout's published design. `fill` (default): the design wins — the request only fills in fields the design leaves unset (per colour key, per flat field, per field inside each token group; `customCss` only when the design has none). `override`: the request's values replace the design's, field by field. `ignore`: the request appearance is not used while this design serves the session. Sessions without a published design always use the request appearance as their whole theme."},"allowRequestAppearance":{"description":"Deprecated — send `requestAppearanceMode`. `false` sets `ignore`; `true` keeps the current mode unless it is `ignore`, which becomes `fill`. Ignored when `requestAppearanceMode` is sent.","type":"boolean"}}}}}},"responses":{"200":{"description":"Checkout summary","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"customerId":{"type":["string","null"]},"scope":{"type":"string","enum":["organization","customer"]},"name":{"type":"string"},"slug":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"isDefault":{"type":"boolean"},"applicationSlugIds":{"type":"array","items":{"type":"string"}},"allowRequestAppearance":{"type":"boolean","description":"Deprecated — read `requestAppearanceMode`. True unless `requestAppearanceMode` is `ignore`."},"requestAppearanceMode":{"type":"string","enum":["fill","override","ignore"],"description":"How the `appearance` an integration sends with a checkout session combines with this checkout's published design. `fill` (default): the design wins — the request only fills in fields the design leaves unset (per colour key, per flat field, per field inside each token group; `customCss` only when the design has none). `override`: the request's values replace the design's, field by field. `ignore`: the request appearance is not used while this design serves the session. Sessions without a published design always use the request appearance as their whole theme."},"liveVersionId":{"type":["string","null"]},"liveVersionNumber":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lastPublishedAt":{"type":["string","null"]},"variantsCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"draftRevision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"draftUpdatedAt":{"type":["string","null"]},"draftUpdatedBy":{"type":["string","null"]},"hasUnpublishedChanges":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"scheduledVersionId":{"type":["string","null"]},"scheduledPublishAt":{"type":["string","null"]},"pendingPublishRequestId":{"type":["string","null"]}},"required":["id","organizationId","customerId","scope","name","slug","isDefault","applicationSlugIds","allowRequestAppearance","requestAppearanceMode","liveVersionId","liveVersionNumber","lastPublishedAt","variantsCount","draftRevision","draftUpdatedAt","draftUpdatedBy","hasUnpublishedChanges","createdAt","updatedAt"],"additionalProperties":false,"description":"Checkout summary"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"description":"Soft delete. 409 while it is the context default — make another checkout the default first.","summary":"Delete a checkout","tags":["checkouts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/checkouts/{id}/draft":{"put":{"description":"Optimistic concurrency: `baseRevision` must equal the stored `draftRevision`, else 409 with the current revision (reload or overwrite by resending with it).","summary":"Save the draft","tags":["checkouts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"doc":{"type":"object","properties":{"schemaVersion":{"type":"number","const":1},"base":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"trustLine":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"payButton":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cardDetailsTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"saveCardLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cancelLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"successTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"failureTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"footerText":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsUrl":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"lastUsedBadge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"}},"additionalProperties":false,"description":"Copy overrides per content key"}},"required":["theme","layout","content"],"additionalProperties":false},"variants":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"enabled":{"type":"boolean"},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field"],"description":"A single search filter"}},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field"],"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false},"experiment":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"status":{"type":"string","enum":["running","stopped"]},"arms":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"weight":{"type":"number","minimum":0,"maximum":10000,"description":"Relative traffic share (> 0 to publish)"},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field"],"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false}},"required":["id","name","weight"],"additionalProperties":false,"description":"Experiment arm: replaces the variant's options and/or deep-merges overrides"}}},"required":["id","status","arms"],"additionalProperties":false,"description":"A/B experiment; the first arm is the control"},"optionOrdering":{"type":"string","enum":["manual","auto"]},"schedule":{"type":"object","properties":{"from":{"description":"Inclusive start (ISO 8601)","type":"string","maxLength":64},"until":{"description":"Exclusive end (ISO 8601)","type":"string","maxLength":64}},"additionalProperties":false}},"required":["id","name","enabled","conditions","options"],"additionalProperties":false}},"timezone":{"type":"string","maxLength":64},"tagManager":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"maxLength":32},"consentDefault":{"type":"string","enum":["denied","granted"]}},"required":["containerId"],"additionalProperties":false},"facts":{"type":"object","properties":{"metadata":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":90,"description":"Property path inside metadata (`kycStatus`, `player.tier`)"},"label":{"type":"string","minLength":1,"maxLength":60},"type":{"type":"string","enum":["string","number","boolean","enum"]},"options":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}}},"required":["path","label","type"],"additionalProperties":false}}},"additionalProperties":false,"description":"The merchant metadata properties conditions may read (`metadata.<path>`)"},"hideRuleBlockedOptions":{"type":"boolean"}},"required":["schemaVersion","base","variants"],"additionalProperties":false,"description":"Checkout builder document"},"baseRevision":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["doc","baseRevision"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"draftRevision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"draftUpdatedAt":{"type":"string"},"validation":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["schema_invalid","no_variants","no_enabled_variants","no_catch_all","duplicate_variant_id","variant_no_options","unknown_option","unknown_condition_field","invalid_condition_operator","invalid_condition_value","required_section_hidden","custom_css_not_enabled","insecure_logo_url","insecure_content_url","platform_branding","experiment_invalid","schedule_invalid","timezone_invalid","tag_manager_container_invalid","metadata_field_undeclared","metadata_declaration_invalid","option_visibility_empty_allow","shadowed_variant","option_not_routable","low_contrast","wallet_impossible_device","locale_gap","unsupported_locale","condition_no_values","duplicate_option","preselect_not_offered","express_non_wallet","unknown_placeholder","auto_ordering_few_options","card_field_unsupported","schedule_expired","asset_missing","option_never_visible","velocity_field_unknown","velocity_field_uncomputable","velocity_absent_matches","option_cannot_receive"]},"message":{"type":"string"},"variantId":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}}},"required":["code","message"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["schema_invalid","no_variants","no_enabled_variants","no_catch_all","duplicate_variant_id","variant_no_options","unknown_option","unknown_condition_field","invalid_condition_operator","invalid_condition_value","required_section_hidden","custom_css_not_enabled","insecure_logo_url","insecure_content_url","platform_branding","experiment_invalid","schedule_invalid","timezone_invalid","tag_manager_container_invalid","metadata_field_undeclared","metadata_declaration_invalid","option_visibility_empty_allow","shadowed_variant","option_not_routable","low_contrast","wallet_impossible_device","locale_gap","unsupported_locale","condition_no_values","duplicate_option","preselect_not_offered","express_non_wallet","unknown_placeholder","auto_ordering_few_options","card_field_unsupported","schedule_expired","asset_missing","option_never_visible","velocity_field_unknown","velocity_field_uncomputable","velocity_absent_matches","option_cannot_receive"]},"message":{"type":"string"},"variantId":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}}},"required":["code","message"],"additionalProperties":false}}},"required":["errors","warnings"],"additionalProperties":false}},"required":["draftRevision","draftUpdatedAt","validation"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"currentRevision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"draftUpdatedBy":{"type":["string","null"]},"draftUpdatedAt":{"type":["string","null"]}},"required":["message","currentRevision"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/checkouts/{id}/publish":{"post":{"description":"Validates the draft (errors → 422) and stores it as a new immutable version. 200: live now. 202 `kind: scheduled`: `publishAt` was given — the version is `scheduled` and the minute cron makes it live when due (a past `publishAt` → 400). 202 `kind: approval_required`: the organization setting `checkoutPublishRequiresApproval` is on — a pending publish request was created instead (no version) for someone else to approve.","summary":"Publish the draft","tags":["checkouts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string","maxLength":500},"draftRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"publishAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"object","properties":{"id":{"type":"string"},"checkoutId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":["string","null"]},"publishedBy":{"type":"string"},"publishedByName":{"type":["string","null"]},"publishedAt":{"type":"string"},"isLive":{"type":"boolean"},"status":{"type":"string","enum":["live","scheduled","superseded","cancelled"]},"publishAt":{"type":["string","null"]},"doc":{"type":"object","properties":{"schemaVersion":{"type":"number","const":1},"base":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"trustLine":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"payButton":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cardDetailsTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"saveCardLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cancelLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"successTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"failureTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"footerText":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsUrl":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"lastUsedBadge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"}},"additionalProperties":false,"description":"Copy overrides per content key"}},"required":["theme","layout","content"],"additionalProperties":false},"variants":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"enabled":{"type":"boolean"},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false},"experiment":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"status":{"type":"string","enum":["running","stopped"]},"arms":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"weight":{"type":"number","minimum":0,"maximum":10000,"description":"Relative traffic share (> 0 to publish)"},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false}},"required":["id","name","weight"],"additionalProperties":false,"description":"Experiment arm: replaces the variant's options and/or deep-merges overrides"}}},"required":["id","status","arms"],"additionalProperties":false,"description":"A/B experiment; the first arm is the control"},"optionOrdering":{"type":"string","enum":["manual","auto"]},"schedule":{"type":"object","properties":{"from":{"description":"Inclusive start (ISO 8601)","type":"string","maxLength":64},"until":{"description":"Exclusive end (ISO 8601)","type":"string","maxLength":64}},"additionalProperties":false}},"required":["id","name","enabled","conditions","options"],"additionalProperties":false}},"timezone":{"type":"string","maxLength":64},"tagManager":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"maxLength":32},"consentDefault":{"type":"string","enum":["denied","granted"]}},"required":["containerId"],"additionalProperties":false},"facts":{"type":"object","properties":{"metadata":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":90,"description":"Property path inside metadata (`kycStatus`, `player.tier`)"},"label":{"type":"string","minLength":1,"maxLength":60},"type":{"type":"string","enum":["string","number","boolean","enum"]},"options":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}}},"required":["path","label","type"],"additionalProperties":false}}},"additionalProperties":false,"description":"The merchant metadata properties conditions may read (`metadata.<path>`)"},"hideRuleBlockedOptions":{"type":"boolean"}},"required":["schemaVersion","base","variants"],"additionalProperties":false,"description":"Checkout builder document"}},"required":["id","checkoutId","version","note","publishedBy","publishedAt","isLive","status","publishAt","doc"],"additionalProperties":false,"description":"Published checkout version"},"validation":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["schema_invalid","no_variants","no_enabled_variants","no_catch_all","duplicate_variant_id","variant_no_options","unknown_option","unknown_condition_field","invalid_condition_operator","invalid_condition_value","required_section_hidden","custom_css_not_enabled","insecure_logo_url","insecure_content_url","platform_branding","experiment_invalid","schedule_invalid","timezone_invalid","tag_manager_container_invalid","metadata_field_undeclared","metadata_declaration_invalid","option_visibility_empty_allow","shadowed_variant","option_not_routable","low_contrast","wallet_impossible_device","locale_gap","unsupported_locale","condition_no_values","duplicate_option","preselect_not_offered","express_non_wallet","unknown_placeholder","auto_ordering_few_options","card_field_unsupported","schedule_expired","asset_missing","option_never_visible","velocity_field_unknown","velocity_field_uncomputable","velocity_absent_matches","option_cannot_receive"]},"message":{"type":"string"},"variantId":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}}},"required":["code","message"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["schema_invalid","no_variants","no_enabled_variants","no_catch_all","duplicate_variant_id","variant_no_options","unknown_option","unknown_condition_field","invalid_condition_operator","invalid_condition_value","required_section_hidden","custom_css_not_enabled","insecure_logo_url","insecure_content_url","platform_branding","experiment_invalid","schedule_invalid","timezone_invalid","tag_manager_container_invalid","metadata_field_undeclared","metadata_declaration_invalid","option_visibility_empty_allow","shadowed_variant","option_not_routable","low_contrast","wallet_impossible_device","locale_gap","unsupported_locale","condition_no_values","duplicate_option","preselect_not_offered","express_non_wallet","unknown_placeholder","auto_ordering_few_options","card_field_unsupported","schedule_expired","asset_missing","option_never_visible","velocity_field_unknown","velocity_field_uncomputable","velocity_absent_matches","option_cannot_receive"]},"message":{"type":"string"},"variantId":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}}},"required":["code","message"],"additionalProperties":false}}},"required":["errors","warnings"],"additionalProperties":false}},"required":["version","validation"],"additionalProperties":false}}}},"202":{"description":"202","content":{"application/json":{"schema":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"scheduled"},"version":{"type":"object","properties":{"id":{"type":"string"},"checkoutId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":["string","null"]},"publishedBy":{"type":"string"},"publishedByName":{"type":["string","null"]},"publishedAt":{"type":"string"},"isLive":{"type":"boolean"},"status":{"type":"string","enum":["live","scheduled","superseded","cancelled"]},"publishAt":{"type":["string","null"]},"doc":{"type":"object","properties":{"schemaVersion":{"type":"number","const":1},"base":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"trustLine":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"payButton":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cardDetailsTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"saveCardLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cancelLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"successTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"failureTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"footerText":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsUrl":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"lastUsedBadge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"}},"additionalProperties":false,"description":"Copy overrides per content key"}},"required":["theme","layout","content"],"additionalProperties":false},"variants":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"enabled":{"type":"boolean"},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false},"experiment":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"status":{"type":"string","enum":["running","stopped"]},"arms":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"weight":{"type":"number","minimum":0,"maximum":10000,"description":"Relative traffic share (> 0 to publish)"},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false}},"required":["id","name","weight"],"additionalProperties":false,"description":"Experiment arm: replaces the variant's options and/or deep-merges overrides"}}},"required":["id","status","arms"],"additionalProperties":false,"description":"A/B experiment; the first arm is the control"},"optionOrdering":{"type":"string","enum":["manual","auto"]},"schedule":{"type":"object","properties":{"from":{"description":"Inclusive start (ISO 8601)","type":"string","maxLength":64},"until":{"description":"Exclusive end (ISO 8601)","type":"string","maxLength":64}},"additionalProperties":false}},"required":["id","name","enabled","conditions","options"],"additionalProperties":false}},"timezone":{"type":"string","maxLength":64},"tagManager":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"maxLength":32},"consentDefault":{"type":"string","enum":["denied","granted"]}},"required":["containerId"],"additionalProperties":false},"facts":{"type":"object","properties":{"metadata":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":90,"description":"Property path inside metadata (`kycStatus`, `player.tier`)"},"label":{"type":"string","minLength":1,"maxLength":60},"type":{"type":"string","enum":["string","number","boolean","enum"]},"options":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}}},"required":["path","label","type"],"additionalProperties":false}}},"additionalProperties":false,"description":"The merchant metadata properties conditions may read (`metadata.<path>`)"},"hideRuleBlockedOptions":{"type":"boolean"}},"required":["schemaVersion","base","variants"],"additionalProperties":false,"description":"Checkout builder document"}},"required":["id","checkoutId","version","note","publishedBy","publishedAt","isLive","status","publishAt","doc"],"additionalProperties":false,"description":"Published checkout version"},"validation":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["schema_invalid","no_variants","no_enabled_variants","no_catch_all","duplicate_variant_id","variant_no_options","unknown_option","unknown_condition_field","invalid_condition_operator","invalid_condition_value","required_section_hidden","custom_css_not_enabled","insecure_logo_url","insecure_content_url","platform_branding","experiment_invalid","schedule_invalid","timezone_invalid","tag_manager_container_invalid","metadata_field_undeclared","metadata_declaration_invalid","option_visibility_empty_allow","shadowed_variant","option_not_routable","low_contrast","wallet_impossible_device","locale_gap","unsupported_locale","condition_no_values","duplicate_option","preselect_not_offered","express_non_wallet","unknown_placeholder","auto_ordering_few_options","card_field_unsupported","schedule_expired","asset_missing","option_never_visible","velocity_field_unknown","velocity_field_uncomputable","velocity_absent_matches","option_cannot_receive"]},"message":{"type":"string"},"variantId":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}}},"required":["code","message"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["schema_invalid","no_variants","no_enabled_variants","no_catch_all","duplicate_variant_id","variant_no_options","unknown_option","unknown_condition_field","invalid_condition_operator","invalid_condition_value","required_section_hidden","custom_css_not_enabled","insecure_logo_url","insecure_content_url","platform_branding","experiment_invalid","schedule_invalid","timezone_invalid","tag_manager_container_invalid","metadata_field_undeclared","metadata_declaration_invalid","option_visibility_empty_allow","shadowed_variant","option_not_routable","low_contrast","wallet_impossible_device","locale_gap","unsupported_locale","condition_no_values","duplicate_option","preselect_not_offered","express_non_wallet","unknown_placeholder","auto_ordering_few_options","card_field_unsupported","schedule_expired","asset_missing","option_never_visible","velocity_field_unknown","velocity_field_uncomputable","velocity_absent_matches","option_cannot_receive"]},"message":{"type":"string"},"variantId":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}}},"required":["code","message"],"additionalProperties":false}}},"required":["errors","warnings"],"additionalProperties":false}},"required":["kind","version","validation"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"approval_required"},"publishRequest":{"type":"object","properties":{"id":{"type":"string"},"checkoutId":{"type":"string"},"checkoutName":{"type":"string"},"customerId":{"type":["string","null"]},"draftRevision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":["string","null"]},"publishAt":{"type":["string","null"]},"status":{"type":"string","enum":["pending","approved","rejected","cancelled"]},"requestedBy":{"type":"string"},"requestedByName":{"type":["string","null"]},"requestedAt":{"type":"string"},"decidedBy":{"type":["string","null"]},"decidedByName":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"decisionReason":{"type":["string","null"]},"versionId":{"type":["string","null"]}},"required":["id","checkoutId","checkoutName","draftRevision","note","publishAt","status","requestedBy","requestedAt","decidedBy","decidedAt","decisionReason","versionId"],"additionalProperties":false,"description":"Checkout publish request"},"validation":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["schema_invalid","no_variants","no_enabled_variants","no_catch_all","duplicate_variant_id","variant_no_options","unknown_option","unknown_condition_field","invalid_condition_operator","invalid_condition_value","required_section_hidden","custom_css_not_enabled","insecure_logo_url","insecure_content_url","platform_branding","experiment_invalid","schedule_invalid","timezone_invalid","tag_manager_container_invalid","metadata_field_undeclared","metadata_declaration_invalid","option_visibility_empty_allow","shadowed_variant","option_not_routable","low_contrast","wallet_impossible_device","locale_gap","unsupported_locale","condition_no_values","duplicate_option","preselect_not_offered","express_non_wallet","unknown_placeholder","auto_ordering_few_options","card_field_unsupported","schedule_expired","asset_missing","option_never_visible","velocity_field_unknown","velocity_field_uncomputable","velocity_absent_matches","option_cannot_receive"]},"message":{"type":"string"},"variantId":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}}},"required":["code","message"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["schema_invalid","no_variants","no_enabled_variants","no_catch_all","duplicate_variant_id","variant_no_options","unknown_option","unknown_condition_field","invalid_condition_operator","invalid_condition_value","required_section_hidden","custom_css_not_enabled","insecure_logo_url","insecure_content_url","platform_branding","experiment_invalid","schedule_invalid","timezone_invalid","tag_manager_container_invalid","metadata_field_undeclared","metadata_declaration_invalid","option_visibility_empty_allow","shadowed_variant","option_not_routable","low_contrast","wallet_impossible_device","locale_gap","unsupported_locale","condition_no_values","duplicate_option","preselect_not_offered","express_non_wallet","unknown_placeholder","auto_ordering_few_options","card_field_unsupported","schedule_expired","asset_missing","option_never_visible","velocity_field_unknown","velocity_field_uncomputable","velocity_absent_matches","option_cannot_receive"]},"message":{"type":"string"},"variantId":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}}},"required":["code","message"],"additionalProperties":false}}},"required":["errors","warnings"],"additionalProperties":false}},"required":["kind","publishRequest","validation"],"additionalProperties":false}]}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"currentRevision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"draftUpdatedBy":{"type":["string","null"]},"draftUpdatedAt":{"type":["string","null"]}},"required":["message","currentRevision"],"additionalProperties":false}}}},"422":{"description":"422","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["schema_invalid","no_variants","no_enabled_variants","no_catch_all","duplicate_variant_id","variant_no_options","unknown_option","unknown_condition_field","invalid_condition_operator","invalid_condition_value","required_section_hidden","custom_css_not_enabled","insecure_logo_url","insecure_content_url","platform_branding","experiment_invalid","schedule_invalid","timezone_invalid","tag_manager_container_invalid","metadata_field_undeclared","metadata_declaration_invalid","option_visibility_empty_allow","shadowed_variant","option_not_routable","low_contrast","wallet_impossible_device","locale_gap","unsupported_locale","condition_no_values","duplicate_option","preselect_not_offered","express_non_wallet","unknown_placeholder","auto_ordering_few_options","card_field_unsupported","schedule_expired","asset_missing","option_never_visible","velocity_field_unknown","velocity_field_uncomputable","velocity_absent_matches","option_cannot_receive"]},"message":{"type":"string"},"variantId":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}}},"required":["code","message"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["schema_invalid","no_variants","no_enabled_variants","no_catch_all","duplicate_variant_id","variant_no_options","unknown_option","unknown_condition_field","invalid_condition_operator","invalid_condition_value","required_section_hidden","custom_css_not_enabled","insecure_logo_url","insecure_content_url","platform_branding","experiment_invalid","schedule_invalid","timezone_invalid","tag_manager_container_invalid","metadata_field_undeclared","metadata_declaration_invalid","option_visibility_empty_allow","shadowed_variant","option_not_routable","low_contrast","wallet_impossible_device","locale_gap","unsupported_locale","condition_no_values","duplicate_option","preselect_not_offered","express_non_wallet","unknown_placeholder","auto_ordering_few_options","card_field_unsupported","schedule_expired","asset_missing","option_never_visible","velocity_field_unknown","velocity_field_uncomputable","velocity_absent_matches","option_cannot_receive"]},"message":{"type":"string"},"variantId":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}}},"required":["code","message"],"additionalProperties":false}}},"required":["message","errors","warnings"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/checkouts/{id}/versions/{versionId}/cancel":{"post":{"description":"Marks a `scheduled` version `cancelled`; it will never go live. 409 when the version is not scheduled (already live, superseded or cancelled).","summary":"Cancel a scheduled version","tags":["checkouts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"checkoutId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":["string","null"]},"publishedBy":{"type":"string"},"publishedByName":{"type":["string","null"]},"publishedAt":{"type":"string"},"isLive":{"type":"boolean"},"status":{"type":"string","enum":["live","scheduled","superseded","cancelled"]},"publishAt":{"type":["string","null"]}},"required":["id","checkoutId","version","note","publishedBy","publishedAt","isLive","status","publishAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/checkouts/{id}/versions":{"get":{"description":"Newest first.","summary":"List published versions","tags":["checkouts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"checkoutId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":["string","null"]},"publishedBy":{"type":"string"},"publishedByName":{"type":["string","null"]},"publishedAt":{"type":"string"},"isLive":{"type":"boolean"},"status":{"type":"string","enum":["live","scheduled","superseded","cancelled"]},"publishAt":{"type":["string","null"]}},"required":["id","checkoutId","version","note","publishedBy","publishedAt","isLive","status","publishAt"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/checkouts/{id}/versions/{versionId}":{"get":{"summary":"Get a published version","tags":["checkouts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Published checkout version","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"checkoutId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":["string","null"]},"publishedBy":{"type":"string"},"publishedByName":{"type":["string","null"]},"publishedAt":{"type":"string"},"isLive":{"type":"boolean"},"status":{"type":"string","enum":["live","scheduled","superseded","cancelled"]},"publishAt":{"type":["string","null"]},"doc":{"type":"object","properties":{"schemaVersion":{"type":"number","const":1},"base":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"trustLine":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"payButton":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cardDetailsTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"saveCardLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cancelLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"successTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"failureTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"footerText":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsUrl":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"lastUsedBadge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"}},"additionalProperties":false,"description":"Copy overrides per content key"}},"required":["theme","layout","content"],"additionalProperties":false},"variants":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"enabled":{"type":"boolean"},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false},"experiment":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"status":{"type":"string","enum":["running","stopped"]},"arms":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"weight":{"type":"number","minimum":0,"maximum":10000,"description":"Relative traffic share (> 0 to publish)"},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false}},"required":["id","name","weight"],"additionalProperties":false,"description":"Experiment arm: replaces the variant's options and/or deep-merges overrides"}}},"required":["id","status","arms"],"additionalProperties":false,"description":"A/B experiment; the first arm is the control"},"optionOrdering":{"type":"string","enum":["manual","auto"]},"schedule":{"type":"object","properties":{"from":{"description":"Inclusive start (ISO 8601)","type":"string","maxLength":64},"until":{"description":"Exclusive end (ISO 8601)","type":"string","maxLength":64}},"additionalProperties":false}},"required":["id","name","enabled","conditions","options"],"additionalProperties":false}},"timezone":{"type":"string","maxLength":64},"tagManager":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"maxLength":32},"consentDefault":{"type":"string","enum":["denied","granted"]}},"required":["containerId"],"additionalProperties":false},"facts":{"type":"object","properties":{"metadata":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":90,"description":"Property path inside metadata (`kycStatus`, `player.tier`)"},"label":{"type":"string","minLength":1,"maxLength":60},"type":{"type":"string","enum":["string","number","boolean","enum"]},"options":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}}},"required":["path","label","type"],"additionalProperties":false}}},"additionalProperties":false,"description":"The merchant metadata properties conditions may read (`metadata.<path>`)"},"hideRuleBlockedOptions":{"type":"boolean"}},"required":["schemaVersion","base","variants"],"additionalProperties":false,"description":"Checkout builder document"}},"required":["id","checkoutId","version","note","publishedBy","publishedAt","isLive","status","publishAt","doc"],"additionalProperties":false,"description":"Published checkout version"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/checkouts/{id}/rollback":{"post":{"description":"Makes an older version live again. No new version is created and the draft is untouched.","summary":"Roll back the live version","tags":["checkouts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"versionId":{"type":"string"}},"required":["versionId"]}}}},"responses":{"200":{"description":"Checkout summary","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string"},"customerId":{"type":["string","null"]},"scope":{"type":"string","enum":["organization","customer"]},"name":{"type":"string"},"slug":{"type":"string","minLength":3,"maxLength":256,"pattern":"^[a-z0-9-]+$"},"isDefault":{"type":"boolean"},"applicationSlugIds":{"type":"array","items":{"type":"string"}},"allowRequestAppearance":{"type":"boolean","description":"Deprecated — read `requestAppearanceMode`. True unless `requestAppearanceMode` is `ignore`."},"requestAppearanceMode":{"type":"string","enum":["fill","override","ignore"],"description":"How the `appearance` an integration sends with a checkout session combines with this checkout's published design. `fill` (default): the design wins — the request only fills in fields the design leaves unset (per colour key, per flat field, per field inside each token group; `customCss` only when the design has none). `override`: the request's values replace the design's, field by field. `ignore`: the request appearance is not used while this design serves the session. Sessions without a published design always use the request appearance as their whole theme."},"liveVersionId":{"type":["string","null"]},"liveVersionNumber":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"lastPublishedAt":{"type":["string","null"]},"variantsCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"draftRevision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"draftUpdatedAt":{"type":["string","null"]},"draftUpdatedBy":{"type":["string","null"]},"hasUnpublishedChanges":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"scheduledVersionId":{"type":["string","null"]},"scheduledPublishAt":{"type":["string","null"]},"pendingPublishRequestId":{"type":["string","null"]}},"required":["id","organizationId","customerId","scope","name","slug","isDefault","applicationSlugIds","allowRequestAppearance","requestAppearanceMode","liveVersionId","liveVersionNumber","lastPublishedAt","variantsCount","draftRevision","draftUpdatedAt","draftUpdatedBy","hasUnpublishedChanges","createdAt","updatedAt"],"additionalProperties":false,"description":"Checkout summary"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/checkouts/{id}/simulate":{"post":{"description":"Which variant a shopper with these facts gets, and why (per-condition pass/fail).","summary":"Simulate variant matching","tags":["checkouts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"facts":{"type":"object","properties":{"shopper":{"type":"object","properties":{"country":{"type":"string","maxLength":3},"ipCountry":{"type":"string","maxLength":3},"returning":{"type":"boolean"},"lastUsedOption":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}}},"time":{"description":"Simulated render time; omitted fields are computed from `now` in the doc timezone","type":"object","properties":{"dayOfWeek":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]},"hour":{"type":"integer","minimum":0,"maximum":23}}},"amount":{"type":"object","properties":{"currency":{"type":"string","maxLength":8},"value":{"anyOf":[{"type":"string","maxLength":40},{"type":"number"}]}}},"device":{"type":"object","properties":{"type":{"type":"string","enum":["mobile","tablet","desktop"]},"os":{"type":"string","enum":["ios","android","macos","windows","linux","chromeos","other"]}}},"browser":{"type":"string","enum":["safari","chrome","firefox","edge","samsung","opera","other"]},"locale":{"type":"string","maxLength":35},"direction":{"type":"string","enum":["debit","credit"]},"application":{"type":"string","maxLength":100},"embedMode":{"type":"string","enum":["iframe","redirect"]},"customer":{"type":"string","maxLength":100},"metadata":{"description":"The merchant's metadata (`metadata.*` conditions)","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"velocity":{"description":"BabelPay counts before this payment, nested by output field (`velocity.depositCount` → `{ depositCount: 3 }`)","type":"object","propertyNames":{"type":"string","maxLength":100},"additionalProperties":{}},"customerUser":{"description":"The player's user-account record (`customerUser.*` conditions)","type":"object","properties":{"status":{"type":"string","enum":["active","blocked"]},"flagged":{"type":"boolean"},"flagCodes":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":40}}}}},"description":"Shopper facts to match variant conditions against"},"useDraft":{"type":"boolean"},"locale":{"type":"string","maxLength":35},"now":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"stickyKey":{"type":"string","maxLength":200},"armId":{"type":"string","maxLength":64},"player":{"type":"object","properties":{"userId":{"type":"string","maxLength":200},"email":{"type":"string","maxLength":320},"customerId":{"type":"string","maxLength":100}}}},"required":["facts"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"variantId":{"type":["string","null"]},"trace":{"type":"array","items":{"type":"object","properties":{"variantId":{"type":"string"},"name":{"type":"string"},"enabled":{"type":"boolean"},"matched":{"type":"boolean"},"outsideSchedule":{"type":"boolean"},"conditions":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"op":{"type":"string"},"values":{"type":"array","items":{"type":["string","number","boolean"]}},"actual":{},"pass":{"type":"boolean"},"ignored":{"type":"boolean"},"source":{"type":"string"}},"required":["field","op","values","actual","pass"],"additionalProperties":false}}},"required":["variantId","name","enabled","matched","conditions"],"additionalProperties":false}},"options":{"type":"array","items":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}},"hidden":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"by":{"type":"string","enum":["visibility","rule","settings"]},"visibility":{"type":"object","properties":{"option":{"type":"string"},"visible":{"type":"boolean"},"countries":{"type":"object","properties":{"field":{"type":"string"},"mode":{"type":"string","enum":["allow","block"]},"values":{"type":"array","items":{"type":"string"}},"actual":{"type":"string"},"pass":{"type":"boolean"}},"required":["field","mode","values","pass"],"additionalProperties":false},"conditions":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"op":{"type":"string"},"values":{"type":"array","items":{"type":["string","number","boolean"]}},"actual":{},"pass":{"type":"boolean"},"ignored":{"type":"boolean"},"source":{"type":"string"}},"required":["field","op","values","actual","pass"],"additionalProperties":false}}},"required":["option","visible","conditions"],"additionalProperties":false},"tableId":{"type":"string"},"tableName":{"type":"string"},"ruleId":{"type":"string"},"statusCode":{"type":"string"},"maybeRowIds":{"type":"array","items":{"type":"string"}}},"required":["option","by"],"additionalProperties":false}},"presentation":{"anyOf":[{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"default":true,"description":"Promote, preselect and badge the shopper's last-used option (default true)","type":"boolean"},"lastUsedCount":{"default":1,"description":"How many of the shopper's most recently used options lead the list (1-3)","type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"default":["VISA","MASTERCARD","AMEX"],"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"required":["fieldLayout","showCardholderName","showSaveCard","showBrandIcons","brandIcons"],"additionalProperties":false},"showResult":{"default":true,"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"required":["template","optionsDisplay","maxVisibleOptions","preselect","promoteLastUsed","lastUsedCount","sections","cardForm","showResult"],"additionalProperties":false,"description":"Resolved checkout layout"},"content":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"options":{"type":"array","items":{"type":"object","properties":{"type":{"type":"string","enum":["card-debit-new","card-debit-token","card-debit-grant","card-credit-token","ideal-debit","bancontact-debit","paypal-debit","klarna-debit","pay-by-bank-debit","swish-debit","vipps-debit","mobilepay-debit","trustly-debit","paysafecard-debit","skrill-debit","neteller-debit","play-plus-debit","mifinity-debit","vip-preferred-debit","safetypay-debit","jeton-debit","eps-debit","przelewy24-debit","twint-debit","alipay-debit","blik-debit","bizum-debit","mb-way-debit","multibanco-debit","astropay-debit","pix-debit","spei-debit","oxxo-debit","pse-debit","efecty-debit","cash-at-retail-debit","local-bank-transfer-debit","interac-debit","applepay-debit","googlepay-debit","crypto-onramp-debit","crypto-accept-debit","swish-credit","trustly-credit","paysafecard-credit","skrill-credit","neteller-credit","astropay-credit","local-bank-transfer-credit","interac-credit","play-plus-credit","mifinity-credit","vip-preferred-credit","jeton-credit","paypal-credit","crypto-accept-credit","pay-by-bank-credit"],"description":"Payment option type identifier"},"paymentOption":{"description":"Canonical PSP-independent payment option this entry belongs to","type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"displayName":{"description":"User-facing display name. Always the payment option — never the underlying gateway.","type":"string"},"flow":{"description":"How the option is completed: inline card entry, a redirect that continues in the payment method's own page, a device-wallet sheet raised in the checkout page itself, or (withdrawals) a payout to a destination chosen in the page.","type":"string","enum":["inline-card","redirect","wallet","payout"]},"redirectDisplay":{"description":"How a redirect-flow option's provider page is displayed: in the checkout overlay iframe, or a popup handoff (bank/wallet pages routinely refuse framing via X-Frame-Options).","type":"string","enum":["iframe","popup"]},"fields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string","description":"Field name"},"type":{"type":"string","enum":["string","number","boolean"],"description":"Field type"},"required":{"type":"boolean","description":"Whether the field is required"},"label":{"type":"string","description":"Display label for the field"},"placeholder":{"description":"Placeholder text","type":"string"},"regex":{"description":"Validation regex pattern","type":"string"}},"required":["name","type","required","label"],"additionalProperties":false,"description":"Schema for a payment option field"},"description":"Fields required for this payment option"},"icon":{"description":"Icon URL or name","type":"string"},"wallet":{"description":"Setup for a `wallet`-flow option's sheet, filled in by the routed provider","type":"object","properties":{"environment":{"type":"string","enum":["TEST","PRODUCTION"],"description":"Wallet environment the provider's credentials belong to"},"merchantName":{"type":"string","maxLength":128,"description":"Name the sheet shows the shopper as the payee"},"countryCode":{"type":"string","minLength":2,"maxLength":2,"description":"Merchant country, ISO 3166-1 alpha-2"},"supportedNetworks":{"minItems":1,"type":"array","items":{"type":"string","maxLength":32},"description":"Card networks the processor accepts, in the wallet's vocabulary"},"merchantCapabilities":{"description":"Apple Pay merchant capabilities (e.g. supports3DS)","type":"array","items":{"type":"string","maxLength":32}},"allowedAuthMethods":{"description":"Google Pay auth methods (e.g. PAN_ONLY, CRYPTOGRAM_3DS)","type":"array","items":{"type":"string","maxLength":32}},"gateway":{"description":"Google Pay gateway identifier — opaque to the checkout","type":"string","maxLength":64},"gatewayMerchantId":{"description":"Google Pay gateway merchant id — opaque to the checkout","type":"string","maxLength":128},"merchantId":{"description":"Google Pay merchant id issued by Google, required in PRODUCTION","type":"string","maxLength":128},"requiresMerchantSession":{"description":"Apple Pay: the page must call POST /checkout/wallet/session to validate the merchant before the sheet can proceed","type":"boolean"},"vault":{"description":"Set when a card vault, not the processor, decrypts the wallet token: the page raises the sheet through the vault's wallet component and posts back a network token","type":"object","properties":{"provider":{"type":"string","const":"evervault","description":"Card vault whose wallet component raises the sheet"},"teamId":{"type":"string","minLength":1,"maxLength":64,"description":"Evervault team id (public)"},"appId":{"type":"string","minLength":1,"maxLength":64,"description":"Evervault app id (public); the app whose key encrypts the network token"},"merchantId":{"type":"string","minLength":1,"maxLength":128,"description":"Evervault merchant id the wallet transaction is created under"}},"required":["provider","teamId","appId","merchantId"],"additionalProperties":false}},"required":["environment","merchantName","countryCode","supportedNetworks"],"additionalProperties":false},"payoutInstrument":{"description":"Withdrawals: the shopper's payout destination this entry pays to","type":"object","properties":{"id":{"type":"string","description":"What a withdrawal names as `instrumentId`"},"kind":{"type":"string","enum":["iban","wallet"],"description":"A bank account, or an account or wallet at the payment method"},"masked":{"type":"string","description":"The destination as the shopper may see it: a masked IBAN, a masked phone or email"},"holderName":{"description":"The account holder, when known","type":"string"}},"required":["id","kind","masked"],"additionalProperties":false},"presentation":{"type":"object","properties":{"label":{"type":"string"},"description":{"type":"string"},"badge":{"type":"string"},"placement":{"type":"string","enum":["express","list"]},"lastUsed":{"type":"boolean"}},"required":["placement"],"additionalProperties":false}},"required":["type","fields"],"additionalProperties":false}},"meta":{"type":"object","properties":{"checkoutId":{"type":"string"},"versionId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"variantId":{"type":"string"},"variantName":{"type":"string"},"preview":{"type":"boolean"},"viewToken":{"type":"string"},"clientEventsEnabled":{"type":"boolean"},"lastUsed":{"type":"object","properties":{"option":{"type":"string"},"tokenId":{"type":"string"},"promoted":{"type":"boolean"}},"required":["option","promoted"],"additionalProperties":false},"pinnedOption":{"type":"string"},"experimentId":{"type":"string"},"armId":{"type":"string"},"autoOrdered":{"type":"boolean"}},"additionalProperties":false},"tagManager":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"maxLength":32},"consentDefault":{"type":"string","enum":["denied","granted"]}},"required":["containerId"],"additionalProperties":false}},"required":["theme","layout","content","options","meta"],"additionalProperties":false,"description":"Resolved checkout presentation for this session"},{"type":"null"}]},"experimentId":{"type":["string","null"]},"armId":{"type":["string","null"]},"time":{"type":"object","properties":{"dayOfWeek":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]},"hour":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["dayOfWeek","hour"],"additionalProperties":false},"player":{"type":"object","properties":{"velocity":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"unavailable":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"customerUser":{"type":"object","properties":{"status":{"type":"string","enum":["active","blocked"]},"flagged":{"type":"boolean"},"flagCodes":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}},"required":["unavailable"],"additionalProperties":false}},"required":["variantId","trace","options","presentation"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/checkouts/{id}/preview-token":{"post":{"description":"Short-lived `pv_` token authorizing the builder's preview iframe on the checkout host.","summary":"Mint a preview token","tags":["checkouts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"token":{"type":"string"},"expiresAt":{"type":"string"},"previewOrigin":{"type":"string"}},"required":["token","expiresAt","previewOrigin"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/checkouts/{id}/preview/interstitial":{"post":{"description":"Renders one of the payment-flow pages served after the checkout (retry, 3DS hand-off, email code, processing, result) with a draft variant's theme, exactly as the real page would — returned as an inert HTML document for a sandboxed srcdoc iframe.","summary":"Preview an interstitial page","tags":["checkouts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"doc":{"type":"object","properties":{"schemaVersion":{"type":"number","const":1},"base":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"trustLine":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"payButton":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cardDetailsTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"saveCardLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cancelLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"successTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"failureTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"footerText":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsUrl":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"lastUsedBadge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"}},"additionalProperties":false,"description":"Copy overrides per content key"}},"required":["theme","layout","content"],"additionalProperties":false},"variants":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"enabled":{"type":"boolean"},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field"],"description":"A single search filter"}},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field"],"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false},"experiment":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"status":{"type":"string","enum":["running","stopped"]},"arms":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"weight":{"type":"number","minimum":0,"maximum":10000,"description":"Relative traffic share (> 0 to publish)"},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field"],"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false}},"required":["id","name","weight"],"additionalProperties":false,"description":"Experiment arm: replaces the variant's options and/or deep-merges overrides"}}},"required":["id","status","arms"],"additionalProperties":false,"description":"A/B experiment; the first arm is the control"},"optionOrdering":{"type":"string","enum":["manual","auto"]},"schedule":{"type":"object","properties":{"from":{"description":"Inclusive start (ISO 8601)","type":"string","maxLength":64},"until":{"description":"Exclusive end (ISO 8601)","type":"string","maxLength":64}},"additionalProperties":false}},"required":["id","name","enabled","conditions","options"],"additionalProperties":false}},"timezone":{"type":"string","maxLength":64},"tagManager":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"maxLength":32},"consentDefault":{"type":"string","enum":["denied","granted"]}},"required":["containerId"],"additionalProperties":false},"facts":{"type":"object","properties":{"metadata":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":90,"description":"Property path inside metadata (`kycStatus`, `player.tier`)"},"label":{"type":"string","minLength":1,"maxLength":60},"type":{"type":"string","enum":["string","number","boolean","enum"]},"options":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}}},"required":["path","label","type"],"additionalProperties":false}}},"additionalProperties":false,"description":"The merchant metadata properties conditions may read (`metadata.<path>`)"},"hideRuleBlockedOptions":{"type":"boolean"}},"required":["schemaVersion","base","variants"],"additionalProperties":false,"description":"Checkout builder document"},"variantId":{"type":"string","maxLength":64},"armId":{"type":"string","maxLength":64},"screen":{"type":"string","enum":["retry","3ds","email-otp","processing","result-success","result-failure"]},"locale":{"type":"string","maxLength":35}},"required":["doc","screen"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"html":{"type":"string"},"variantId":{"type":["string","null"]}},"required":["html","variantId"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/checkouts/{id}/preview-link":{"post":{"description":"Stores a snapshot of the posted (unsaved) doc for 30 minutes and returns a `pl_` link on the checkout host that renders it top-level — inert, with the preview ribbon, `noindex`, `no-store`. Show it as a QR code. Anyone holding the link can view the preview until it expires.","summary":"Open a draft on a phone","tags":["checkouts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"doc":{"type":"object","properties":{"schemaVersion":{"type":"number","const":1},"base":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"trustLine":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"payButton":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cardDetailsTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"saveCardLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cancelLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"successTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"failureTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"footerText":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsUrl":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"lastUsedBadge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"}},"additionalProperties":false,"description":"Copy overrides per content key"}},"required":["theme","layout","content"],"additionalProperties":false},"variants":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"enabled":{"type":"boolean"},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field"],"description":"A single search filter"}},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field"],"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false},"experiment":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"status":{"type":"string","enum":["running","stopped"]},"arms":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"weight":{"type":"number","minimum":0,"maximum":10000,"description":"Relative traffic share (> 0 to publish)"},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field"],"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false}},"required":["id","name","weight"],"additionalProperties":false,"description":"Experiment arm: replaces the variant's options and/or deep-merges overrides"}}},"required":["id","status","arms"],"additionalProperties":false,"description":"A/B experiment; the first arm is the control"},"optionOrdering":{"type":"string","enum":["manual","auto"]},"schedule":{"type":"object","properties":{"from":{"description":"Inclusive start (ISO 8601)","type":"string","maxLength":64},"until":{"description":"Exclusive end (ISO 8601)","type":"string","maxLength":64}},"additionalProperties":false}},"required":["id","name","enabled","conditions","options"],"additionalProperties":false}},"timezone":{"type":"string","maxLength":64},"tagManager":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"maxLength":32},"consentDefault":{"type":"string","enum":["denied","granted"]}},"required":["containerId"],"additionalProperties":false},"facts":{"type":"object","properties":{"metadata":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":90,"description":"Property path inside metadata (`kycStatus`, `player.tier`)"},"label":{"type":"string","minLength":1,"maxLength":60},"type":{"type":"string","enum":["string","number","boolean","enum"]},"options":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}}},"required":["path","label","type"],"additionalProperties":false}}},"additionalProperties":false,"description":"The merchant metadata properties conditions may read (`metadata.<path>`)"},"hideRuleBlockedOptions":{"type":"boolean"}},"required":["schemaVersion","base","variants"],"additionalProperties":false,"description":"Checkout builder document"},"variantId":{"type":"string","maxLength":64},"armId":{"type":"string","maxLength":64},"facts":{"type":"object","properties":{"shopper":{"type":"object","properties":{"country":{"type":"string","maxLength":3},"ipCountry":{"type":"string","maxLength":3},"returning":{"type":"boolean"},"lastUsedOption":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}}},"time":{"description":"Simulated render time; omitted fields are computed from `now` in the doc timezone","type":"object","properties":{"dayOfWeek":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]},"hour":{"type":"integer","minimum":0,"maximum":23}}},"amount":{"type":"object","properties":{"currency":{"type":"string","maxLength":8},"value":{"anyOf":[{"type":"string","maxLength":40},{"type":"number"}]}}},"device":{"type":"object","properties":{"type":{"type":"string","enum":["mobile","tablet","desktop"]},"os":{"type":"string","enum":["ios","android","macos","windows","linux","chromeos","other"]}}},"browser":{"type":"string","enum":["safari","chrome","firefox","edge","samsung","opera","other"]},"locale":{"type":"string","maxLength":35},"direction":{"type":"string","enum":["debit","credit"]},"application":{"type":"string","maxLength":100},"embedMode":{"type":"string","enum":["iframe","redirect"]},"customer":{"type":"string","maxLength":100},"metadata":{"description":"The merchant's metadata (`metadata.*` conditions)","type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"velocity":{"description":"BabelPay counts before this payment, nested by output field (`velocity.depositCount` → `{ depositCount: 3 }`)","type":"object","propertyNames":{"type":"string","maxLength":100},"additionalProperties":{}},"customerUser":{"description":"The player's user-account record (`customerUser.*` conditions)","type":"object","properties":{"status":{"type":"string","enum":["active","blocked"]},"flagged":{"type":"boolean"},"flagCodes":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":40}}}}},"description":"Shopper facts to match variant conditions against"},"locale":{"type":"string","maxLength":35},"screen":{"type":"string","enum":["form","processing","3ds","retry","result-success","result-failure","email-otp"]},"hiddenOptions":{"maxItems":20,"type":"array","items":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}}},"required":["doc"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"expiresAt":{"type":"string"}},"required":["url","expiresAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/publish-requests":{"get":{"description":"Publish requests of the selected context, newest first. Uncounted: `meta.hasMore` drives the pager; pass `count=true` for `meta.total`.","summary":"List publish requests","tags":["checkouts"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"customerId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"sort","in":"query","schema":{"type":"string","enum":["asc","desc"]}},{"name":"page","in":"query","schema":{"default":1,"type":"number","minimum":1}},{"name":"limit","in":"query","schema":{"default":100,"type":"number","minimum":1}},{"name":"dateRange","in":"query","style":"deepObject","schema":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}}},{"name":"refresh","in":"query","schema":{"type":"boolean"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["status","checkoutId"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}},{"name":"count","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"checkoutId":{"type":"string"},"checkoutName":{"type":"string"},"customerId":{"type":["string","null"]},"draftRevision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":["string","null"]},"publishAt":{"type":["string","null"]},"status":{"type":"string","enum":["pending","approved","rejected","cancelled"]},"requestedBy":{"type":"string"},"requestedByName":{"type":["string","null"]},"requestedAt":{"type":"string"},"decidedBy":{"type":["string","null"]},"decidedByName":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"decisionReason":{"type":["string","null"]},"versionId":{"type":["string","null"]}},"required":["id","checkoutId","checkoutName","draftRevision","note","publishAt","status","requestedBy","requestedAt","decidedBy","decidedAt","decisionReason","versionId"],"additionalProperties":false,"description":"Checkout publish request"}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/publish-requests/{requestId}":{"get":{"description":"The request with the doc snapshot it would publish and that snapshot's current validation.","summary":"Get a publish request","tags":["checkouts"],"parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Checkout publish request with its doc snapshot","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"checkoutId":{"type":"string"},"checkoutName":{"type":"string"},"customerId":{"type":["string","null"]},"draftRevision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":["string","null"]},"publishAt":{"type":["string","null"]},"status":{"type":"string","enum":["pending","approved","rejected","cancelled"]},"requestedBy":{"type":"string"},"requestedByName":{"type":["string","null"]},"requestedAt":{"type":"string"},"decidedBy":{"type":["string","null"]},"decidedByName":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"decisionReason":{"type":["string","null"]},"versionId":{"type":["string","null"]},"doc":{"type":"object","properties":{"schemaVersion":{"type":"number","const":1},"base":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"trustLine":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"payButton":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cardDetailsTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"saveCardLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cancelLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"successTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"failureTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"footerText":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsUrl":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"lastUsedBadge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"}},"additionalProperties":false,"description":"Copy overrides per content key"}},"required":["theme","layout","content"],"additionalProperties":false},"variants":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"enabled":{"type":"boolean"},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false},"experiment":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"status":{"type":"string","enum":["running","stopped"]},"arms":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"weight":{"type":"number","minimum":0,"maximum":10000,"description":"Relative traffic share (> 0 to publish)"},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false}},"required":["id","name","weight"],"additionalProperties":false,"description":"Experiment arm: replaces the variant's options and/or deep-merges overrides"}}},"required":["id","status","arms"],"additionalProperties":false,"description":"A/B experiment; the first arm is the control"},"optionOrdering":{"type":"string","enum":["manual","auto"]},"schedule":{"type":"object","properties":{"from":{"description":"Inclusive start (ISO 8601)","type":"string","maxLength":64},"until":{"description":"Exclusive end (ISO 8601)","type":"string","maxLength":64}},"additionalProperties":false}},"required":["id","name","enabled","conditions","options"],"additionalProperties":false}},"timezone":{"type":"string","maxLength":64},"tagManager":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"maxLength":32},"consentDefault":{"type":"string","enum":["denied","granted"]}},"required":["containerId"],"additionalProperties":false},"facts":{"type":"object","properties":{"metadata":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":90,"description":"Property path inside metadata (`kycStatus`, `player.tier`)"},"label":{"type":"string","minLength":1,"maxLength":60},"type":{"type":"string","enum":["string","number","boolean","enum"]},"options":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}}},"required":["path","label","type"],"additionalProperties":false}}},"additionalProperties":false,"description":"The merchant metadata properties conditions may read (`metadata.<path>`)"},"hideRuleBlockedOptions":{"type":"boolean"}},"required":["schemaVersion","base","variants"],"additionalProperties":false,"description":"Checkout builder document"},"validation":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["schema_invalid","no_variants","no_enabled_variants","no_catch_all","duplicate_variant_id","variant_no_options","unknown_option","unknown_condition_field","invalid_condition_operator","invalid_condition_value","required_section_hidden","custom_css_not_enabled","insecure_logo_url","insecure_content_url","platform_branding","experiment_invalid","schedule_invalid","timezone_invalid","tag_manager_container_invalid","metadata_field_undeclared","metadata_declaration_invalid","option_visibility_empty_allow","shadowed_variant","option_not_routable","low_contrast","wallet_impossible_device","locale_gap","unsupported_locale","condition_no_values","duplicate_option","preselect_not_offered","express_non_wallet","unknown_placeholder","auto_ordering_few_options","card_field_unsupported","schedule_expired","asset_missing","option_never_visible","velocity_field_unknown","velocity_field_uncomputable","velocity_absent_matches","option_cannot_receive"]},"message":{"type":"string"},"variantId":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}}},"required":["code","message"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["schema_invalid","no_variants","no_enabled_variants","no_catch_all","duplicate_variant_id","variant_no_options","unknown_option","unknown_condition_field","invalid_condition_operator","invalid_condition_value","required_section_hidden","custom_css_not_enabled","insecure_logo_url","insecure_content_url","platform_branding","experiment_invalid","schedule_invalid","timezone_invalid","tag_manager_container_invalid","metadata_field_undeclared","metadata_declaration_invalid","option_visibility_empty_allow","shadowed_variant","option_not_routable","low_contrast","wallet_impossible_device","locale_gap","unsupported_locale","condition_no_values","duplicate_option","preselect_not_offered","express_non_wallet","unknown_placeholder","auto_ordering_few_options","card_field_unsupported","schedule_expired","asset_missing","option_never_visible","velocity_field_unknown","velocity_field_uncomputable","velocity_absent_matches","option_cannot_receive"]},"message":{"type":"string"},"variantId":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}}},"required":["code","message"],"additionalProperties":false}}},"required":["errors","warnings"],"additionalProperties":false}},"required":["id","checkoutId","checkoutName","draftRevision","note","publishAt","status","requestedBy","requestedAt","decidedBy","decidedAt","decisionReason","versionId","doc","validation"],"additionalProperties":false,"description":"Checkout publish request with its doc snapshot"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/publish-requests/{requestId}/approve":{"post":{"description":"Publishes the request's doc snapshot (or schedules it when the request carries `publishAt`). 403 when the approver is the requester — four eyes means two people. 409 when the request is no longer pending. 422 when the snapshot no longer validates.","summary":"Approve and publish","tags":["checkouts"],"parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string","maxLength":500}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"publishRequest":{"type":"object","properties":{"id":{"type":"string"},"checkoutId":{"type":"string"},"checkoutName":{"type":"string"},"customerId":{"type":["string","null"]},"draftRevision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":["string","null"]},"publishAt":{"type":["string","null"]},"status":{"type":"string","enum":["pending","approved","rejected","cancelled"]},"requestedBy":{"type":"string"},"requestedByName":{"type":["string","null"]},"requestedAt":{"type":"string"},"decidedBy":{"type":["string","null"]},"decidedByName":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"decisionReason":{"type":["string","null"]},"versionId":{"type":["string","null"]}},"required":["id","checkoutId","checkoutName","draftRevision","note","publishAt","status","requestedBy","requestedAt","decidedBy","decidedAt","decisionReason","versionId"],"additionalProperties":false,"description":"Checkout publish request"},"version":{"type":"object","properties":{"id":{"type":"string"},"checkoutId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":["string","null"]},"publishedBy":{"type":"string"},"publishedByName":{"type":["string","null"]},"publishedAt":{"type":"string"},"isLive":{"type":"boolean"},"status":{"type":"string","enum":["live","scheduled","superseded","cancelled"]},"publishAt":{"type":["string","null"]},"doc":{"type":"object","properties":{"schemaVersion":{"type":"number","const":1},"base":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"trustLine":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"payButton":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cardDetailsTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"saveCardLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"cancelLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"successTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"failureTitle":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"footerText":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsUrl":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"termsLabel":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"lastUsedBadge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"}},"additionalProperties":false,"description":"Copy overrides per content key"}},"required":["theme","layout","content"],"additionalProperties":false},"variants":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"enabled":{"type":"boolean"},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false},"experiment":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"status":{"type":"string","enum":["running","stopped"]},"arms":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":64,"pattern":"^[A-Za-z0-9_-]+$"},"name":{"type":"string","minLength":1,"maxLength":120},"weight":{"type":"number","minimum":0,"maximum":10000,"description":"Relative traffic share (> 0 to publish)"},"options":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"option":{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]},"label":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"description":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"badge":{"type":"object","properties":{"default":{"type":"string","maxLength":500}},"required":["default"],"additionalProperties":{"type":"string","maxLength":500},"description":"Copy with per-locale variants; `default` is used for any other locale"},"placement":{"type":"string","enum":["express","list"]},"visibility":{"type":"object","properties":{"countries":{"type":"object","properties":{"mode":{"type":"string","enum":["allow","block"]},"values":{"maxItems":250,"type":"array","items":{"type":"string","enum":["AFG","ALA","ALB","DZA","ASM","AND","AGO","AIA","ATA","ATG","ARG","ARM","ABW","AUS","AUT","AZE","BHS","BHR","BGD","BRB","BLR","BEL","BLZ","BEN","BMU","BTN","BOL","BES","BIH","BWA","BVT","BRA","IOT","VGB","BRN","BGR","BFA","BDI","KHM","CMR","CAN","CPV","CYM","CAF","TCD","CHL","CHN","CXR","CCK","COL","COM","COG","COD","COK","CRI","CIV","HRV","CUB","CUW","CYP","CZE","DNK","DJI","DMA","DOM","ECU","EGY","SLV","GNQ","ERI","EST","SWZ","ETH","FLK","FRO","FJI","FIN","FRA","GUF","PYF","ATF","GAB","GMB","GEO","DEU","GHA","GIB","GRC","GRL","GRD","GLP","GUM","GTM","GGY","GIN","GNB","GUY","HTI","HMD","HND","HKG","HUN","ISL","IND","IDN","IRN","IRQ","IRL","IMN","ISR","ITA","JAM","JPN","JEY","JOR","KAZ","KEN","KIR","PRK","KOR","KWT","KGZ","LAO","LVA","LBN","LSO","LBR","LBY","LIE","LTU","LUX","MAC","MKD","MDG","MWI","MYS","MDV","MLI","MLT","MHL","MTQ","MRT","MUS","MYT","MEX","FSM","MDA","MCO","MNG","MNE","MSR","MAR","MOZ","MMR","NAM","NRU","NPL","NLD","NCL","NZL","NIC","NER","NGA","NIU","NFK","MNP","NOR","OMN","PAK","PLW","PSE","PAN","PNG","PRY","PER","PHL","PCN","POL","PRT","PRI","QAT","REU","ROU","RUS","RWA","BLM","SHN","KNA","LCA","MAF","SPM","VCT","WSM","SMR","STP","SAU","SEN","SRB","SYC","SLE","SGP","SXM","SVK","SVN","SLB","SOM","ZAF","SGS","SSD","ESP","LKA","SDN","SUR","SJM","SWE","CHE","SYR","TWN","TJK","TZA","THA","TLS","TGO","TKL","TON","TTO","TUN","TUR","TKM","TCA","TUV","UGA","UKR","ARE","GBR","USA","UMI","VIR","URY","UZB","VUT","VAT","VEN","VNM","WLF","ESH","YEM","ZMB","ZWE","ZZZ"]}},"field":{"description":"Default shopper.country (billing)","type":"string","enum":["shopper.country","shopper.ipCountry"]}},"required":["mode","values"],"additionalProperties":false},"conditions":{"maxItems":25,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"op":{"default":"in","type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"default":[],"maxItems":200,"type":"array","items":{"type":["string","number","boolean"]}}},"required":["field","op","values"],"additionalProperties":false,"description":"A single search filter"}}},"additionalProperties":false,"description":"Per-option visibility: a country list and/or conditions, ANDed"}},"required":["option"],"additionalProperties":false}},"overrides":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"layout":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false},"showResult":{"type":"boolean","description":"false skips the success/failure page: the shopper returns to the merchant at once"},"responsive":{"type":"object","properties":{"mobile":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false},"tablet":{"type":"object","properties":{"template":{"type":"string","enum":["single","split","compact"]},"optionsDisplay":{"type":"string","enum":["list","accordion","tabs","tiles","dropdown"]},"maxVisibleOptions":{"type":"integer","minimum":0,"maximum":50,"description":"0 = all visible"},"preselect":{"anyOf":[{"type":"string","const":"first"},{"type":"string","const":"none"},{"type":"string","enum":["card","ideal","bancontact","paypal","klarna","pay-by-bank","apple-pay","google-pay","swish","vipps","mobilepay","trustly","paysafecard","skrill","neteller","play-plus","mifinity","vip-preferred","safetypay","jeton","eps","przelewy24","twint","alipay","blik","bizum","mb-way","multibanco","astropay","pix","spei","oxxo","pse","efecty","cash-at-retail","local-bank-transfer","interac","crypto-onramp","crypto-accept"]}]},"promoteLastUsed":{"type":"boolean"},"lastUsedCount":{"type":"integer","minimum":1,"maximum":3},"sections":{"maxItems":16,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["logo","summary","trust","express","options","pay","brands","footer"]},"visible":{"type":"boolean"}},"required":["id","visible"],"additionalProperties":false}},"cardForm":{"type":"object","properties":{"fieldLayout":{"type":"string","enum":["stacked","combined-row"]},"showCardholderName":{"type":"boolean"},"showSaveCard":{"type":"boolean"},"showBrandIcons":{"type":"boolean"},"brandIcons":{"maxItems":8,"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","MAESTRO","DISCOVER","JCB","DINERS","UNIONPAY"]},"description":"Card brand icons in the accepted-cards row, in order; [] shows none"}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false}},"additionalProperties":false,"description":"Partial checkout layout (stored)"},"content":{"type":"object","properties":{"title":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"trustLine":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"payButton":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cardDetailsTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"saveCardLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"cancelLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"successTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"failureTitle":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"footerText":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsUrl":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"termsLabel":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"},"lastUsedBadge":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","maxLength":500},"description":"Partial LocalizedText (override)"}},"additionalProperties":false,"description":"Partial copy overrides"}},"additionalProperties":false}},"required":["id","name","weight"],"additionalProperties":false,"description":"Experiment arm: replaces the variant's options and/or deep-merges overrides"}}},"required":["id","status","arms"],"additionalProperties":false,"description":"A/B experiment; the first arm is the control"},"optionOrdering":{"type":"string","enum":["manual","auto"]},"schedule":{"type":"object","properties":{"from":{"description":"Inclusive start (ISO 8601)","type":"string","maxLength":64},"until":{"description":"Exclusive end (ISO 8601)","type":"string","maxLength":64}},"additionalProperties":false}},"required":["id","name","enabled","conditions","options"],"additionalProperties":false}},"timezone":{"type":"string","maxLength":64},"tagManager":{"type":"object","properties":{"containerId":{"type":"string","minLength":1,"maxLength":32},"consentDefault":{"type":"string","enum":["denied","granted"]}},"required":["containerId"],"additionalProperties":false},"facts":{"type":"object","properties":{"metadata":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":90,"description":"Property path inside metadata (`kycStatus`, `player.tier`)"},"label":{"type":"string","minLength":1,"maxLength":60},"type":{"type":"string","enum":["string","number","boolean","enum"]},"options":{"maxItems":50,"type":"array","items":{"type":"string","maxLength":64}}},"required":["path","label","type"],"additionalProperties":false}}},"additionalProperties":false,"description":"The merchant metadata properties conditions may read (`metadata.<path>`)"},"hideRuleBlockedOptions":{"type":"boolean"}},"required":["schemaVersion","base","variants"],"additionalProperties":false,"description":"Checkout builder document"}},"required":["id","checkoutId","version","note","publishedBy","publishedAt","isLive","status","publishAt","doc"],"additionalProperties":false,"description":"Published checkout version"},"validation":{"type":"object","properties":{"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["schema_invalid","no_variants","no_enabled_variants","no_catch_all","duplicate_variant_id","variant_no_options","unknown_option","unknown_condition_field","invalid_condition_operator","invalid_condition_value","required_section_hidden","custom_css_not_enabled","insecure_logo_url","insecure_content_url","platform_branding","experiment_invalid","schedule_invalid","timezone_invalid","tag_manager_container_invalid","metadata_field_undeclared","metadata_declaration_invalid","option_visibility_empty_allow","shadowed_variant","option_not_routable","low_contrast","wallet_impossible_device","locale_gap","unsupported_locale","condition_no_values","duplicate_option","preselect_not_offered","express_non_wallet","unknown_placeholder","auto_ordering_few_options","card_field_unsupported","schedule_expired","asset_missing","option_never_visible","velocity_field_unknown","velocity_field_uncomputable","velocity_absent_matches","option_cannot_receive"]},"message":{"type":"string"},"variantId":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}}},"required":["code","message"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["schema_invalid","no_variants","no_enabled_variants","no_catch_all","duplicate_variant_id","variant_no_options","unknown_option","unknown_condition_field","invalid_condition_operator","invalid_condition_value","required_section_hidden","custom_css_not_enabled","insecure_logo_url","insecure_content_url","platform_branding","experiment_invalid","schedule_invalid","timezone_invalid","tag_manager_container_invalid","metadata_field_undeclared","metadata_declaration_invalid","option_visibility_empty_allow","shadowed_variant","option_not_routable","low_contrast","wallet_impossible_device","locale_gap","unsupported_locale","condition_no_values","duplicate_option","preselect_not_offered","express_non_wallet","unknown_placeholder","auto_ordering_few_options","card_field_unsupported","schedule_expired","asset_missing","option_never_visible","velocity_field_unknown","velocity_field_uncomputable","velocity_absent_matches","option_cannot_receive"]},"message":{"type":"string"},"variantId":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}}},"required":["code","message"],"additionalProperties":false}}},"required":["errors","warnings"],"additionalProperties":false}},"required":["publishRequest","version","validation"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"422":{"description":"422","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"errors":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["schema_invalid","no_variants","no_enabled_variants","no_catch_all","duplicate_variant_id","variant_no_options","unknown_option","unknown_condition_field","invalid_condition_operator","invalid_condition_value","required_section_hidden","custom_css_not_enabled","insecure_logo_url","insecure_content_url","platform_branding","experiment_invalid","schedule_invalid","timezone_invalid","tag_manager_container_invalid","metadata_field_undeclared","metadata_declaration_invalid","option_visibility_empty_allow","shadowed_variant","option_not_routable","low_contrast","wallet_impossible_device","locale_gap","unsupported_locale","condition_no_values","duplicate_option","preselect_not_offered","express_non_wallet","unknown_placeholder","auto_ordering_few_options","card_field_unsupported","schedule_expired","asset_missing","option_never_visible","velocity_field_unknown","velocity_field_uncomputable","velocity_absent_matches","option_cannot_receive"]},"message":{"type":"string"},"variantId":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}}},"required":["code","message"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["schema_invalid","no_variants","no_enabled_variants","no_catch_all","duplicate_variant_id","variant_no_options","unknown_option","unknown_condition_field","invalid_condition_operator","invalid_condition_value","required_section_hidden","custom_css_not_enabled","insecure_logo_url","insecure_content_url","platform_branding","experiment_invalid","schedule_invalid","timezone_invalid","tag_manager_container_invalid","metadata_field_undeclared","metadata_declaration_invalid","option_visibility_empty_allow","shadowed_variant","option_not_routable","low_contrast","wallet_impossible_device","locale_gap","unsupported_locale","condition_no_values","duplicate_option","preselect_not_offered","express_non_wallet","unknown_placeholder","auto_ordering_few_options","card_field_unsupported","schedule_expired","asset_missing","option_never_visible","velocity_field_unknown","velocity_field_uncomputable","velocity_absent_matches","option_cannot_receive"]},"message":{"type":"string"},"variantId":{"type":"string"},"path":{"type":"array","items":{"type":["string","number"]}},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}}},"required":["code","message"],"additionalProperties":false}}},"required":["message","errors","warnings"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/publish-requests/{requestId}/reject":{"post":{"description":"Rejects with a reason shown to the requester. 403 when the rejecter is the requester (they cancel instead). 409 when no longer pending.","summary":"Reject a publish request","tags":["checkouts"],"parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":500}},"required":["reason"]}}}},"responses":{"200":{"description":"Checkout publish request","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"checkoutId":{"type":"string"},"checkoutName":{"type":"string"},"customerId":{"type":["string","null"]},"draftRevision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":["string","null"]},"publishAt":{"type":["string","null"]},"status":{"type":"string","enum":["pending","approved","rejected","cancelled"]},"requestedBy":{"type":"string"},"requestedByName":{"type":["string","null"]},"requestedAt":{"type":"string"},"decidedBy":{"type":["string","null"]},"decidedByName":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"decisionReason":{"type":["string","null"]},"versionId":{"type":["string","null"]}},"required":["id","checkoutId","checkoutName","draftRevision","note","publishAt","status","requestedBy","requestedAt","decidedBy","decidedAt","decisionReason","versionId"],"additionalProperties":false,"description":"Checkout publish request"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/publish-requests/{requestId}/cancel":{"post":{"description":"Requester only (403 for anyone else). 409 when no longer pending.","summary":"Withdraw a publish request","tags":["checkouts"],"parameters":[{"name":"requestId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"Checkout publish request","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"checkoutId":{"type":"string"},"checkoutName":{"type":"string"},"customerId":{"type":["string","null"]},"draftRevision":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"note":{"type":["string","null"]},"publishAt":{"type":["string","null"]},"status":{"type":"string","enum":["pending","approved","rejected","cancelled"]},"requestedBy":{"type":"string"},"requestedByName":{"type":["string","null"]},"requestedAt":{"type":"string"},"decidedBy":{"type":["string","null"]},"decidedByName":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"decisionReason":{"type":["string","null"]},"versionId":{"type":["string","null"]}},"required":["id","checkoutId","checkoutName","draftRevision","note","publishAt","status","requestedBy","requestedAt","decidedBy","decidedAt","decisionReason","versionId"],"additionalProperties":false,"description":"Checkout publish request"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/assets":{"post":{"description":"Raw upload: the request body IS the file (not a form). Headers: `Content-Type` — one of image/png, image/jpeg, image/webp, image/svg+xml, font/woff2; `X-File-Name` — the original file name. Max 1048576 bytes (413 above). SVG is accepted only when it sanitizes cleanly (no script, foreignObject or external references; 400 otherwise). Stored per context; immutable once uploaded.","summary":"Upload a logo or font","tags":["checkouts"],"parameters":[],"requestBody":{"description":"Body","content":{"multipart/form-data":{"schema":{}}}},"responses":{"201":{"description":"Checkout builder asset","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Checkout builder asset id"},"filename":{"type":"string"},"contentType":{"type":"string","enum":["image/png","image/jpeg","image/webp","image/svg+xml","font/woff2"]},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"url":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"}},"required":["id","filename","contentType","size","url","createdAt","createdBy"],"additionalProperties":false,"description":"Checkout builder asset"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"413":{"description":"413","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"get":{"description":"Logos and fonts of the selected context, newest first. Uncounted: `meta.hasMore` drives the pager; pass `count=true` for `meta.total`.","summary":"List uploaded assets","tags":["checkouts"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"customerId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"sort","in":"query","schema":{"type":"string","enum":["asc","desc"]}},{"name":"page","in":"query","schema":{"default":1,"type":"number","minimum":1}},{"name":"limit","in":"query","schema":{"default":100,"type":"number","minimum":1}},{"name":"dateRange","in":"query","style":"deepObject","schema":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}}},{"name":"refresh","in":"query","schema":{"type":"boolean"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["contentType","filename"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}},{"name":"count","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Checkout builder asset id"},"filename":{"type":"string"},"contentType":{"type":"string","enum":["image/png","image/jpeg","image/webp","image/svg+xml","font/woff2"]},"size":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"url":{"type":"string"},"createdAt":{"type":"string"},"createdBy":{"type":"string"}},"required":["id","filename","contentType","size","url","createdAt","createdBy"],"additionalProperties":false,"description":"Checkout builder asset"}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/assets/{assetId}":{"delete":{"description":"409 while a live or scheduled checkout version references it (drafts referencing it get an `asset_missing` warning).","summary":"Delete an uploaded asset","tags":["checkouts"],"parameters":[{"name":"assetId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"success":{"type":"boolean"}},"required":["success"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"checkoutIds":{"type":"array","items":{"type":"string"}}},"required":["message","checkoutIds"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-builder/brand-import":{"post":{"description":"Fetches the page (https only, no IP-literal or localhost hosts, 1 MB cap, 5 s timeouts) and proposes colours (theme-color, CSS custom properties, the most-used colours in inline and linked CSS), a logo (og:image, apple-touch-icon, images labelled as a logo) and the closest font stack. Nothing is saved — apply the proposal in the builder. 422 when the page could not be read.","summary":"Propose a theme from a website","tags":["checkouts"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"}},"required":["url"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"theme":{"type":"object","properties":{"colors":{"type":"object","properties":{"background":{"description":"Page background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surface":{"description":"Main card background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"surfaceElevated":{"description":"Inputs / chips background","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"border":{"description":"Default border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"borderHighlight":{"description":"Hover / focus border color","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textPrimary":{"description":"Primary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textSecondary":{"description":"Secondary text","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"textMuted":{"description":"Muted text / placeholders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accent":{"description":"Accent (pay button, highlights)","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"accentSecondary":{"description":"Second accent gradient stop. Defaults to `accent` when omitted, producing a solid button.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"danger":{"description":"Error text / borders","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"success":{"description":"Success text / icons","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"buttonText":{"description":"Pay button text. Defaults to white (the accent for an `outline` button).","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBackground":{"description":"Input fill. Defaults to the fill implied by `input.style`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"inputBorder":{"description":"Input border. Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"focusRing":{"description":"Focus ring / focused input border. Defaults to `borderHighlight`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"link":{"description":"Inline links (terms, cancel). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"cardBorder":{"description":"Outer border (`shape.cardBorder` thin / thick). Defaults to `border`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"},"selection":{"description":"Selected payment option (border, ring, radio mark). Defaults to `accent`.","type":"string","maxLength":64,"pattern":"^(#[0-9a-fA-F]{3,8}|(?:rgb|rgba|hsl|hsla)\\(\\s*[\\d.,%\\s/]+\\s*\\))$"}},"additionalProperties":false},"logoUrl":{"description":"Merchant logo shown above the checkout card (https only)","type":"string","maxLength":2048,"format":"uri","pattern":"^https:\\/\\/.*"},"cornerRadius":{"description":"Corner-radius scale for cards, inputs and buttons (default md). `full` makes buttons and inputs pills.","type":"string","enum":["none","xs","sm","md","lg","xl","full"]},"fontFamily":{"description":"Font stack. System/local font stacks only — the checkout CSP does not allow external font loading.","type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},"customCss":{"description":"Raw CSS appended after the theme (sanitized: `@import`, external url() references and markup are stripped). Requires checkoutCustomCssEnabled on the organization.","type":"string","maxLength":50000},"typography":{"type":"object","properties":{"baseSize":{"description":"Base text size; scales every size on the page (default md)","type":"string","enum":["sm","md","lg"]},"headingWeight":{"description":"Heading font weight (default 600)","anyOf":[{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]},"letterSpacing":{"description":"Letter spacing (default normal)","type":"string","enum":["tight","normal","wide"]},"customFont":{"description":"Uploaded font (checkout builder designs only); the `fontFamily` stack is its fallback","type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$","description":"Uploaded `font/woff2` asset"},"family":{"type":"string","pattern":"^[A-Za-z0-9 \\-]{1,40}$","description":"CSS family name the @font-face declares"}},"required":["assetId","family"],"additionalProperties":false}},"additionalProperties":false},"shape":{"description":"Border width and card shadow","type":"object","properties":{"borderWidth":{"description":"Border px for option rows, inputs and inner panels — not the outer card (default 1)","anyOf":[{"type":"number","const":0},{"type":"number","const":1},{"type":"number","const":2}]},"cardBorder":{"description":"Outermost border: `accent` top stripe (default), `none`, or a `thin` / `thick` line in `colors.cardBorder`","type":"string","enum":["accent","none","thin","thick"]},"shadow":{"description":"Checkout card elevation (default lg)","type":"string","enum":["none","sm","md","lg"]}},"additionalProperties":false},"spacing":{"description":"Spacing density","type":"object","properties":{"density":{"description":"Spacing density (default comfortable)","type":"string","enum":["compact","comfortable","spacious"]}},"additionalProperties":false},"button":{"description":"Pay button style, size and width","type":"object","properties":{"style":{"description":"Pay button paint (default gradient — a solid button when only `accent` is set)","type":"string","enum":["solid","gradient","outline"]},"size":{"description":"Pay button size (default md)","type":"string","enum":["sm","md","lg"]},"fullWidth":{"description":"Stretch the pay button to the card width (default true)","type":"boolean"}},"additionalProperties":false},"input":{"description":"Input style and label position","type":"object","properties":{"style":{"description":"Input style (default outlined)","type":"string","enum":["outlined","filled","underlined"]},"labelPosition":{"description":"Label position for option fields (default above). Card fields follow what the Card SDK supports.","type":"string","enum":["above","floating","hidden"]}},"additionalProperties":false},"logo":{"type":"object","properties":{"height":{"description":"Logo height (default md, 40px)","type":"string","enum":["sm","md","lg"]},"align":{"description":"Logo alignment (default center)","type":"string","enum":["left","center","right"]},"assetId":{"description":"Uploaded logo (checkout builder designs only); wins over `logoUrl` on the hosted checkout","type":"string","pattern":"^[A-Za-z0-9_-]{1,64}$"}},"additionalProperties":false}},"additionalProperties":false,"description":"Checkout theme: colours, logo, radius, font and the typography/shape/spacing/button/input/logo groups (plus uploaded logo/font assets)"},"logoUrl":{"type":["string","null"]},"fontFamily":{"anyOf":[{"type":"string","enum":["system","serif","mono","rounded","humanist","geometric","transitional","slab"]},{"type":"null"}]},"detectedFontFamily":{"type":["string","null"]},"colors":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"source":{"type":"string","enum":["theme-color","manifest","css-variable","stylesheet","inline-style","logo"]},"weight":{"type":"number","minimum":0,"maximum":1}},"required":["value","source","weight"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"string","enum":["page_truncated","stylesheet_unreachable","stylesheet_truncated","too_many_stylesheets","no_colors_found","no_logo_found","logo_not_https","font_not_matched","low_contrast_adjusted"]}}},"required":["theme","logoUrl","fontFamily","colors","warnings"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"422":{"description":"422","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"code":{"type":"string","enum":["blocked_host","fetch_failed","timeout","not_html","too_large"]}},"required":["message","code"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-insights/funnel":{"get":{"description":"Created → Opened → Engaged → Ready → Submitted → Authenticated → Paid over closed sessions, optionally compared by one dimension.","summary":"Checkout funnel","tags":["checkoutInsights"],"parameters":[{"name":"from","in":"query","schema":{"type":"string"}},{"name":"to","in":"query","schema":{"type":"string"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["checkoutId","variantId","checkoutVersion","deviceType","os","browser","ipCountry","billingCountry","currency","locale","embedMode","direction","returning","appSlugId","exitReason","maxStep","armId","lastUsedPromoted"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}},{"name":"compareBy","in":"query","schema":{"type":"string","enum":["variantId","checkoutVersion","deviceType","os","browser","ipCountry","billingCountry","currency","locale","embedMode","direction","returning","appSlugId","armId","lastUsedPromoted"]}},{"name":"maxGroups","in":"query","schema":{"type":"integer","minimum":1,"maximum":20}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"overall":{"type":"object","properties":{"key":{"type":["string","null"]},"sessions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reached":{"minItems":7,"maxItems":7,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"exits":{"type":"object","propertyNames":{"type":"string","enum":["render_error","cancelled","declined","auth_failed","auth_timeout","poll_timeout","wallet_cancelled","wallet_failed","sdk_failed","abandoned"]},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":["render_error","cancelled","declined","auth_failed","auth_timeout","poll_timeout","wallet_cancelled","wallet_failed","sdk_failed","abandoned"]}},"required":["key","sessions","reached","exits"],"additionalProperties":false},"groups":{"type":"array","items":{"type":"object","properties":{"key":{"type":["string","null"]},"sessions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reached":{"minItems":7,"maxItems":7,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"exits":{"type":"object","propertyNames":{"type":"string","enum":["render_error","cancelled","declined","auth_failed","auth_timeout","poll_timeout","wallet_cancelled","wallet_failed","sdk_failed","abandoned"]},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":["render_error","cancelled","declined","auth_failed","auth_timeout","poll_timeout","wallet_cancelled","wallet_failed","sdk_failed","abandoned"]}},"required":["key","sessions","reached","exits"],"additionalProperties":false}},"compareBy":{"type":"string","enum":["variantId","checkoutVersion","deviceType","os","browser","ipCountry","billingCountry","currency","locale","embedMode","direction","returning","appSlugId","armId","lastUsedPromoted"]},"from":{"type":"string"},"to":{"type":"string"},"truncated":{"type":"boolean","description":"True when a query hit a row cap and the numbers are a lower bound"}},"required":["overall","from","to","truncated"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-insights/drop-offs":{"get":{"description":"Exit reasons, validation errors, unavailable options, decline codes and time-on-page of abandons — overall or for sessions that stopped after one step.","summary":"Why shoppers stopped","tags":["checkoutInsights"],"parameters":[{"name":"from","in":"query","schema":{"type":"string"}},{"name":"to","in":"query","schema":{"type":"string"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["checkoutId","variantId","checkoutVersion","deviceType","os","browser","ipCountry","billingCountry","currency","locale","embedMode","direction","returning","appSlugId","exitReason","maxStep","armId","lastUsedPromoted"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}},{"name":"step","in":"query","schema":{"type":"integer","minimum":0,"maximum":5}},{"name":"limit","in":"query","schema":{"type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"step":{"anyOf":[{"type":"integer","minimum":0,"maximum":6},{"type":"null"}]},"total":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reasons":{"type":"array","items":{"type":"object","properties":{"exitReason":{"type":"string","enum":["render_error","cancelled","declined","auth_failed","auth_timeout","poll_timeout","wallet_cancelled","wallet_failed","sdk_failed","abandoned"]},"detail":{"type":["string","null"]},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["exitReason","detail","count"],"additionalProperties":false}},"validationErrors":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"errorCode":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["field","errorCode","count"],"additionalProperties":false}},"unavailableOptions":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"reason":{"type":"string"},"browser":{"type":["string","null"]},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["option","reason","browser","count"],"additionalProperties":false}},"declineCodes":{"type":"array","items":{"type":"object","properties":{"statusCode":{"type":"string"},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["statusCode","count"],"additionalProperties":false}},"abandonTimeOnPage":{"type":"array","items":{"type":"object","properties":{"bucket":{"type":"string","enum":["lt5s","5to30s","30to120s","2to10m","gt10m"]},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["bucket","count"],"additionalProperties":false}},"scriptErrors":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"clientScope":{"type":"string","enum":["sessions","all"]},"truncated":{"type":"boolean","description":"True when a query hit a row cap and the numbers are a lower bound"}},"required":["step","total","reasons","validationErrors","unavailableOptions","declineCodes","abandonTimeOnPage","scriptErrors","truncated"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-insights/timings":{"get":{"description":"p50/p90 between funnel steps and time to interactive by device type.","summary":"Step timings","tags":["checkoutInsights"],"parameters":[{"name":"from","in":"query","schema":{"type":"string"}},{"name":"to","in":"query","schema":{"type":"string"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["checkoutId","variantId","checkoutVersion","deviceType","os","browser","ipCountry","billingCountry","currency","locale","embedMode","direction","returning","appSlugId","exitReason","maxStep","armId","lastUsedPromoted"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"transitions":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":"string"},"p50Ms":{"type":["number","null"]},"p90Ms":{"type":["number","null"]},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["from","to","p50Ms","p90Ms","count"],"additionalProperties":false}},"timeToInteractive":{"type":"array","items":{"type":"object","properties":{"deviceType":{"type":["string","null"]},"p50Ms":{"type":["number","null"]},"p90Ms":{"type":["number","null"]},"count":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["deviceType","p50Ms","p90Ms","count"],"additionalProperties":false}},"truncated":{"type":"boolean","description":"True when a query hit a row cap and the numbers are a lower bound"}},"required":["transitions","timeToInteractive","truncated"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-insights/options":{"get":{"description":"Per option: offered → selected → submitted → paid, plus selection by on-page position and the shoppers who switched from one option to another.","summary":"Payment option performance","tags":["checkoutInsights"],"parameters":[{"name":"from","in":"query","schema":{"type":"string"}},{"name":"to","in":"query","schema":{"type":"string"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["checkoutId","variantId","checkoutVersion","deviceType","os","browser","ipCountry","billingCountry","currency","locale","embedMode","direction","returning","appSlugId","exitReason","maxStep","armId","lastUsedPromoted"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"options":{"type":"array","items":{"type":"object","properties":{"option":{"type":"string"},"shown":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"selected":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"submitted":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paid":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"selectionRate":{"type":["number","null"]},"successRate":{"type":["number","null"]},"byPosition":{"type":"array","items":{"type":"object","properties":{"index":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"selected":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["index","selected"],"additionalProperties":false}}},"required":["option","shown","selected","submitted","paid","selectionRate","successRate","byPosition"],"additionalProperties":false}},"switching":{"type":"object","properties":{"choosers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"switchers":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paidStayed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paidSwitched":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"flows":{"type":"array","items":{"type":"object","properties":{"from":{"type":"string"},"to":{"type":["string","null"]},"sessions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["from","to","sessions"],"additionalProperties":false}}},"required":["choosers","switchers","paidStayed","paidSwitched","flows"],"additionalProperties":false},"truncated":{"type":"boolean","description":"True when a query hit a row cap and the numbers are a lower bound"}},"required":["options","truncated"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-insights/conversion-series":{"get":{"description":"Conversion per hour/day with publish markers; optional before/after comparison around one version.","summary":"Conversion over time","tags":["checkoutInsights"],"parameters":[{"name":"from","in":"query","schema":{"type":"string"}},{"name":"to","in":"query","schema":{"type":"string"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["checkoutId","variantId","checkoutVersion","deviceType","os","browser","ipCountry","billingCountry","currency","locale","embedMode","direction","returning","appSlugId","exitReason","maxStep","armId","lastUsedPromoted"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}},{"name":"interval","in":"query","schema":{"type":"string","enum":["hour","day"]}},{"name":"compareVersionId","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"interval":{"type":"string","enum":["hour","day"]},"buckets":{"type":"array","items":{"type":"object","properties":{"t":{"type":"string"},"sessions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paid":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conversion":{"type":["number","null"]}},"required":["t","sessions","paid","conversion"],"additionalProperties":false}},"publishes":{"type":"array","items":{"type":"object","properties":{"checkoutId":{"type":"string"},"versionId":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"publishedAt":{"type":"string"},"note":{"type":["string","null"]}},"required":["checkoutId","versionId","version","publishedAt","note"],"additionalProperties":false}},"versionComparison":{"type":"object","properties":{"versionId":{"type":"string"},"windowHours":{"type":"number"},"before":{"type":"object","properties":{"key":{"type":["string","null"]},"sessions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reached":{"minItems":7,"maxItems":7,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"exits":{"type":"object","propertyNames":{"type":"string","enum":["render_error","cancelled","declined","auth_failed","auth_timeout","poll_timeout","wallet_cancelled","wallet_failed","sdk_failed","abandoned"]},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":["render_error","cancelled","declined","auth_failed","auth_timeout","poll_timeout","wallet_cancelled","wallet_failed","sdk_failed","abandoned"]}},"required":["key","sessions","reached","exits"],"additionalProperties":false},"after":{"type":"object","properties":{"key":{"type":["string","null"]},"sessions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reached":{"minItems":7,"maxItems":7,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"exits":{"type":"object","propertyNames":{"type":"string","enum":["render_error","cancelled","declined","auth_failed","auth_timeout","poll_timeout","wallet_cancelled","wallet_failed","sdk_failed","abandoned"]},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":["render_error","cancelled","declined","auth_failed","auth_timeout","poll_timeout","wallet_cancelled","wallet_failed","sdk_failed","abandoned"]}},"required":["key","sessions","reached","exits"],"additionalProperties":false}},"required":["versionId","windowHours","before","after"],"additionalProperties":false},"truncated":{"type":"boolean","description":"True when a query hit a row cap and the numbers are a lower bound"}},"required":["interval","buckets","publishes","truncated"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-insights/sessions":{"get":{"description":"Session explorer. Uncounted: `meta.hasMore` drives the pager; pass `count=true` for `meta.total`.","summary":"List checkout sessions","tags":["checkoutInsights"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"customerId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"sort","in":"query","schema":{"type":"string","enum":["asc","desc"]}},{"name":"page","in":"query","schema":{"default":1,"type":"number","minimum":1}},{"name":"limit","in":"query","schema":{"default":100,"type":"number","minimum":1}},{"name":"dateRange","in":"query","style":"deepObject","schema":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}}},{"name":"refresh","in":"query","schema":{"type":"boolean"}},{"name":"from","in":"query","schema":{"type":"string"}},{"name":"to","in":"query","schema":{"type":"string"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["exitReason","maxStep","checkoutId","variantId","deviceType","ipCountry","billingCountry","currency","appSlugId","lastTransactionId","closed","armId"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}},{"name":"count","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"sessionId":{"type":"string"},"organizationId":{"type":"string"},"customerId":{"type":["string","null"]},"appSlugId":{"type":["string","null"]},"checkoutId":{"type":["string","null"]},"checkoutVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"variantId":{"type":["string","null"]},"deviceType":{"type":["string","null"]},"os":{"type":["string","null"]},"browser":{"type":["string","null"]},"ipCountry":{"type":["string","null"]},"billingCountry":{"type":["string","null"]},"currency":{"type":["string","null"]},"amount":{"type":["string","null"]},"locale":{"type":["string","null"]},"embedMode":{"type":["string","null"]},"direction":{"type":["string","null"]},"returning":{"type":["boolean","null"]},"createdAt":{"type":"string"},"openedAt":{"type":["string","null"]},"submittedAt":{"type":["string","null"]},"paidAt":{"type":["string","null"]},"maxStep":{"type":"integer","minimum":0,"maximum":6},"exitReason":{"anyOf":[{"type":"string","enum":["render_error","cancelled","declined","auth_failed","auth_timeout","poll_timeout","wallet_cancelled","wallet_failed","sdk_failed","abandoned"]},{"type":"null"}]},"exitDetail":{"type":["string","null"]},"lastClientEvent":{"type":["string","null"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastTransactionId":{"type":["string","null"]},"lastState":{"type":["string","null"]},"lastStatusCode":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"armId":{"type":["string","null"]},"lastUsedPromoted":{"type":["boolean","null"]},"authResult":{"anyOf":[{"type":"string","enum":["passed","failed","unknown"]},{"type":"null"}]},"pinnedOption":{"type":["string","null"]}},"required":["sessionId","organizationId","customerId","appSlugId","checkoutId","checkoutVersion","variantId","deviceType","os","browser","ipCountry","billingCountry","currency","amount","locale","embedMode","direction","returning","createdAt","openedAt","submittedAt","paidAt","maxStep","exitReason","exitDetail","lastClientEvent","attempts","lastTransactionId","lastState","lastStatusCode","closedAt"],"additionalProperties":false}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-insights/sessions/{sessionId}":{"get":{"description":"The session row plus its event timeline.","summary":"One checkout session","tags":["checkoutInsights"],"parameters":[{"name":"sessionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"session":{"type":"object","properties":{"sessionId":{"type":"string"},"organizationId":{"type":"string"},"customerId":{"type":["string","null"]},"appSlugId":{"type":["string","null"]},"checkoutId":{"type":["string","null"]},"checkoutVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"variantId":{"type":["string","null"]},"deviceType":{"type":["string","null"]},"os":{"type":["string","null"]},"browser":{"type":["string","null"]},"ipCountry":{"type":["string","null"]},"billingCountry":{"type":["string","null"]},"currency":{"type":["string","null"]},"amount":{"type":["string","null"]},"locale":{"type":["string","null"]},"embedMode":{"type":["string","null"]},"direction":{"type":["string","null"]},"returning":{"type":["boolean","null"]},"createdAt":{"type":"string"},"openedAt":{"type":["string","null"]},"submittedAt":{"type":["string","null"]},"paidAt":{"type":["string","null"]},"maxStep":{"type":"integer","minimum":0,"maximum":6},"exitReason":{"anyOf":[{"type":"string","enum":["render_error","cancelled","declined","auth_failed","auth_timeout","poll_timeout","wallet_cancelled","wallet_failed","sdk_failed","abandoned"]},{"type":"null"}]},"exitDetail":{"type":["string","null"]},"lastClientEvent":{"type":["string","null"]},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"lastTransactionId":{"type":["string","null"]},"lastState":{"type":["string","null"]},"lastStatusCode":{"type":["string","null"]},"closedAt":{"type":["string","null"]},"armId":{"type":["string","null"]},"lastUsedPromoted":{"type":["boolean","null"]},"authResult":{"anyOf":[{"type":"string","enum":["passed","failed","unknown"]},{"type":"null"}]},"pinnedOption":{"type":["string","null"]}},"required":["sessionId","organizationId","customerId","appSlugId","checkoutId","checkoutVersion","variantId","deviceType","os","browser","ipCountry","billingCountry","currency","amount","locale","embedMode","direction","returning","createdAt","openedAt","submittedAt","paidAt","maxStep","exitReason","exitDetail","lastClientEvent","attempts","lastTransactionId","lastState","lastStatusCode","closedAt"],"additionalProperties":false},"transactionIds":{"type":"array","items":{"type":"string"}},"events":{"type":"array","items":{"type":"object","properties":{"_time":{"type":"string"},"source":{"type":"string","enum":["server","client"]},"event":{"type":"string"},"step":{"anyOf":[{"type":"integer","minimum":0,"maximum":6},{"type":"null"}]},"viewId":{"type":["string","null"]},"seq":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"option":{"type":["string","null"]},"optionIndex":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"field":{"type":["string","null"]},"errorCode":{"type":["string","null"]},"reason":{"type":["string","null"]},"outcome":{"type":["string","null"]},"state":{"type":["string","null"]},"statusCode":{"type":["string","null"]},"transactionId":{"type":["string","null"]},"durationMs":{"type":["number","null"]},"authResult":{"anyOf":[{"type":"string","enum":["passed","failed","unknown"]},{"type":"null"}]},"hiddenOptions":{"type":["string","null"]},"factsUnavailable":{"type":["string","null"]}},"required":["_time","source","event","step","viewId","seq","option","optionIndex","field","errorCode","reason","outcome","state","statusCode","transactionId","durationMs"],"additionalProperties":false}},"timelineAvailable":{"type":"boolean"}},"required":["session","transactionIds","events","timelineAvailable"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-insights/experiments":{"get":{"description":"Per-arm funnels of one variant's experiment over closed sessions, with a two-proportion z-test of each arm's Paid/Opened against the control (the first arm) and whether every arm reached the minimum sample.","summary":"A/B experiment results","tags":["checkoutInsights"],"parameters":[{"name":"checkoutId","in":"query","required":true,"schema":{"type":"string"}},{"name":"variantId","in":"query","required":true,"schema":{"type":"string"}},{"name":"from","in":"query","schema":{"type":"string"}},{"name":"to","in":"query","schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"checkoutId":{"type":"string"},"variantId":{"type":"string"},"experimentId":{"type":["string","null"]},"status":{"anyOf":[{"type":"string","enum":["running","stopped"]},{"type":"null"}]},"controlArmId":{"type":["string","null"]},"arms":{"type":"array","items":{"type":"object","properties":{"armId":{"type":"string"},"name":{"type":["string","null"]},"weight":{"type":["number","null"]},"funnel":{"type":"object","properties":{"key":{"type":["string","null"]},"sessions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"reached":{"minItems":7,"maxItems":7,"type":"array","items":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"exits":{"type":"object","propertyNames":{"type":"string","enum":["render_error","cancelled","declined","auth_failed","auth_timeout","poll_timeout","wallet_cancelled","wallet_failed","sdk_failed","abandoned"]},"additionalProperties":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"required":["render_error","cancelled","declined","auth_failed","auth_timeout","poll_timeout","wallet_cancelled","wallet_failed","sdk_failed","abandoned"]}},"required":["key","sessions","reached","exits"],"additionalProperties":false},"opened":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"paid":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"conversion":{"type":["number","null"]},"vsControl":{"anyOf":[{"type":"object","properties":{"aRate":{"type":["number","null"]},"bRate":{"type":["number","null"]},"lift":{"type":["number","null"]},"z":{"type":"number"},"pValue":{"type":"number"},"significant95":{"type":"boolean"}},"required":["aRate","bRate","lift","z","pValue","significant95"],"additionalProperties":false},{"type":"null"}]},"minSampleReached":{"type":"boolean"}},"required":["armId","name","weight","funnel","opened","paid","conversion","vsControl","minSampleReached"],"additionalProperties":false}},"minSample":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"minSampleReached":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"truncated":{"type":"boolean","description":"True when a query hit a row cap and the numbers are a lower bound"}},"required":["checkoutId","variantId","experimentId","status","controlArmId","arms","minSample","minSampleReached","from","to","truncated"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-insights/cards":{"get":{"description":"The nightly top drop-offs per checkout, each with a ready-made prompt for \"Fix with Genie\". Dismissed cards are excluded unless asked for.","summary":"Insight cards","tags":["checkoutInsights"],"parameters":[{"name":"checkoutId","in":"query","schema":{"type":"string"}},{"name":"includeDismissed","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"cards":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"checkoutId":{"type":"string"},"variantId":{"type":["string","null"]},"kind":{"type":"string","enum":["step_drop","validation_errors","option_unavailable","decline_rate","slow_step","segment_gap","sdk_failures","render_errors"]},"title":{"type":"string"},"detail":{"type":"string"},"metric":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"baseline":{"type":["number","null"]},"unit":{"type":"string","enum":["ratio","count","ms"]},"sessions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["name","value","baseline","unit","sessions"],"additionalProperties":false},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}},"generatedAt":{"type":"string"},"dismissedAt":{"type":["string","null"]},"geniePrompt":{"type":"string"}},"required":["id","checkoutId","variantId","kind","title","detail","metric","generatedAt","dismissedAt","geniePrompt"],"additionalProperties":false}}},"required":["cards"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-insights/cards/{cardId}/dismiss":{"post":{"description":"Hides the card for everyone in the context until the nightly job finds something new.","summary":"Dismiss an insight card","tags":["checkoutInsights"],"parameters":[{"name":"cardId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"checkoutId":{"type":"string"},"variantId":{"type":["string","null"]},"kind":{"type":"string","enum":["step_drop","validation_errors","option_unavailable","decline_rate","slow_step","segment_gap","sdk_failures","render_errors"]},"title":{"type":"string"},"detail":{"type":"string"},"metric":{"type":"object","properties":{"name":{"type":"string"},"value":{"type":"number"},"baseline":{"type":["number","null"]},"unit":{"type":"string","enum":["ratio","count","ms"]},"sessions":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["name","value","baseline","unit","sessions"],"additionalProperties":false},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}},"generatedAt":{"type":"string"},"dismissedAt":{"type":["string","null"]},"geniePrompt":{"type":"string"}},"required":["id","checkoutId","variantId","kind","title","detail","metric","generatedAt","dismissedAt","geniePrompt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/checkout-insights/monitors":{"post":{"description":"Creates an ordinary monitor over `checkout-events` from a template (also used by \"Watch this version\" with expiresInHours=24).","summary":"Create a checkout monitor from a template","tags":["checkoutInsights"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"template":{"type":"string","enum":["conversion_anomaly","sdk_failure_rate","script_error_spike","render_error_spike","open_rate_low"]},"checkoutId":{"type":"string"},"variantId":{"type":"string"},"versionId":{"type":"string"},"threshold":{"type":"number"},"expiresInHours":{"type":"integer","minimum":1,"maximum":720},"emailRecipients":{"type":"array","items":{"type":"string","format":"email","pattern":"^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}}},"required":["template"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"monitorId":{"type":"string"},"name":{"type":"string"}},"required":["monitorId","name"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/user-accounts":{"get":{"description":"Search the shoppers who paid this customer (or this organization's customers), newest activity first.","summary":"Search user accounts","tags":["userAccounts"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"customerId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"sort","in":"query","schema":{"type":"string","enum":["asc","desc"]}},{"name":"page","in":"query","schema":{"default":1,"type":"number","minimum":1}},{"name":"limit","in":"query","schema":{"default":100,"type":"number","minimum":1}},{"name":"dateRange","in":"query","style":"deepObject","schema":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}}},{"name":"refresh","in":"query","schema":{"type":"boolean"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["externalUserId","email","phone","name","countryCode","status","flag","flagged","card","iban","wallet","instrumentType","firstSeenAt","lastSeenAt","customerId","globalUserId"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"globalUserId":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"name":{"type":"string"},"countryCode":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"blockedReason":{"type":"string"},"blockedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"blockedBy":{"type":"string"},"flags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","enum":["manual","rule","shared-instrument"]},"reason":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"by":{"type":"string"},"byName":{"type":"string"},"tableId":{"type":"string"},"tableName":{"type":"string"},"ruleId":{"type":"string"},"transactionId":{"type":"string"},"instrumentId":{"type":"string"}},"required":["id","code","at"],"additionalProperties":false,"description":"A flag on a user account"}},"lastTransactionId":{"type":"string"},"firstSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","organizationId","customerId","status","flags","firstSeenAt","lastSeenAt","createdAt","updatedAt"],"additionalProperties":false,"description":"A customer's user account"}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/user-accounts/instruments":{"get":{"description":"Search the cards, IBANs and wallets user accounts paid with, most recently used first.","summary":"Search payment instruments","tags":["userAccounts"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"customerId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"sort","in":"query","schema":{"type":"string","enum":["asc","desc"]}},{"name":"page","in":"query","schema":{"default":1,"type":"number","minimum":1}},{"name":"limit","in":"query","schema":{"default":100,"type":"number","minimum":1}},{"name":"dateRange","in":"query","style":"deepObject","schema":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}}},{"name":"refresh","in":"query","schema":{"type":"boolean"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["type","status","masked","cardBrand","holderName","iban","walletType","walletAccount","externalUserId","userEmail","firstUsedAt","lastUsedAt","customerId"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"userAccountId":{"type":"string"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalUserId":{"type":"string"},"userEmail":{"type":"string"},"type":{"type":"string","enum":["card","iban","wallet"]},"masked":{"type":"string"},"cardBrand":{"type":"string"},"expiryMonth":{"type":"number"},"expiryYear":{"type":"number"},"holderName":{"type":"string"},"iban":{"type":"string"},"bic":{"type":"string"},"walletType":{"type":"string"},"walletAccount":{"type":"string"},"network":{"type":"string"},"status":{"type":"string","enum":["active","not-saved","pending","revoked"]},"sharedWith":{"type":"number"},"firstUsedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","accountId","customerId","type","status"],"additionalProperties":false,"description":"A card, IBAN or wallet a user paid with"}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/user-accounts/{id}":{"get":{"description":"A user account with its instruments, linked users and most recent payments.","summary":"Get a user account","tags":["userAccounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"A user account with its instruments, links and recent payments","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"globalUserId":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"name":{"type":"string"},"countryCode":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"blockedReason":{"type":"string"},"blockedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"blockedBy":{"type":"string"},"flags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","enum":["manual","rule","shared-instrument"]},"reason":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"by":{"type":"string"},"byName":{"type":"string"},"tableId":{"type":"string"},"tableName":{"type":"string"},"ruleId":{"type":"string"},"transactionId":{"type":"string"},"instrumentId":{"type":"string"}},"required":["id","code","at"],"additionalProperties":false,"description":"A flag on a user account"}},"lastTransactionId":{"type":"string"},"firstSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"notes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"by":{"type":"string"},"byName":{"type":"string"}},"required":["id","text","at"],"additionalProperties":false,"description":"An operator's note on a user account"}},"instruments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"userAccountId":{"type":"string"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalUserId":{"type":"string"},"userEmail":{"type":"string"},"type":{"type":"string","enum":["card","iban","wallet"]},"masked":{"type":"string"},"cardBrand":{"type":"string"},"expiryMonth":{"type":"number"},"expiryYear":{"type":"number"},"holderName":{"type":"string"},"iban":{"type":"string"},"bic":{"type":"string"},"walletType":{"type":"string"},"walletAccount":{"type":"string"},"network":{"type":"string"},"status":{"type":"string","enum":["active","not-saved","pending","revoked"]},"sharedWith":{"type":"number"},"firstUsedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","accountId","customerId","type","status"],"additionalProperties":false,"description":"A card, IBAN or wallet a user paid with"}},"linkedUsers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"via":{"type":"string"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","customerId","status","lastSeenAt"],"additionalProperties":false}},"otherCustomers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"via":{"type":"string"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","customerId","status","lastSeenAt"],"additionalProperties":false}},"recentTransactions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"paymentOption":{"type":"string"},"transactionType":{"type":"string"},"amount":{"type":"object","properties":{"amt":{"type":"string"},"cy":{"type":"string"}},"required":["amt","cy"],"additionalProperties":false},"maskedAccount":{"type":"string"}},"required":["id","createdAt"],"additionalProperties":false}}},"required":["id","organizationId","customerId","status","flags","firstSeenAt","lastSeenAt","createdAt","updatedAt","notes","instruments","linkedUsers","recentTransactions"],"additionalProperties":false,"description":"A user account with its instruments, links and recent payments"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/user-accounts/{id}/block":{"post":{"description":"Decline every new payment from this user with `user_block` until unblocked.","summary":"Block a user account","tags":["userAccounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":500}},"required":["reason"]}}}},"responses":{"200":{"description":"A user account with its instruments, links and recent payments","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"globalUserId":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"name":{"type":"string"},"countryCode":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"blockedReason":{"type":"string"},"blockedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"blockedBy":{"type":"string"},"flags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","enum":["manual","rule","shared-instrument"]},"reason":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"by":{"type":"string"},"byName":{"type":"string"},"tableId":{"type":"string"},"tableName":{"type":"string"},"ruleId":{"type":"string"},"transactionId":{"type":"string"},"instrumentId":{"type":"string"}},"required":["id","code","at"],"additionalProperties":false,"description":"A flag on a user account"}},"lastTransactionId":{"type":"string"},"firstSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"notes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"by":{"type":"string"},"byName":{"type":"string"}},"required":["id","text","at"],"additionalProperties":false,"description":"An operator's note on a user account"}},"instruments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"userAccountId":{"type":"string"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalUserId":{"type":"string"},"userEmail":{"type":"string"},"type":{"type":"string","enum":["card","iban","wallet"]},"masked":{"type":"string"},"cardBrand":{"type":"string"},"expiryMonth":{"type":"number"},"expiryYear":{"type":"number"},"holderName":{"type":"string"},"iban":{"type":"string"},"bic":{"type":"string"},"walletType":{"type":"string"},"walletAccount":{"type":"string"},"network":{"type":"string"},"status":{"type":"string","enum":["active","not-saved","pending","revoked"]},"sharedWith":{"type":"number"},"firstUsedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","accountId","customerId","type","status"],"additionalProperties":false,"description":"A card, IBAN or wallet a user paid with"}},"linkedUsers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"via":{"type":"string"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","customerId","status","lastSeenAt"],"additionalProperties":false}},"otherCustomers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"via":{"type":"string"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","customerId","status","lastSeenAt"],"additionalProperties":false}},"recentTransactions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"paymentOption":{"type":"string"},"transactionType":{"type":"string"},"amount":{"type":"object","properties":{"amt":{"type":"string"},"cy":{"type":"string"}},"required":["amt","cy"],"additionalProperties":false},"maskedAccount":{"type":"string"}},"required":["id","createdAt"],"additionalProperties":false}}},"required":["id","organizationId","customerId","status","flags","firstSeenAt","lastSeenAt","createdAt","updatedAt","notes","instruments","linkedUsers","recentTransactions"],"additionalProperties":false,"description":"A user account with its instruments, links and recent payments"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/user-accounts/{id}/unblock":{"post":{"summary":"Unblock a user account","tags":["userAccounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"A user account with its instruments, links and recent payments","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"globalUserId":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"name":{"type":"string"},"countryCode":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"blockedReason":{"type":"string"},"blockedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"blockedBy":{"type":"string"},"flags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","enum":["manual","rule","shared-instrument"]},"reason":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"by":{"type":"string"},"byName":{"type":"string"},"tableId":{"type":"string"},"tableName":{"type":"string"},"ruleId":{"type":"string"},"transactionId":{"type":"string"},"instrumentId":{"type":"string"}},"required":["id","code","at"],"additionalProperties":false,"description":"A flag on a user account"}},"lastTransactionId":{"type":"string"},"firstSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"notes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"by":{"type":"string"},"byName":{"type":"string"}},"required":["id","text","at"],"additionalProperties":false,"description":"An operator's note on a user account"}},"instruments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"userAccountId":{"type":"string"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalUserId":{"type":"string"},"userEmail":{"type":"string"},"type":{"type":"string","enum":["card","iban","wallet"]},"masked":{"type":"string"},"cardBrand":{"type":"string"},"expiryMonth":{"type":"number"},"expiryYear":{"type":"number"},"holderName":{"type":"string"},"iban":{"type":"string"},"bic":{"type":"string"},"walletType":{"type":"string"},"walletAccount":{"type":"string"},"network":{"type":"string"},"status":{"type":"string","enum":["active","not-saved","pending","revoked"]},"sharedWith":{"type":"number"},"firstUsedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","accountId","customerId","type","status"],"additionalProperties":false,"description":"A card, IBAN or wallet a user paid with"}},"linkedUsers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"via":{"type":"string"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","customerId","status","lastSeenAt"],"additionalProperties":false}},"otherCustomers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"via":{"type":"string"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","customerId","status","lastSeenAt"],"additionalProperties":false}},"recentTransactions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"paymentOption":{"type":"string"},"transactionType":{"type":"string"},"amount":{"type":"object","properties":{"amt":{"type":"string"},"cy":{"type":"string"}},"required":["amt","cy"],"additionalProperties":false},"maskedAccount":{"type":"string"}},"required":["id","createdAt"],"additionalProperties":false}}},"required":["id","organizationId","customerId","status","flags","firstSeenAt","lastSeenAt","createdAt","updatedAt","notes","instruments","linkedUsers","recentTransactions"],"additionalProperties":false,"description":"A user account with its instruments, links and recent payments"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/user-accounts/{id}/flags":{"post":{"summary":"Flag a user account","tags":["userAccounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"reason":{"type":"string","minLength":1,"maxLength":500}},"required":["reason"]}}}},"responses":{"200":{"description":"A user account with its instruments, links and recent payments","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"globalUserId":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"name":{"type":"string"},"countryCode":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"blockedReason":{"type":"string"},"blockedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"blockedBy":{"type":"string"},"flags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","enum":["manual","rule","shared-instrument"]},"reason":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"by":{"type":"string"},"byName":{"type":"string"},"tableId":{"type":"string"},"tableName":{"type":"string"},"ruleId":{"type":"string"},"transactionId":{"type":"string"},"instrumentId":{"type":"string"}},"required":["id","code","at"],"additionalProperties":false,"description":"A flag on a user account"}},"lastTransactionId":{"type":"string"},"firstSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"notes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"by":{"type":"string"},"byName":{"type":"string"}},"required":["id","text","at"],"additionalProperties":false,"description":"An operator's note on a user account"}},"instruments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"userAccountId":{"type":"string"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalUserId":{"type":"string"},"userEmail":{"type":"string"},"type":{"type":"string","enum":["card","iban","wallet"]},"masked":{"type":"string"},"cardBrand":{"type":"string"},"expiryMonth":{"type":"number"},"expiryYear":{"type":"number"},"holderName":{"type":"string"},"iban":{"type":"string"},"bic":{"type":"string"},"walletType":{"type":"string"},"walletAccount":{"type":"string"},"network":{"type":"string"},"status":{"type":"string","enum":["active","not-saved","pending","revoked"]},"sharedWith":{"type":"number"},"firstUsedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","accountId","customerId","type","status"],"additionalProperties":false,"description":"A card, IBAN or wallet a user paid with"}},"linkedUsers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"via":{"type":"string"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","customerId","status","lastSeenAt"],"additionalProperties":false}},"otherCustomers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"via":{"type":"string"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","customerId","status","lastSeenAt"],"additionalProperties":false}},"recentTransactions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"paymentOption":{"type":"string"},"transactionType":{"type":"string"},"amount":{"type":"object","properties":{"amt":{"type":"string"},"cy":{"type":"string"}},"required":["amt","cy"],"additionalProperties":false},"maskedAccount":{"type":"string"}},"required":["id","createdAt"],"additionalProperties":false}}},"required":["id","organizationId","customerId","status","flags","firstSeenAt","lastSeenAt","createdAt","updatedAt","notes","instruments","linkedUsers","recentTransactions"],"additionalProperties":false,"description":"A user account with its instruments, links and recent payments"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/user-accounts/{id}/flags/{flagId}":{"delete":{"summary":"Remove a flag from a user account","tags":["userAccounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"flagId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"A user account with its instruments, links and recent payments","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"globalUserId":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"name":{"type":"string"},"countryCode":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"blockedReason":{"type":"string"},"blockedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"blockedBy":{"type":"string"},"flags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","enum":["manual","rule","shared-instrument"]},"reason":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"by":{"type":"string"},"byName":{"type":"string"},"tableId":{"type":"string"},"tableName":{"type":"string"},"ruleId":{"type":"string"},"transactionId":{"type":"string"},"instrumentId":{"type":"string"}},"required":["id","code","at"],"additionalProperties":false,"description":"A flag on a user account"}},"lastTransactionId":{"type":"string"},"firstSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"notes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"by":{"type":"string"},"byName":{"type":"string"}},"required":["id","text","at"],"additionalProperties":false,"description":"An operator's note on a user account"}},"instruments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"userAccountId":{"type":"string"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalUserId":{"type":"string"},"userEmail":{"type":"string"},"type":{"type":"string","enum":["card","iban","wallet"]},"masked":{"type":"string"},"cardBrand":{"type":"string"},"expiryMonth":{"type":"number"},"expiryYear":{"type":"number"},"holderName":{"type":"string"},"iban":{"type":"string"},"bic":{"type":"string"},"walletType":{"type":"string"},"walletAccount":{"type":"string"},"network":{"type":"string"},"status":{"type":"string","enum":["active","not-saved","pending","revoked"]},"sharedWith":{"type":"number"},"firstUsedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","accountId","customerId","type","status"],"additionalProperties":false,"description":"A card, IBAN or wallet a user paid with"}},"linkedUsers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"via":{"type":"string"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","customerId","status","lastSeenAt"],"additionalProperties":false}},"otherCustomers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"via":{"type":"string"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","customerId","status","lastSeenAt"],"additionalProperties":false}},"recentTransactions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"paymentOption":{"type":"string"},"transactionType":{"type":"string"},"amount":{"type":"object","properties":{"amt":{"type":"string"},"cy":{"type":"string"}},"required":["amt","cy"],"additionalProperties":false},"maskedAccount":{"type":"string"}},"required":["id","createdAt"],"additionalProperties":false}}},"required":["id","organizationId","customerId","status","flags","firstSeenAt","lastSeenAt","createdAt","updatedAt","notes","instruments","linkedUsers","recentTransactions"],"additionalProperties":false,"description":"A user account with its instruments, links and recent payments"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/user-accounts/{id}/notes":{"post":{"summary":"Add a note to a user account","tags":["userAccounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"text":{"type":"string","minLength":1,"maxLength":2000}},"required":["text"]}}}},"responses":{"200":{"description":"A user account with its instruments, links and recent payments","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"globalUserId":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"name":{"type":"string"},"countryCode":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"blockedReason":{"type":"string"},"blockedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"blockedBy":{"type":"string"},"flags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","enum":["manual","rule","shared-instrument"]},"reason":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"by":{"type":"string"},"byName":{"type":"string"},"tableId":{"type":"string"},"tableName":{"type":"string"},"ruleId":{"type":"string"},"transactionId":{"type":"string"},"instrumentId":{"type":"string"}},"required":["id","code","at"],"additionalProperties":false,"description":"A flag on a user account"}},"lastTransactionId":{"type":"string"},"firstSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"notes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"by":{"type":"string"},"byName":{"type":"string"}},"required":["id","text","at"],"additionalProperties":false,"description":"An operator's note on a user account"}},"instruments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"userAccountId":{"type":"string"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalUserId":{"type":"string"},"userEmail":{"type":"string"},"type":{"type":"string","enum":["card","iban","wallet"]},"masked":{"type":"string"},"cardBrand":{"type":"string"},"expiryMonth":{"type":"number"},"expiryYear":{"type":"number"},"holderName":{"type":"string"},"iban":{"type":"string"},"bic":{"type":"string"},"walletType":{"type":"string"},"walletAccount":{"type":"string"},"network":{"type":"string"},"status":{"type":"string","enum":["active","not-saved","pending","revoked"]},"sharedWith":{"type":"number"},"firstUsedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","accountId","customerId","type","status"],"additionalProperties":false,"description":"A card, IBAN or wallet a user paid with"}},"linkedUsers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"via":{"type":"string"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","customerId","status","lastSeenAt"],"additionalProperties":false}},"otherCustomers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"via":{"type":"string"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","customerId","status","lastSeenAt"],"additionalProperties":false}},"recentTransactions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"paymentOption":{"type":"string"},"transactionType":{"type":"string"},"amount":{"type":"object","properties":{"amt":{"type":"string"},"cy":{"type":"string"}},"required":["amt","cy"],"additionalProperties":false},"maskedAccount":{"type":"string"}},"required":["id","createdAt"],"additionalProperties":false}}},"required":["id","organizationId","customerId","status","flags","firstSeenAt","lastSeenAt","createdAt","updatedAt","notes","instruments","linkedUsers","recentTransactions"],"additionalProperties":false,"description":"A user account with its instruments, links and recent payments"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/user-accounts/{id}/notes/{noteId}":{"delete":{"summary":"Delete a note from a user account","tags":["userAccounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"noteId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"A user account with its instruments, links and recent payments","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"globalUserId":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"name":{"type":"string"},"countryCode":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"blockedReason":{"type":"string"},"blockedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"blockedBy":{"type":"string"},"flags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","enum":["manual","rule","shared-instrument"]},"reason":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"by":{"type":"string"},"byName":{"type":"string"},"tableId":{"type":"string"},"tableName":{"type":"string"},"ruleId":{"type":"string"},"transactionId":{"type":"string"},"instrumentId":{"type":"string"}},"required":["id","code","at"],"additionalProperties":false,"description":"A flag on a user account"}},"lastTransactionId":{"type":"string"},"firstSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"notes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"by":{"type":"string"},"byName":{"type":"string"}},"required":["id","text","at"],"additionalProperties":false,"description":"An operator's note on a user account"}},"instruments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"userAccountId":{"type":"string"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalUserId":{"type":"string"},"userEmail":{"type":"string"},"type":{"type":"string","enum":["card","iban","wallet"]},"masked":{"type":"string"},"cardBrand":{"type":"string"},"expiryMonth":{"type":"number"},"expiryYear":{"type":"number"},"holderName":{"type":"string"},"iban":{"type":"string"},"bic":{"type":"string"},"walletType":{"type":"string"},"walletAccount":{"type":"string"},"network":{"type":"string"},"status":{"type":"string","enum":["active","not-saved","pending","revoked"]},"sharedWith":{"type":"number"},"firstUsedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","accountId","customerId","type","status"],"additionalProperties":false,"description":"A card, IBAN or wallet a user paid with"}},"linkedUsers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"via":{"type":"string"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","customerId","status","lastSeenAt"],"additionalProperties":false}},"otherCustomers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"via":{"type":"string"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","customerId","status","lastSeenAt"],"additionalProperties":false}},"recentTransactions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"paymentOption":{"type":"string"},"transactionType":{"type":"string"},"amount":{"type":"object","properties":{"amt":{"type":"string"},"cy":{"type":"string"}},"required":["amt","cy"],"additionalProperties":false},"maskedAccount":{"type":"string"}},"required":["id","createdAt"],"additionalProperties":false}}},"required":["id","organizationId","customerId","status","flags","firstSeenAt","lastSeenAt","createdAt","updatedAt","notes","instruments","linkedUsers","recentTransactions"],"additionalProperties":false,"description":"A user account with its instruments, links and recent payments"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/user-accounts/{id}/instruments/{instrumentId}/revoke":{"post":{"description":"Remove a saved card from this user's checkout. The card stays in the record as `revoked`.","summary":"Revoke a saved card","tags":["userAccounts"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"instrumentId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"A user account with its instruments, links and recent payments","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"globalUserId":{"type":"string"},"email":{"type":"string"},"phone":{"type":"string"},"name":{"type":"string"},"countryCode":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"blockedReason":{"type":"string"},"blockedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"blockedBy":{"type":"string"},"flags":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string","enum":["manual","rule","shared-instrument"]},"reason":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"by":{"type":"string"},"byName":{"type":"string"},"tableId":{"type":"string"},"tableName":{"type":"string"},"ruleId":{"type":"string"},"transactionId":{"type":"string"},"instrumentId":{"type":"string"}},"required":["id","code","at"],"additionalProperties":false,"description":"A flag on a user account"}},"lastTransactionId":{"type":"string"},"firstSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"notes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"text":{"type":"string"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"by":{"type":"string"},"byName":{"type":"string"}},"required":["id","text","at"],"additionalProperties":false,"description":"An operator's note on a user account"}},"instruments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"accountId":{"type":"string"},"userAccountId":{"type":"string"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"externalUserId":{"type":"string"},"userEmail":{"type":"string"},"type":{"type":"string","enum":["card","iban","wallet"]},"masked":{"type":"string"},"cardBrand":{"type":"string"},"expiryMonth":{"type":"number"},"expiryYear":{"type":"number"},"holderName":{"type":"string"},"iban":{"type":"string"},"bic":{"type":"string"},"walletType":{"type":"string"},"walletAccount":{"type":"string"},"network":{"type":"string"},"status":{"type":"string","enum":["active","not-saved","pending","revoked"]},"sharedWith":{"type":"number"},"firstUsedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"lastUsedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","accountId","customerId","type","status"],"additionalProperties":false,"description":"A card, IBAN or wallet a user paid with"}},"linkedUsers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"via":{"type":"string"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","customerId","status","lastSeenAt"],"additionalProperties":false}},"otherCustomers":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerName":{"type":"string"},"externalUserId":{"type":"string"},"email":{"type":"string"},"status":{"type":"string","enum":["active","blocked"]},"via":{"type":"string"},"lastSeenAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["id","customerId","status","lastSeenAt"],"additionalProperties":false}},"recentTransactions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"paymentOption":{"type":"string"},"transactionType":{"type":"string"},"amount":{"type":"object","properties":{"amt":{"type":"string"},"cy":{"type":"string"}},"required":["amt","cy"],"additionalProperties":false},"maskedAccount":{"type":"string"}},"required":["id","createdAt"],"additionalProperties":false}}},"required":["id","organizationId","customerId","status","flags","firstSeenAt","lastSeenAt","createdAt","updatedAt","notes","instruments","linkedUsers","recentTransactions"],"additionalProperties":false,"description":"A user account with its instruments, links and recent payments"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/approvals":{"get":{"description":"The approvals queue: credits waiting for a decision, and every decided one, newest first. `view=awaiting-me` lists what the caller may decide now.","summary":"Search approvals","tags":["approvals"],"parameters":[{"name":"q","in":"query","schema":{"type":"string"}},{"name":"customerId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"sort","in":"query","schema":{"type":"string","enum":["asc","desc"]}},{"name":"page","in":"query","schema":{"default":1,"type":"number","minimum":1}},{"name":"limit","in":"query","schema":{"default":100,"type":"number","minimum":1}},{"name":"dateRange","in":"query","style":"deepObject","schema":{"type":"object","properties":{"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}}}},{"name":"refresh","in":"query","schema":{"type":"boolean"}},{"name":"view","in":"query","schema":{"type":"string","enum":["awaiting-me","awaiting-second","attention","all"]}},{"name":"subjectId","in":"query","schema":{"type":"string"}},{"name":"filters","in":"query","description":"Filters to apply, as `{ field, op, values }` entries","schema":{"type":"array","items":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"field":{"type":"string","enum":["status","path","subjectType","subjectId","currency","amount","createdAt","expiresAt","customerId"]},"op":{"type":"string","enum":["eq","ne","in","nin","contains","notContains","startsWith","notStartsWith","gt","gte","lt","lte","isEmpty","isNotEmpty"]},"values":{"type":"array"}},"required":["field"],"description":"A single search filter"},"maxItems":25}},{"name":"count","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"mode":{"type":"string","enum":["live","test"]},"subjectType":{"type":"string","minLength":1},"subjectId":{"type":"string"},"path":{"type":"string","enum":["auto-approve","auto-deny","review","ai-review"]},"status":{"type":"string","enum":["pending","approved","denied","expired","execution_failed"]},"stages":{"type":"array","items":{"type":"string","enum":["customer","organization"]}},"currentStage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"summary":{"type":"object","properties":{"title":{"type":"string"},"amount":{"type":"string"},"currency":{"type":"string"},"txAmount":{"type":"string"},"txCurrency":{"type":"string"},"recipientName":{"type":"string"},"recipient":{"type":"string"},"cardBrand":{"type":"string"},"cardCountry":{"type":"string"},"provider":{"type":"string"},"providerAccount":{"type":"string"},"reference":{"type":"string"},"customerName":{"type":"string"},"recipientKey":{"type":"string"},"facts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean","null"]}}},"required":["title"],"additionalProperties":false,"description":"What an approval is about, as a snapshot"},"rules":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["customer","organization"]},"decision":{"type":"string"},"agent":{"type":"string"},"tableId":{"type":"string"},"tableName":{"type":"string"},"version":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"ruleId":{"type":"string"},"comment":{"type":"string"},"reasonCode":{"type":"string"},"fallback":{"type":"boolean"}},"required":["level","decision"],"additionalProperties":false,"description":"A rule that routed an approval"}},"requestedBy":{"type":["string","null"]},"expiresAt":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"aiRecommendation":{"anyOf":[{"type":"string","enum":["approve","deny","escalate"]},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","organizationId","mode","subjectType","subjectId","path","status","stages","currentStage","summary","rules","createdAt","updatedAt"],"additionalProperties":false,"description":"An approval"}},"meta":{"type":"object","properties":{"page":{"type":"number"},"pageSize":{"type":"number"},"hasMore":{"type":"boolean"},"total":{"type":"number"}},"required":["page","pageSize","hasMore"],"additionalProperties":false}},"required":["data","meta"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/approvals/{id}":{"get":{"description":"An approval with its decision log, the agent's assessment, and whether the caller may decide it.","summary":"Get an approval","tags":["approvals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"An approval with its decision log","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"mode":{"type":"string","enum":["live","test"]},"subjectType":{"type":"string","minLength":1},"subjectId":{"type":"string"},"path":{"type":"string","enum":["auto-approve","auto-deny","review","ai-review"]},"status":{"type":"string","enum":["pending","approved","denied","expired","execution_failed"]},"stages":{"type":"array","items":{"type":"string","enum":["customer","organization"]}},"currentStage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"summary":{"type":"object","properties":{"title":{"type":"string"},"amount":{"type":"string"},"currency":{"type":"string"},"txAmount":{"type":"string"},"txCurrency":{"type":"string"},"recipientName":{"type":"string"},"recipient":{"type":"string"},"cardBrand":{"type":"string"},"cardCountry":{"type":"string"},"provider":{"type":"string"},"providerAccount":{"type":"string"},"reference":{"type":"string"},"customerName":{"type":"string"},"recipientKey":{"type":"string"},"facts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean","null"]}}},"required":["title"],"additionalProperties":false,"description":"What an approval is about, as a snapshot"},"rules":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["customer","organization"]},"decision":{"type":"string"},"agent":{"type":"string"},"tableId":{"type":"string"},"tableName":{"type":"string"},"version":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"ruleId":{"type":"string"},"comment":{"type":"string"},"reasonCode":{"type":"string"},"fallback":{"type":"boolean"}},"required":["level","decision"],"additionalProperties":false,"description":"A rule that routed an approval"}},"requestedBy":{"type":["string","null"]},"expiresAt":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"aiRecommendation":{"anyOf":[{"type":"string","enum":["approve","deny","escalate"]},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"decisions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"approvalId":{"type":"string"},"stage":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"actorType":{"type":"string","enum":["rule","ai","user","api-key","system"]},"actorId":{"type":"string"},"actorLabel":{"type":"string"},"actorLevel":{"anyOf":[{"type":"string","enum":["customer","organization"]},{"type":"null"}]},"decision":{"type":"string","enum":["approve","deny","expire","close","recommend-approve","recommend-deny","escalate"]},"binding":{"type":"boolean"},"reasonCode":{"type":"string"},"motivation":{"type":"string"},"redacted":{"type":"boolean"},"evidence":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"aiRecommendation":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","approvalId","actorType","actorId","actorLabel","decision","binding","reasonCode","createdAt"],"additionalProperties":false,"description":"A decision about an approval"}},"assessment":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"approvalId":{"type":"string"},"status":{"type":"string","enum":["running","complete","unavailable","stale"]},"recommendation":{"anyOf":[{"type":"string","enum":["approve","deny","escalate"]},{"type":"null"}]},"confidence":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}]},"exceptions":{"type":"array","items":{"type":"string"}},"checks":{"type":"array","items":{"type":"object","properties":{"check":{"type":"string","minLength":1,"maxLength":120},"status":{"type":"string","enum":["pass","fail","unavailable"]},"detail":{"type":"string","maxLength":500}},"required":["check","status"],"additionalProperties":false}},"summary":{"type":["string","null"]},"unavailableReason":{"type":["string","null"]},"conversationId":{"type":["string","null"]},"taskId":{"type":["string","null"]},"contextType":{"type":"string","enum":["customer","organization"]},"model":{"type":["string","null"]},"assessedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","approvalId","status","exceptions","checks","contextType","createdAt","updatedAt"],"additionalProperties":false,"description":"An agent's assessment of an approval"},{"type":"null"}]},"viewer":{"type":"object","properties":{"canDecide":{"type":"boolean"},"level":{"anyOf":[{"type":"string","enum":["customer","organization"]},{"type":"null"}]},"reason":{"type":"string"}},"required":["canDecide","level"],"additionalProperties":false}},"required":["id","organizationId","mode","subjectType","subjectId","path","status","stages","currentStage","summary","rules","createdAt","updatedAt","decisions","viewer"],"additionalProperties":false,"description":"An approval with its decision log"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/approvals/{id}/decisions":{"post":{"description":"Decide the current stage with a reason code and a motivation. A denial is final; an approval moves to the next stage or, at the last one, releases the credit. Four eyes: one person decides an approval once, and never one they created.","summary":"Approve or deny","tags":["approvals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"decision":{"type":"string","enum":["approve","deny"]},"reasonCode":{"type":"string","minLength":1},"motivation":{"type":"string","minLength":10,"maxLength":2000},"expectedStage":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["decision","reasonCode","motivation","expectedStage"]}}}},"responses":{"200":{"description":"An approval with its decision log","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"mode":{"type":"string","enum":["live","test"]},"subjectType":{"type":"string","minLength":1},"subjectId":{"type":"string"},"path":{"type":"string","enum":["auto-approve","auto-deny","review","ai-review"]},"status":{"type":"string","enum":["pending","approved","denied","expired","execution_failed"]},"stages":{"type":"array","items":{"type":"string","enum":["customer","organization"]}},"currentStage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"summary":{"type":"object","properties":{"title":{"type":"string"},"amount":{"type":"string"},"currency":{"type":"string"},"txAmount":{"type":"string"},"txCurrency":{"type":"string"},"recipientName":{"type":"string"},"recipient":{"type":"string"},"cardBrand":{"type":"string"},"cardCountry":{"type":"string"},"provider":{"type":"string"},"providerAccount":{"type":"string"},"reference":{"type":"string"},"customerName":{"type":"string"},"recipientKey":{"type":"string"},"facts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean","null"]}}},"required":["title"],"additionalProperties":false,"description":"What an approval is about, as a snapshot"},"rules":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["customer","organization"]},"decision":{"type":"string"},"agent":{"type":"string"},"tableId":{"type":"string"},"tableName":{"type":"string"},"version":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"ruleId":{"type":"string"},"comment":{"type":"string"},"reasonCode":{"type":"string"},"fallback":{"type":"boolean"}},"required":["level","decision"],"additionalProperties":false,"description":"A rule that routed an approval"}},"requestedBy":{"type":["string","null"]},"expiresAt":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"aiRecommendation":{"anyOf":[{"type":"string","enum":["approve","deny","escalate"]},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"decisions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"approvalId":{"type":"string"},"stage":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"actorType":{"type":"string","enum":["rule","ai","user","api-key","system"]},"actorId":{"type":"string"},"actorLabel":{"type":"string"},"actorLevel":{"anyOf":[{"type":"string","enum":["customer","organization"]},{"type":"null"}]},"decision":{"type":"string","enum":["approve","deny","expire","close","recommend-approve","recommend-deny","escalate"]},"binding":{"type":"boolean"},"reasonCode":{"type":"string"},"motivation":{"type":"string"},"redacted":{"type":"boolean"},"evidence":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"aiRecommendation":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","approvalId","actorType","actorId","actorLabel","decision","binding","reasonCode","createdAt"],"additionalProperties":false,"description":"A decision about an approval"}},"assessment":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"approvalId":{"type":"string"},"status":{"type":"string","enum":["running","complete","unavailable","stale"]},"recommendation":{"anyOf":[{"type":"string","enum":["approve","deny","escalate"]},{"type":"null"}]},"confidence":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}]},"exceptions":{"type":"array","items":{"type":"string"}},"checks":{"type":"array","items":{"type":"object","properties":{"check":{"type":"string","minLength":1,"maxLength":120},"status":{"type":"string","enum":["pass","fail","unavailable"]},"detail":{"type":"string","maxLength":500}},"required":["check","status"],"additionalProperties":false}},"summary":{"type":["string","null"]},"unavailableReason":{"type":["string","null"]},"conversationId":{"type":["string","null"]},"taskId":{"type":["string","null"]},"contextType":{"type":"string","enum":["customer","organization"]},"model":{"type":["string","null"]},"assessedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","approvalId","status","exceptions","checks","contextType","createdAt","updatedAt"],"additionalProperties":false,"description":"An agent's assessment of an approval"},{"type":"null"}]},"viewer":{"type":"object","properties":{"canDecide":{"type":"boolean"},"level":{"anyOf":[{"type":"string","enum":["customer","organization"]},{"type":"null"}]},"reason":{"type":"string"}},"required":["canDecide","level"],"additionalProperties":false}},"required":["id","organizationId","mode","subjectType","subjectId","path","status","stages","currentStage","summary","rules","createdAt","updatedAt","decisions","viewer"],"additionalProperties":false,"description":"An approval with its decision log"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"422":{"description":"422","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/approvals/{id}/close":{"post":{"description":"Close an approval whose credit could not be told the decision (`execution_failed`). It always closes as declined: the provider was never called.","summary":"Close a stranded approval","tags":["approvals"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"motivation":{"type":"string","minLength":10,"maxLength":2000}},"required":["motivation"]}}}},"responses":{"200":{"description":"An approval with its decision log","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"organizationId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"customerId":{"anyOf":[{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},{"type":"null"}]},"mode":{"type":"string","enum":["live","test"]},"subjectType":{"type":"string","minLength":1},"subjectId":{"type":"string"},"path":{"type":"string","enum":["auto-approve","auto-deny","review","ai-review"]},"status":{"type":"string","enum":["pending","approved","denied","expired","execution_failed"]},"stages":{"type":"array","items":{"type":"string","enum":["customer","organization"]}},"currentStage":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"summary":{"type":"object","properties":{"title":{"type":"string"},"amount":{"type":"string"},"currency":{"type":"string"},"txAmount":{"type":"string"},"txCurrency":{"type":"string"},"recipientName":{"type":"string"},"recipient":{"type":"string"},"cardBrand":{"type":"string"},"cardCountry":{"type":"string"},"provider":{"type":"string"},"providerAccount":{"type":"string"},"reference":{"type":"string"},"customerName":{"type":"string"},"recipientKey":{"type":"string"},"facts":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number","boolean","null"]}}},"required":["title"],"additionalProperties":false,"description":"What an approval is about, as a snapshot"},"rules":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["customer","organization"]},"decision":{"type":"string"},"agent":{"type":"string"},"tableId":{"type":"string"},"tableName":{"type":"string"},"version":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"ruleId":{"type":"string"},"comment":{"type":"string"},"reasonCode":{"type":"string"},"fallback":{"type":"boolean"}},"required":["level","decision"],"additionalProperties":false,"description":"A rule that routed an approval"}},"requestedBy":{"type":["string","null"]},"expiresAt":{"type":["string","null"]},"decidedAt":{"type":["string","null"]},"aiRecommendation":{"anyOf":[{"type":"string","enum":["approve","deny","escalate"]},{"type":"null"}]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"decisions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"approvalId":{"type":"string"},"stage":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"actorType":{"type":"string","enum":["rule","ai","user","api-key","system"]},"actorId":{"type":"string"},"actorLabel":{"type":"string"},"actorLevel":{"anyOf":[{"type":"string","enum":["customer","organization"]},{"type":"null"}]},"decision":{"type":"string","enum":["approve","deny","expire","close","recommend-approve","recommend-deny","escalate"]},"binding":{"type":"boolean"},"reasonCode":{"type":"string"},"motivation":{"type":"string"},"redacted":{"type":"boolean"},"evidence":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},{"type":"null"}]},"aiRecommendation":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["id","approvalId","actorType","actorId","actorLabel","decision","binding","reasonCode","createdAt"],"additionalProperties":false,"description":"A decision about an approval"}},"assessment":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"approvalId":{"type":"string"},"status":{"type":"string","enum":["running","complete","unavailable","stale"]},"recommendation":{"anyOf":[{"type":"string","enum":["approve","deny","escalate"]},{"type":"null"}]},"confidence":{"anyOf":[{"type":"string","enum":["low","medium","high"]},{"type":"null"}]},"exceptions":{"type":"array","items":{"type":"string"}},"checks":{"type":"array","items":{"type":"object","properties":{"check":{"type":"string","minLength":1,"maxLength":120},"status":{"type":"string","enum":["pass","fail","unavailable"]},"detail":{"type":"string","maxLength":500}},"required":["check","status"],"additionalProperties":false}},"summary":{"type":["string","null"]},"unavailableReason":{"type":["string","null"]},"conversationId":{"type":["string","null"]},"taskId":{"type":["string","null"]},"contextType":{"type":"string","enum":["customer","organization"]},"model":{"type":["string","null"]},"assessedAt":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["id","approvalId","status","exceptions","checks","contextType","createdAt","updatedAt"],"additionalProperties":false,"description":"An agent's assessment of an approval"},{"type":"null"}]},"viewer":{"type":"object","properties":{"canDecide":{"type":"boolean"},"level":{"anyOf":[{"type":"string","enum":["customer","organization"]},{"type":"null"}]},"reason":{"type":"string"}},"required":["canDecide","level"],"additionalProperties":false}},"required":["id","organizationId","mode","subjectType","subjectId","path","status","stages","currentStage","summary","rules","createdAt","updatedAt","decisions","viewer"],"additionalProperties":false,"description":"An approval with its decision log"}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/sessions":{"get":{"summary":"List integration sessions","tags":["connectorStudio"],"parameters":[{"name":"includeClosed","in":"query","schema":{"type":"boolean"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"connectorId":{"type":"string"},"kind":{"type":"string","enum":["build","improve","import"]},"importSource":{"anyOf":[{"type":"object","properties":{"origin":{"type":"string"},"connectorId":{"type":"string"},"version":{"type":"number"},"sha":{"type":"string"},"codeHash":{"type":"string"},"keyFingerprint":{"type":"string"}},"required":["origin","connectorId","version","sha","codeHash","keyFingerprint"],"additionalProperties":false},{"type":"null"}]},"title":{"type":"string"},"intent":{"type":["string","null"]},"status":{"type":"string","enum":["building","waiting_for_user","paused","proposed","closed"]},"driver":{"type":"string","enum":["portal","terminal"]},"driverUserId":{"type":["string","null"]},"driverUserName":{"type":["string","null"]},"conversationId":{"type":["string","null"]},"forkRepo":{"type":"string"},"baseSha":{"type":["string","null"]},"headSha":{"type":["string","null"]},"docSources":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"title":{"type":"string","maxLength":200}},"required":["url"],"additionalProperties":false}},"credentialNames":{"type":"array","items":{"type":"string"}},"credentialSources":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"url":{"type":"string"},"at":{"type":"string"}},"required":["url","at"],"additionalProperties":false}},"lastBattery":{"anyOf":[{"type":"object","properties":{"connectorId":{"type":"string"},"codeRef":{"type":"string"},"ranAt":{"type":"string"},"durationMs":{"type":"number"},"passed":{"type":"number"},"failed":{"type":"number"},"amber":{"type":"number"},"skipped":{"type":"number"},"green":{"type":"boolean"},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"group":{"type":"string"},"status":{"type":"string","enum":["pass","fail","amber","skip"]},"detail":{"type":"string"},"expected":{"type":"string"},"actual":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"exchanges":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["name","group","status","detail"],"additionalProperties":{}}}},"required":["connectorId","codeRef","ranAt","durationMs","passed","failed","amber","skipped","green","checks"],"additionalProperties":{}},{"type":"null"}]},"preview":{"anyOf":[{"type":"object","properties":{"sha":{"type":"string"},"at":{"type":["string","null"]},"accountId":{"type":["string","null"]}},"required":["sha","at","accountId"],"additionalProperties":false},{"type":"null"}]},"lastError":{"type":["string","null"]},"startedBy":{"type":"string"},"startedByName":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"closedAt":{"type":["string","null"]}},"required":["id","connectorId","kind","title","intent","status","driver","driverUserId","conversationId","forkRepo","baseSha","headSha","docSources","credentialNames","credentialSources","lastBattery","lastError","startedBy","createdAt","updatedAt","closedAt"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"post":{"summary":"Start building (or improving) a connector","tags":["connectorStudio"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"connectorId":{"type":"string","minLength":3,"maxLength":40},"name":{"type":"string","minLength":2,"maxLength":80},"intent":{"type":"string","maxLength":4000},"docSources":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"title":{"type":"string","maxLength":200}},"required":["url"]}},"credentials":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64},"value":{"type":"string","maxLength":4000}},"required":["name","value"]}},"fromChannel":{"type":"string","enum":["test","live"]},"autoStart":{"default":true,"type":"boolean"}},"required":["connectorId","name"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"connectorId":{"type":"string"},"kind":{"type":"string","enum":["build","improve","import"]},"importSource":{"anyOf":[{"type":"object","properties":{"origin":{"type":"string"},"connectorId":{"type":"string"},"version":{"type":"number"},"sha":{"type":"string"},"codeHash":{"type":"string"},"keyFingerprint":{"type":"string"}},"required":["origin","connectorId","version","sha","codeHash","keyFingerprint"],"additionalProperties":false},{"type":"null"}]},"title":{"type":"string"},"intent":{"type":["string","null"]},"status":{"type":"string","enum":["building","waiting_for_user","paused","proposed","closed"]},"driver":{"type":"string","enum":["portal","terminal"]},"driverUserId":{"type":["string","null"]},"driverUserName":{"type":["string","null"]},"conversationId":{"type":["string","null"]},"forkRepo":{"type":"string"},"baseSha":{"type":["string","null"]},"headSha":{"type":["string","null"]},"docSources":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"title":{"type":"string","maxLength":200}},"required":["url"],"additionalProperties":false}},"credentialNames":{"type":"array","items":{"type":"string"}},"credentialSources":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"url":{"type":"string"},"at":{"type":"string"}},"required":["url","at"],"additionalProperties":false}},"lastBattery":{"anyOf":[{"type":"object","properties":{"connectorId":{"type":"string"},"codeRef":{"type":"string"},"ranAt":{"type":"string"},"durationMs":{"type":"number"},"passed":{"type":"number"},"failed":{"type":"number"},"amber":{"type":"number"},"skipped":{"type":"number"},"green":{"type":"boolean"},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"group":{"type":"string"},"status":{"type":"string","enum":["pass","fail","amber","skip"]},"detail":{"type":"string"},"expected":{"type":"string"},"actual":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"exchanges":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["name","group","status","detail"],"additionalProperties":{}}}},"required":["connectorId","codeRef","ranAt","durationMs","passed","failed","amber","skipped","green","checks"],"additionalProperties":{}},{"type":"null"}]},"preview":{"anyOf":[{"type":"object","properties":{"sha":{"type":"string"},"at":{"type":["string","null"]},"accountId":{"type":["string","null"]}},"required":["sha","at","accountId"],"additionalProperties":false},{"type":"null"}]},"lastError":{"type":["string","null"]},"startedBy":{"type":"string"},"startedByName":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"closedAt":{"type":["string","null"]}},"required":["id","connectorId","kind","title","intent","status","driver","driverUserId","conversationId","forkRepo","baseSha","headSha","docSources","credentialNames","credentialSources","lastBattery","lastError","startedBy","createdAt","updatedAt","closedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/sessions/{id}":{"get":{"summary":"Get an integration session","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"session":{"type":"object","properties":{"id":{"type":"string"},"connectorId":{"type":"string"},"kind":{"type":"string","enum":["build","improve","import"]},"importSource":{"anyOf":[{"type":"object","properties":{"origin":{"type":"string"},"connectorId":{"type":"string"},"version":{"type":"number"},"sha":{"type":"string"},"codeHash":{"type":"string"},"keyFingerprint":{"type":"string"}},"required":["origin","connectorId","version","sha","codeHash","keyFingerprint"],"additionalProperties":false},{"type":"null"}]},"title":{"type":"string"},"intent":{"type":["string","null"]},"status":{"type":"string","enum":["building","waiting_for_user","paused","proposed","closed"]},"driver":{"type":"string","enum":["portal","terminal"]},"driverUserId":{"type":["string","null"]},"driverUserName":{"type":["string","null"]},"conversationId":{"type":["string","null"]},"forkRepo":{"type":"string"},"baseSha":{"type":["string","null"]},"headSha":{"type":["string","null"]},"docSources":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"title":{"type":"string","maxLength":200}},"required":["url"],"additionalProperties":false}},"credentialNames":{"type":"array","items":{"type":"string"}},"credentialSources":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"url":{"type":"string"},"at":{"type":"string"}},"required":["url","at"],"additionalProperties":false}},"lastBattery":{"anyOf":[{"type":"object","properties":{"connectorId":{"type":"string"},"codeRef":{"type":"string"},"ranAt":{"type":"string"},"durationMs":{"type":"number"},"passed":{"type":"number"},"failed":{"type":"number"},"amber":{"type":"number"},"skipped":{"type":"number"},"green":{"type":"boolean"},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"group":{"type":"string"},"status":{"type":"string","enum":["pass","fail","amber","skip"]},"detail":{"type":"string"},"expected":{"type":"string"},"actual":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"exchanges":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["name","group","status","detail"],"additionalProperties":{}}}},"required":["connectorId","codeRef","ranAt","durationMs","passed","failed","amber","skipped","green","checks"],"additionalProperties":{}},{"type":"null"}]},"preview":{"anyOf":[{"type":"object","properties":{"sha":{"type":"string"},"at":{"type":["string","null"]},"accountId":{"type":["string","null"]}},"required":["sha","at","accountId"],"additionalProperties":false},{"type":"null"}]},"lastError":{"type":["string","null"]},"startedBy":{"type":"string"},"startedByName":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"closedAt":{"type":["string","null"]}},"required":["id","connectorId","kind","title","intent","status","driver","driverUserId","conversationId","forkRepo","baseSha","headSha","docSources","credentialNames","credentialSources","lastBattery","lastError","startedBy","createdAt","updatedAt","closedAt"],"additionalProperties":false},"files":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"size":{"type":"number"},"updatedAt":{"type":"string"}},"required":["path","size","updatedAt"],"additionalProperties":false}},"credentialFields":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"label":{"type":"string"},"secret":{"type":"boolean"},"required":{"type":"boolean"},"help":{"type":"object","properties":{"text":{"type":"string"},"codes":{"type":"array","items":{"type":"object","properties":{"value":{"type":"string"},"meaning":{"type":"string"}},"required":["value","meaning"],"additionalProperties":false}},"links":{"type":"array","items":{"type":"object","properties":{"label":{"type":"string"},"url":{"type":"string","format":"uri"}},"required":["label","url"],"additionalProperties":false}}},"required":["text"],"additionalProperties":false}},"required":["name","label","secret","required"],"additionalProperties":false}},"authors":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"name":{"type":["string","null"]},"via":{"type":"string"},"firstAt":{"type":"string"}},"required":["userId","via","firstAt"],"additionalProperties":false}}},"required":["session","files","credentialFields","authors"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"patch":{"summary":"Pause, resume, close or rename a session; change its documentation sources","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["building","paused","closed"]},"title":{"type":"string","maxLength":120},"docSources":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"title":{"type":"string","maxLength":200}},"required":["url"]}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"connectorId":{"type":"string"},"kind":{"type":"string","enum":["build","improve","import"]},"importSource":{"anyOf":[{"type":"object","properties":{"origin":{"type":"string"},"connectorId":{"type":"string"},"version":{"type":"number"},"sha":{"type":"string"},"codeHash":{"type":"string"},"keyFingerprint":{"type":"string"}},"required":["origin","connectorId","version","sha","codeHash","keyFingerprint"],"additionalProperties":false},{"type":"null"}]},"title":{"type":"string"},"intent":{"type":["string","null"]},"status":{"type":"string","enum":["building","waiting_for_user","paused","proposed","closed"]},"driver":{"type":"string","enum":["portal","terminal"]},"driverUserId":{"type":["string","null"]},"driverUserName":{"type":["string","null"]},"conversationId":{"type":["string","null"]},"forkRepo":{"type":"string"},"baseSha":{"type":["string","null"]},"headSha":{"type":["string","null"]},"docSources":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"title":{"type":"string","maxLength":200}},"required":["url"],"additionalProperties":false}},"credentialNames":{"type":"array","items":{"type":"string"}},"credentialSources":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"url":{"type":"string"},"at":{"type":"string"}},"required":["url","at"],"additionalProperties":false}},"lastBattery":{"anyOf":[{"type":"object","properties":{"connectorId":{"type":"string"},"codeRef":{"type":"string"},"ranAt":{"type":"string"},"durationMs":{"type":"number"},"passed":{"type":"number"},"failed":{"type":"number"},"amber":{"type":"number"},"skipped":{"type":"number"},"green":{"type":"boolean"},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"group":{"type":"string"},"status":{"type":"string","enum":["pass","fail","amber","skip"]},"detail":{"type":"string"},"expected":{"type":"string"},"actual":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"exchanges":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["name","group","status","detail"],"additionalProperties":{}}}},"required":["connectorId","codeRef","ranAt","durationMs","passed","failed","amber","skipped","green","checks"],"additionalProperties":{}},{"type":"null"}]},"preview":{"anyOf":[{"type":"object","properties":{"sha":{"type":"string"},"at":{"type":["string","null"]},"accountId":{"type":["string","null"]}},"required":["sha","at","accountId"],"additionalProperties":false},{"type":"null"}]},"lastError":{"type":["string","null"]},"startedBy":{"type":"string"},"startedByName":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"closedAt":{"type":["string","null"]}},"required":["id","connectorId","kind","title","intent","status","driver","driverUserId","conversationId","forkRepo","baseSha","headSha","docSources","credentialNames","credentialSources","lastBattery","lastError","startedBy","createdAt","updatedAt","closedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/sessions/{id}/credentials":{"put":{"summary":"Set a session's test credentials","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"credentials":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":64},"value":{"type":"string","maxLength":4000}},"required":["name","value"]}},"replace":{"default":false,"type":"boolean"}},"required":["credentials"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"credentialNames":{"type":"array","items":{"type":"string"}}},"required":["credentialNames"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/sessions/{id}/file":{"get":{"summary":"Read a file of the session's working tree","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":300}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"content":{"type":"string"}},"required":["path","content"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"put":{"summary":"Write a file of the session's working tree","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":300},"content":{"type":"string","maxLength":200000}},"required":["path","content"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"path":{"type":"string"},"size":{"type":"number"}},"required":["path","size"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"summary":"Delete a file of the session's working tree","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"path","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":300}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"deleted":{"type":"boolean"}},"required":["deleted"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/sessions/{id}/commit":{"post":{"summary":"Commit the working tree to the session's fork","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","minLength":1,"maxLength":2000}},"required":["message"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"sha":{"type":"string"},"changed":{"type":"boolean"}},"required":["sha","changed"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/sessions/{id}/sync":{"post":{"summary":"Bring the working tree up to the fork's head (after a terminal pushed), keeping edits not yet committed","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"sha":{"type":["string","null"]},"files":{"type":"number"}},"required":["sha","files"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/sessions/{id}/checks":{"post":{"summary":"Run the static checks","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"default":{"source":"tree"},"type":"object","properties":{"source":{"default":"tree","type":"string","enum":["tree","head","sha"]},"sha":{"type":"string","pattern":"^[0-9a-f]{40}$"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean"},"problems":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["error","warn"]},"message":{"type":"string"}},"required":["level","message"],"additionalProperties":false}},"methods":{"type":"array","items":{"type":"string"}},"codeRef":{"type":"string"}},"required":["ok","problems"],"additionalProperties":{}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/sessions/{id}/battery":{"post":{"summary":"Run the host battery against the provider's sandbox","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"source":{"default":"tree","type":"string","enum":["tree","head","sha"]},"sha":{"type":"string","pattern":"^[0-9a-f]{40}$"},"filter":{"maxItems":40,"type":"array","items":{"type":"string"}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"connectorId":{"type":"string"},"codeRef":{"type":"string"},"ranAt":{"type":"string"},"durationMs":{"type":"number"},"passed":{"type":"number"},"failed":{"type":"number"},"amber":{"type":"number"},"skipped":{"type":"number"},"green":{"type":"boolean"},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"group":{"type":"string"},"status":{"type":"string","enum":["pass","fail","amber","skip"]},"detail":{"type":"string"},"expected":{"type":"string"},"actual":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"exchanges":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["name","group","status","detail"],"additionalProperties":{}}}},"required":["connectorId","codeRef","ranAt","durationMs","passed","failed","amber","skipped","green","checks"],"additionalProperties":{}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/sessions/{id}/call":{"post":{"summary":"Run one connector operation against the sandbox","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"operation":{"type":"string","minLength":1,"maxLength":40},"request":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"source":{"default":"tree","type":"string","enum":["tree","head","sha"]},"sha":{"type":"string","pattern":"^[0-9a-f]{40}$"}},"required":["operation"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"result":{},"exchanges":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["result","exchanges"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/sessions/{id}/propose":{"post":{"summary":"Propose the session's head for approval (a head already proposed answers with its version)","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"summary":{"type":"string","maxLength":4000},"justification":{"type":"string","maxLength":4000}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"connectorId":{"type":"string"},"connectorName":{"type":"string"},"sha":{"type":"string"},"version":{"type":["number","null"]},"parentSha":{"type":["string","null"]},"state":{"type":"string","enum":["proposed","rejected","approved_test","approved_live"]},"summary":{"type":["string","null"]},"justification":{"type":["string","null"]},"manifest":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"files":{"type":"array","items":{"type":"string"}},"batteryReport":{"anyOf":[{"type":"object","properties":{"connectorId":{"type":"string"},"codeRef":{"type":"string"},"ranAt":{"type":"string"},"durationMs":{"type":"number"},"passed":{"type":"number"},"failed":{"type":"number"},"amber":{"type":"number"},"skipped":{"type":"number"},"green":{"type":"boolean"},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"group":{"type":"string"},"status":{"type":"string","enum":["pass","fail","amber","skip"]},"detail":{"type":"string"},"expected":{"type":"string"},"actual":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"exchanges":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["name","group","status","detail"],"additionalProperties":{}}}},"required":["connectorId","codeRef","ranAt","durationMs","passed","failed","amber","skipped","green","checks"],"additionalProperties":{}},{"type":"null"}]},"checksReport":{"anyOf":[{"type":"object","properties":{"ok":{"type":"boolean"},"problems":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["error","warn"]},"message":{"type":"string"}},"required":["level","message"],"additionalProperties":false}},"methods":{"type":"array","items":{"type":"string"}},"codeRef":{"type":"string"}},"required":["ok","problems"],"additionalProperties":{}},{"type":"null"}]},"sessionId":{"type":["string","null"]},"proposedBy":{"type":["string","null"]},"proposedByName":{"type":["string","null"]},"proposedAt":{"type":"string"},"reviewedBy":{"type":["string","null"]},"reviewedByName":{"type":["string","null"]},"reviewedAt":{"type":["string","null"]},"reviewNote":{"type":["string","null"]},"approvedTestBy":{"type":["string","null"]},"approvedTestByName":{"type":["string","null"]},"approvedTestAt":{"type":["string","null"]},"approvedLiveBy":{"type":["string","null"]},"approvedLiveByName":{"type":["string","null"]},"approvedLiveAt":{"type":["string","null"]},"liveChecklist":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["boolean","string"]}},{"type":"null"}]},"source":{"anyOf":[{"type":"object","properties":{"origin":{"type":"string"},"connectorId":{"type":"string"},"version":{"type":"number"},"sha":{"type":"string"},"codeHash":{"type":"string"},"keyFingerprint":{"type":"string"}},"required":["origin","connectorId","version","sha","codeHash","keyFingerprint"],"additionalProperties":false},{"type":"null"}]}},"required":["connectorId","sha","version","parentSha","state","summary","justification","manifest","files","batteryReport","checksReport","sessionId","proposedBy","proposedAt","reviewedBy","reviewedAt","reviewNote","approvedTestBy","approvedTestAt","approvedLiveBy","approvedLiveAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/sessions/{id}/continue":{"post":{"summary":"Let Hactar continue (or start) working on the session","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string","maxLength":8000}}}}}},"responses":{"202":{"description":"202","content":{"application/json":{"schema":{"type":"object","properties":{"scheduled":{"type":"boolean"}},"required":["scheduled"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/sessions/{id}/drive":{"post":{"summary":"Take the session back to the portal (or release it to a terminal)","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"driver":{"type":"string","enum":["portal","terminal"]}},"required":["driver"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"connectorId":{"type":"string"},"kind":{"type":"string","enum":["build","improve","import"]},"importSource":{"anyOf":[{"type":"object","properties":{"origin":{"type":"string"},"connectorId":{"type":"string"},"version":{"type":"number"},"sha":{"type":"string"},"codeHash":{"type":"string"},"keyFingerprint":{"type":"string"}},"required":["origin","connectorId","version","sha","codeHash","keyFingerprint"],"additionalProperties":false},{"type":"null"}]},"title":{"type":"string"},"intent":{"type":["string","null"]},"status":{"type":"string","enum":["building","waiting_for_user","paused","proposed","closed"]},"driver":{"type":"string","enum":["portal","terminal"]},"driverUserId":{"type":["string","null"]},"driverUserName":{"type":["string","null"]},"conversationId":{"type":["string","null"]},"forkRepo":{"type":"string"},"baseSha":{"type":["string","null"]},"headSha":{"type":["string","null"]},"docSources":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"title":{"type":"string","maxLength":200}},"required":["url"],"additionalProperties":false}},"credentialNames":{"type":"array","items":{"type":"string"}},"credentialSources":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"url":{"type":"string"},"at":{"type":"string"}},"required":["url","at"],"additionalProperties":false}},"lastBattery":{"anyOf":[{"type":"object","properties":{"connectorId":{"type":"string"},"codeRef":{"type":"string"},"ranAt":{"type":"string"},"durationMs":{"type":"number"},"passed":{"type":"number"},"failed":{"type":"number"},"amber":{"type":"number"},"skipped":{"type":"number"},"green":{"type":"boolean"},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"group":{"type":"string"},"status":{"type":"string","enum":["pass","fail","amber","skip"]},"detail":{"type":"string"},"expected":{"type":"string"},"actual":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"exchanges":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["name","group","status","detail"],"additionalProperties":{}}}},"required":["connectorId","codeRef","ranAt","durationMs","passed","failed","amber","skipped","green","checks"],"additionalProperties":{}},{"type":"null"}]},"preview":{"anyOf":[{"type":"object","properties":{"sha":{"type":"string"},"at":{"type":["string","null"]},"accountId":{"type":["string","null"]}},"required":["sha","at","accountId"],"additionalProperties":false},{"type":"null"}]},"lastError":{"type":["string","null"]},"startedBy":{"type":"string"},"startedByName":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"closedAt":{"type":["string","null"]}},"required":["id","connectorId","kind","title","intent","status","driver","driverUserId","conversationId","forkRepo","baseSha","headSha","docSources","credentialNames","credentialSources","lastBattery","lastError","startedBy","createdAt","updatedAt","closedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/sessions/{id}/connect-code":{"post":{"summary":"A one-time code for continuing the session in a terminal","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"expiresAt":{"type":"string"},"command":{"type":"string"}},"required":["code","expiresAt","command"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/sessions/{id}/payments":{"get":{"summary":"The test payments made with the session's code, and what a test checkout can be opened with","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"payments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"number"},"transactionType":{"type":["string","null"]},"paymentOption":{"type":["string","null"]},"state":{"type":["string","null"]},"statusCode":{"type":["string","null"]},"extStatusCode":{"type":["string","null"]},"statusMessage":{"type":["string","null"]},"amountAmt":{"type":["string","null"]},"amountCy":{"type":["string","null"]},"providerTxId":{"type":["string","null"]},"providerAccount":{"type":["string","null"]}},"required":["id","createdAt"],"additionalProperties":{}}},"applications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slugId":{"type":"string"},"name":{"type":"string"},"organizationId":{"type":"string"},"customerId":{"type":"string"}},"required":["id","slugId","name","organizationId","customerId"],"additionalProperties":false}},"paymentOptions":{"type":"array","items":{"type":"string"}}},"required":["payments","applications","paymentOptions"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/sessions/{id}/checkout":{"post":{"summary":"Commit the session's work and open a test checkout whose payments run it, on the session's test account","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1},"amount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"cy":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amt","cy"]},"paymentOption":{"type":"string","minLength":1,"maxLength":60},"returnUrl":{"type":"string","maxLength":500,"format":"uri"}},"required":["applicationId","amount","paymentOption"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"expiresAt":{"type":"string"},"sha":{"type":"string"}},"required":["url","expiresAt","sha"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/sessions/{id}/payments/{transactionId}/analyse":{"post":{"summary":"Ask Hactar to analyse a payment and fix what went wrong","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"transactionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string","maxLength":2000}}}}}},"responses":{"202":{"description":"202","content":{"application/json":{"schema":{"type":"object","properties":{"scheduled":{"type":"boolean"}},"required":["scheduled"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors":{"get":{"summary":"List the dynamic connectors this organization owns, and the ones shared with it or offered to every organization","tags":["connectorStudio"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["building","active","disabled","archived"]},"ownerContextType":{"type":"string"},"ownerContextId":{"type":"string"},"ownerName":{"type":["string","null"]},"access":{"type":"string","enum":["owner","shared","platform"]},"subscribed":{"type":"boolean"},"repoName":{"type":"string"},"channels":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","enum":["test","live"]},"sha":{"type":"string"},"version":{"type":["number","null"]},"canarySha":{"type":["string","null"]},"canaryPct":{"type":["number","null"]},"previousSha":{"type":["string","null"]},"previousVersion":{"type":["number","null"]},"updatedBy":{"type":"string"},"updatedByName":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["channel","sha","canarySha","canaryPct","updatedBy","updatedAt"],"additionalProperties":false}},"pilot":{"anyOf":[{"type":"object","properties":{"channel":{"type":"string","const":"live"},"sha":{"type":"string"},"version":{"type":["number","null"]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"],"additionalProperties":false}},"startedBy":{"type":"string"},"startedByName":{"type":["string","null"]},"startedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["channel","sha","accounts","startedBy","startedAt","updatedAt"],"additionalProperties":false},{"type":"null"}]},"cardRouteHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardRoutes":{"type":"object","properties":{"test":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"live":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"createdBy":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","status","ownerContextType","ownerContextId","access","repoName","channels","cardRouteHosts","createdBy","createdAt"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors/{id}":{"get":{"summary":"Get a dynamic connector with its versions and sessions","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"connector":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["building","active","disabled","archived"]},"ownerContextType":{"type":"string"},"ownerContextId":{"type":"string"},"ownerName":{"type":["string","null"]},"access":{"type":"string","enum":["owner","shared","platform"]},"subscribed":{"type":"boolean"},"repoName":{"type":"string"},"channels":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","enum":["test","live"]},"sha":{"type":"string"},"version":{"type":["number","null"]},"canarySha":{"type":["string","null"]},"canaryPct":{"type":["number","null"]},"previousSha":{"type":["string","null"]},"previousVersion":{"type":["number","null"]},"updatedBy":{"type":"string"},"updatedByName":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["channel","sha","canarySha","canaryPct","updatedBy","updatedAt"],"additionalProperties":false}},"pilot":{"anyOf":[{"type":"object","properties":{"channel":{"type":"string","const":"live"},"sha":{"type":"string"},"version":{"type":["number","null"]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"],"additionalProperties":false}},"startedBy":{"type":"string"},"startedByName":{"type":["string","null"]},"startedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["channel","sha","accounts","startedBy","startedAt","updatedAt"],"additionalProperties":false},{"type":"null"}]},"cardRouteHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardRoutes":{"type":"object","properties":{"test":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"live":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"createdBy":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","status","ownerContextType","ownerContextId","access","repoName","channels","cardRouteHosts","createdBy","createdAt"],"additionalProperties":false},"versions":{"type":"array","items":{"type":"object","properties":{"connectorId":{"type":"string"},"connectorName":{"type":"string"},"sha":{"type":"string"},"version":{"type":["number","null"]},"parentSha":{"type":["string","null"]},"state":{"type":"string","enum":["proposed","rejected","approved_test","approved_live"]},"summary":{"type":["string","null"]},"justification":{"type":["string","null"]},"manifest":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"files":{"type":"array","items":{"type":"string"}},"batteryReport":{"anyOf":[{"type":"object","properties":{"connectorId":{"type":"string"},"codeRef":{"type":"string"},"ranAt":{"type":"string"},"durationMs":{"type":"number"},"passed":{"type":"number"},"failed":{"type":"number"},"amber":{"type":"number"},"skipped":{"type":"number"},"green":{"type":"boolean"},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"group":{"type":"string"},"status":{"type":"string","enum":["pass","fail","amber","skip"]},"detail":{"type":"string"},"expected":{"type":"string"},"actual":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"exchanges":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["name","group","status","detail"],"additionalProperties":{}}}},"required":["connectorId","codeRef","ranAt","durationMs","passed","failed","amber","skipped","green","checks"],"additionalProperties":{}},{"type":"null"}]},"checksReport":{"anyOf":[{"type":"object","properties":{"ok":{"type":"boolean"},"problems":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["error","warn"]},"message":{"type":"string"}},"required":["level","message"],"additionalProperties":false}},"methods":{"type":"array","items":{"type":"string"}},"codeRef":{"type":"string"}},"required":["ok","problems"],"additionalProperties":{}},{"type":"null"}]},"sessionId":{"type":["string","null"]},"proposedBy":{"type":["string","null"]},"proposedByName":{"type":["string","null"]},"proposedAt":{"type":"string"},"reviewedBy":{"type":["string","null"]},"reviewedByName":{"type":["string","null"]},"reviewedAt":{"type":["string","null"]},"reviewNote":{"type":["string","null"]},"approvedTestBy":{"type":["string","null"]},"approvedTestByName":{"type":["string","null"]},"approvedTestAt":{"type":["string","null"]},"approvedLiveBy":{"type":["string","null"]},"approvedLiveByName":{"type":["string","null"]},"approvedLiveAt":{"type":["string","null"]},"liveChecklist":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["boolean","string"]}},{"type":"null"}]},"source":{"anyOf":[{"type":"object","properties":{"origin":{"type":"string"},"connectorId":{"type":"string"},"version":{"type":"number"},"sha":{"type":"string"},"codeHash":{"type":"string"},"keyFingerprint":{"type":"string"}},"required":["origin","connectorId","version","sha","codeHash","keyFingerprint"],"additionalProperties":false},{"type":"null"}]}},"required":["connectorId","sha","version","parentSha","state","summary","justification","manifest","files","batteryReport","checksReport","sessionId","proposedBy","proposedAt","reviewedBy","reviewedAt","reviewNote","approvedTestBy","approvedTestAt","approvedLiveBy","approvedLiveAt"],"additionalProperties":false}},"sessions":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"connectorId":{"type":"string"},"kind":{"type":"string","enum":["build","improve","import"]},"importSource":{"anyOf":[{"type":"object","properties":{"origin":{"type":"string"},"connectorId":{"type":"string"},"version":{"type":"number"},"sha":{"type":"string"},"codeHash":{"type":"string"},"keyFingerprint":{"type":"string"}},"required":["origin","connectorId","version","sha","codeHash","keyFingerprint"],"additionalProperties":false},{"type":"null"}]},"title":{"type":"string"},"intent":{"type":["string","null"]},"status":{"type":"string","enum":["building","waiting_for_user","paused","proposed","closed"]},"driver":{"type":"string","enum":["portal","terminal"]},"driverUserId":{"type":["string","null"]},"driverUserName":{"type":["string","null"]},"conversationId":{"type":["string","null"]},"forkRepo":{"type":"string"},"baseSha":{"type":["string","null"]},"headSha":{"type":["string","null"]},"docSources":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"title":{"type":"string","maxLength":200}},"required":["url"],"additionalProperties":false}},"credentialNames":{"type":"array","items":{"type":"string"}},"credentialSources":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"url":{"type":"string"},"at":{"type":"string"}},"required":["url","at"],"additionalProperties":false}},"lastBattery":{"anyOf":[{"type":"object","properties":{"connectorId":{"type":"string"},"codeRef":{"type":"string"},"ranAt":{"type":"string"},"durationMs":{"type":"number"},"passed":{"type":"number"},"failed":{"type":"number"},"amber":{"type":"number"},"skipped":{"type":"number"},"green":{"type":"boolean"},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"group":{"type":"string"},"status":{"type":"string","enum":["pass","fail","amber","skip"]},"detail":{"type":"string"},"expected":{"type":"string"},"actual":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"exchanges":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["name","group","status","detail"],"additionalProperties":{}}}},"required":["connectorId","codeRef","ranAt","durationMs","passed","failed","amber","skipped","green","checks"],"additionalProperties":{}},{"type":"null"}]},"preview":{"anyOf":[{"type":"object","properties":{"sha":{"type":"string"},"at":{"type":["string","null"]},"accountId":{"type":["string","null"]}},"required":["sha","at","accountId"],"additionalProperties":false},{"type":"null"}]},"lastError":{"type":["string","null"]},"startedBy":{"type":"string"},"startedByName":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"closedAt":{"type":["string","null"]}},"required":["id","connectorId","kind","title","intent","status","driver","driverUserId","conversationId","forkRepo","baseSha","headSha","docSources","credentialNames","credentialSources","lastBattery","lastError","startedBy","createdAt","updatedAt","closedAt"],"additionalProperties":false}},"keptCredentials":{"anyOf":[{"type":"object","properties":{"sessionId":{"type":"string"},"title":{"type":"string"},"names":{"type":"array","items":{"type":"string"}}},"required":["sessionId","title","names"],"additionalProperties":false},{"type":"null"}]},"subscription":{"anyOf":[{"type":"object","properties":{"connectorId":{"type":"string"},"publisherOrigin":{"type":"string"},"publisherConnectorId":{"type":"string"},"keyFingerprint":{"type":"string"},"latestVersion":{"type":["number","null"]},"latestSha":{"type":["string","null"]},"latestCheckedAt":{"type":["string","null"]},"importedVersion":{"type":["number","null"]},"importedSha":{"type":["string","null"]},"importedAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["connectorId","publisherOrigin","publisherConnectorId","keyFingerprint","latestVersion","latestSha","latestCheckedAt","importedVersion","importedSha","importedAt","createdAt"],"additionalProperties":false},{"type":"null"}]}},"required":["connector","versions","sessions"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors/{id}/shares":{"get":{"summary":"The organizations a connector is shared with, and the ones it may be","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"shares":{"type":"array","items":{"type":"object","properties":{"organizationId":{"type":"string"},"name":{"type":["string","null"]},"grantedBy":{"type":"string"},"grantedByName":{"type":["string","null"]},"grantedAt":{"type":"string"}},"required":["organizationId","name","grantedBy","grantedAt"],"additionalProperties":false}},"candidates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}}},"required":["shares","candidates"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"put":{"summary":"Share a connector with exactly these organizations (refused while one losing it has accounts on it)","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"organizationIds":{"maxItems":200,"type":"array","items":{"type":"string"}}},"required":["organizationIds"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"shares":{"type":"array","items":{"type":"object","properties":{"organizationId":{"type":"string"},"name":{"type":["string","null"]},"grantedBy":{"type":"string"},"grantedByName":{"type":["string","null"]},"grantedAt":{"type":"string"}},"required":["organizationId","name","grantedBy","grantedAt"],"additionalProperties":false}},"candidates":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"}},"required":["id","name"],"additionalProperties":false}}},"required":["shares","candidates"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors/{id}/promote":{"post":{"summary":"Platform operations: offer a connector to every organization (the platform becomes its owner)","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["building","active","disabled","archived"]},"ownerContextType":{"type":"string"},"ownerContextId":{"type":"string"},"ownerName":{"type":["string","null"]},"access":{"type":"string","enum":["owner","shared","platform"]},"subscribed":{"type":"boolean"},"repoName":{"type":"string"},"channels":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","enum":["test","live"]},"sha":{"type":"string"},"version":{"type":["number","null"]},"canarySha":{"type":["string","null"]},"canaryPct":{"type":["number","null"]},"previousSha":{"type":["string","null"]},"previousVersion":{"type":["number","null"]},"updatedBy":{"type":"string"},"updatedByName":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["channel","sha","canarySha","canaryPct","updatedBy","updatedAt"],"additionalProperties":false}},"pilot":{"anyOf":[{"type":"object","properties":{"channel":{"type":"string","const":"live"},"sha":{"type":"string"},"version":{"type":["number","null"]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"],"additionalProperties":false}},"startedBy":{"type":"string"},"startedByName":{"type":["string","null"]},"startedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["channel","sha","accounts","startedBy","startedAt","updatedAt"],"additionalProperties":false},{"type":"null"}]},"cardRouteHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardRoutes":{"type":"object","properties":{"test":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"live":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"createdBy":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","status","ownerContextType","ownerContextId","access","repoName","channels","cardRouteHosts","createdBy","createdAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/release-key":{"get":{"summary":"This deployment's release signing key fingerprint","tags":["connectorStudio"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"configured":{"type":"boolean"},"fingerprint":{"type":["string","null"]}},"required":["configured","fingerprint"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors/{id}/feed-tokens":{"get":{"summary":"The tokens other deployments read this connector's releases with","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"feedUrl":{"type":"string"},"tokens":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"createdBy":{"type":"string"},"createdByName":{"type":["string","null"]},"createdAt":{"type":"string"},"lastUsedAt":{"type":["string","null"]},"revokedAt":{"type":["string","null"]}},"required":["id","label","createdBy","createdAt","lastUsedAt","revokedAt"],"additionalProperties":false}}},"required":["feedUrl","tokens"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"post":{"summary":"A token for one deployment to read this connector's releases (shown once)","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"label":{"type":"string","minLength":1,"maxLength":100}},"required":["label"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"token":{"type":"string"},"feedUrl":{"type":"string"}},"required":["id","token","feedUrl"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors/{id}/feed-tokens/{tokenId}":{"delete":{"summary":"Revoke a release feed token","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"tokenId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"revoked":{"type":"boolean"}},"required":["revoked"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/subscriptions":{"post":{"summary":"Subscribe to another deployment's connector: pins its signing key and creates the connector here","tags":["connectorStudio"],"parameters":[],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"feedUrl":{"type":"string","maxLength":500,"format":"uri"},"token":{"type":"string","minLength":10,"maxLength":200}},"required":["feedUrl","token"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"connector":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["building","active","disabled","archived"]},"ownerContextType":{"type":"string"},"ownerContextId":{"type":"string"},"ownerName":{"type":["string","null"]},"access":{"type":"string","enum":["owner","shared","platform"]},"subscribed":{"type":"boolean"},"repoName":{"type":"string"},"channels":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","enum":["test","live"]},"sha":{"type":"string"},"version":{"type":["number","null"]},"canarySha":{"type":["string","null"]},"canaryPct":{"type":["number","null"]},"previousSha":{"type":["string","null"]},"previousVersion":{"type":["number","null"]},"updatedBy":{"type":"string"},"updatedByName":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["channel","sha","canarySha","canaryPct","updatedBy","updatedAt"],"additionalProperties":false}},"pilot":{"anyOf":[{"type":"object","properties":{"channel":{"type":"string","const":"live"},"sha":{"type":"string"},"version":{"type":["number","null"]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"],"additionalProperties":false}},"startedBy":{"type":"string"},"startedByName":{"type":["string","null"]},"startedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["channel","sha","accounts","startedBy","startedAt","updatedAt"],"additionalProperties":false},{"type":"null"}]},"cardRouteHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardRoutes":{"type":"object","properties":{"test":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"live":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"createdBy":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","status","ownerContextType","ownerContextId","access","repoName","channels","cardRouteHosts","createdBy","createdAt"],"additionalProperties":false},"subscription":{"type":"object","properties":{"connectorId":{"type":"string"},"publisherOrigin":{"type":"string"},"publisherConnectorId":{"type":"string"},"keyFingerprint":{"type":"string"},"latestVersion":{"type":["number","null"]},"latestSha":{"type":["string","null"]},"latestCheckedAt":{"type":["string","null"]},"importedVersion":{"type":["number","null"]},"importedSha":{"type":["string","null"]},"importedAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["connectorId","publisherOrigin","publisherConnectorId","keyFingerprint","latestVersion","latestSha","latestCheckedAt","importedVersion","importedSha","importedAt","createdAt"],"additionalProperties":false}},"required":["connector","subscription"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors/{id}/subscription/check":{"post":{"summary":"Read the publisher's releases again","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"subscription":{"type":"object","properties":{"connectorId":{"type":"string"},"publisherOrigin":{"type":"string"},"publisherConnectorId":{"type":"string"},"keyFingerprint":{"type":"string"},"latestVersion":{"type":["number","null"]},"latestSha":{"type":["string","null"]},"latestCheckedAt":{"type":["string","null"]},"importedVersion":{"type":["number","null"]},"importedSha":{"type":["string","null"]},"importedAt":{"type":["string","null"]},"createdAt":{"type":"string"}},"required":["connectorId","publisherOrigin","publisherConnectorId","keyFingerprint","latestVersion","latestSha","latestCheckedAt","importedVersion","importedSha","importedAt","createdAt"],"additionalProperties":false},"releases":{"type":"array","items":{"type":"object","properties":{"version":{"type":"number"},"sha":{"type":"string"},"state":{"type":"string","enum":["approved_test","approved_live"]},"approvedAt":{"type":["string","null"]},"summary":{"type":["string","null"]},"codeHash":{"type":"string"}},"required":["version","sha","state","approvedAt","summary","codeHash"],"additionalProperties":false}}},"required":["subscription","releases"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors/{id}/subscription/import":{"post":{"summary":"Verify a release and open an import session holding it, to test and propose here","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"version":{"type":"integer","minimum":1,"maximum":9007199254740991}},"required":["version"]}}}},"responses":{"201":{"description":"201","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"connectorId":{"type":"string"},"kind":{"type":"string","enum":["build","improve","import"]},"importSource":{"anyOf":[{"type":"object","properties":{"origin":{"type":"string"},"connectorId":{"type":"string"},"version":{"type":"number"},"sha":{"type":"string"},"codeHash":{"type":"string"},"keyFingerprint":{"type":"string"}},"required":["origin","connectorId","version","sha","codeHash","keyFingerprint"],"additionalProperties":false},{"type":"null"}]},"title":{"type":"string"},"intent":{"type":["string","null"]},"status":{"type":"string","enum":["building","waiting_for_user","paused","proposed","closed"]},"driver":{"type":"string","enum":["portal","terminal"]},"driverUserId":{"type":["string","null"]},"driverUserName":{"type":["string","null"]},"conversationId":{"type":["string","null"]},"forkRepo":{"type":"string"},"baseSha":{"type":["string","null"]},"headSha":{"type":["string","null"]},"docSources":{"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"title":{"type":"string","maxLength":200}},"required":["url"],"additionalProperties":false}},"credentialNames":{"type":"array","items":{"type":"string"}},"credentialSources":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"url":{"type":"string"},"at":{"type":"string"}},"required":["url","at"],"additionalProperties":false}},"lastBattery":{"anyOf":[{"type":"object","properties":{"connectorId":{"type":"string"},"codeRef":{"type":"string"},"ranAt":{"type":"string"},"durationMs":{"type":"number"},"passed":{"type":"number"},"failed":{"type":"number"},"amber":{"type":"number"},"skipped":{"type":"number"},"green":{"type":"boolean"},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"group":{"type":"string"},"status":{"type":"string","enum":["pass","fail","amber","skip"]},"detail":{"type":"string"},"expected":{"type":"string"},"actual":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"exchanges":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["name","group","status","detail"],"additionalProperties":{}}}},"required":["connectorId","codeRef","ranAt","durationMs","passed","failed","amber","skipped","green","checks"],"additionalProperties":{}},{"type":"null"}]},"preview":{"anyOf":[{"type":"object","properties":{"sha":{"type":"string"},"at":{"type":["string","null"]},"accountId":{"type":["string","null"]}},"required":["sha","at","accountId"],"additionalProperties":false},{"type":"null"}]},"lastError":{"type":["string","null"]},"startedBy":{"type":"string"},"startedByName":{"type":["string","null"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"closedAt":{"type":["string","null"]}},"required":["id","connectorId","kind","title","intent","status","driver","driverUserId","conversationId","forkRepo","baseSha","headSha","docSources","credentialNames","credentialSources","lastBattery","lastError","startedBy","createdAt","updatedAt","closedAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors/{id}/versions/{sha}/diff":{"get":{"summary":"What a version changes against the one it was built from","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"sha","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"path":{"type":"string"},"status":{"type":"string","enum":["added","deleted","modified","unchanged"]},"lines":{"type":"array","items":{"type":"object","properties":{"kind":{"type":"string","enum":["same","add","del"]},"text":{"type":"string"}},"required":["kind","text"],"additionalProperties":false}},"truncated":{"type":"boolean"}},"required":["path","status","lines"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors/{id}/versions/{sha}/approve":{"post":{"summary":"Approve a version for test or live (moves that channel to it, or starts a live test)","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"sha","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"channel":{"type":"string","enum":["test","live"]},"note":{"type":"string","maxLength":2000},"checklist":{"type":"object","properties":{"cardRouteVerified":{"type":["boolean","string"]},"signedBodyResolved":{"type":["boolean","string"]},"liveCredentialsByHuman":{"type":["boolean","string"]},"ipAllowlistConfirmed":{"type":["boolean","string"]},"reconciliationReviewed":{"type":["boolean","string"]}},"required":["cardRouteVerified","signedBodyResolved","liveCredentialsByHuman","ipAllowlistConfirmed","reconciliationReviewed"]},"release":{"type":"string","enum":["all","pilot"]},"pilotAccounts":{"maxItems":100,"type":"array","items":{"type":"string"}}},"required":["channel"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"connectorId":{"type":"string"},"connectorName":{"type":"string"},"sha":{"type":"string"},"version":{"type":["number","null"]},"parentSha":{"type":["string","null"]},"state":{"type":"string","enum":["proposed","rejected","approved_test","approved_live"]},"summary":{"type":["string","null"]},"justification":{"type":["string","null"]},"manifest":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"files":{"type":"array","items":{"type":"string"}},"batteryReport":{"anyOf":[{"type":"object","properties":{"connectorId":{"type":"string"},"codeRef":{"type":"string"},"ranAt":{"type":"string"},"durationMs":{"type":"number"},"passed":{"type":"number"},"failed":{"type":"number"},"amber":{"type":"number"},"skipped":{"type":"number"},"green":{"type":"boolean"},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"group":{"type":"string"},"status":{"type":"string","enum":["pass","fail","amber","skip"]},"detail":{"type":"string"},"expected":{"type":"string"},"actual":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"exchanges":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["name","group","status","detail"],"additionalProperties":{}}}},"required":["connectorId","codeRef","ranAt","durationMs","passed","failed","amber","skipped","green","checks"],"additionalProperties":{}},{"type":"null"}]},"checksReport":{"anyOf":[{"type":"object","properties":{"ok":{"type":"boolean"},"problems":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["error","warn"]},"message":{"type":"string"}},"required":["level","message"],"additionalProperties":false}},"methods":{"type":"array","items":{"type":"string"}},"codeRef":{"type":"string"}},"required":["ok","problems"],"additionalProperties":{}},{"type":"null"}]},"sessionId":{"type":["string","null"]},"proposedBy":{"type":["string","null"]},"proposedByName":{"type":["string","null"]},"proposedAt":{"type":"string"},"reviewedBy":{"type":["string","null"]},"reviewedByName":{"type":["string","null"]},"reviewedAt":{"type":["string","null"]},"reviewNote":{"type":["string","null"]},"approvedTestBy":{"type":["string","null"]},"approvedTestByName":{"type":["string","null"]},"approvedTestAt":{"type":["string","null"]},"approvedLiveBy":{"type":["string","null"]},"approvedLiveByName":{"type":["string","null"]},"approvedLiveAt":{"type":["string","null"]},"liveChecklist":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["boolean","string"]}},{"type":"null"}]},"source":{"anyOf":[{"type":"object","properties":{"origin":{"type":"string"},"connectorId":{"type":"string"},"version":{"type":"number"},"sha":{"type":"string"},"codeHash":{"type":"string"},"keyFingerprint":{"type":"string"}},"required":["origin","connectorId","version","sha","codeHash","keyFingerprint"],"additionalProperties":false},{"type":"null"}]}},"required":["connectorId","sha","version","parentSha","state","summary","justification","manifest","files","batteryReport","checksReport","sessionId","proposedBy","proposedAt","reviewedBy","reviewedAt","reviewNote","approvedTestBy","approvedTestAt","approvedLiveBy","approvedLiveAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors/{id}/versions/{sha}/reject":{"post":{"summary":"Reject a proposed version","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"sha","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"note":{"type":"string","minLength":1,"maxLength":2000}},"required":["note"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"connectorId":{"type":"string"},"connectorName":{"type":"string"},"sha":{"type":"string"},"version":{"type":["number","null"]},"parentSha":{"type":["string","null"]},"state":{"type":"string","enum":["proposed","rejected","approved_test","approved_live"]},"summary":{"type":["string","null"]},"justification":{"type":["string","null"]},"manifest":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"files":{"type":"array","items":{"type":"string"}},"batteryReport":{"anyOf":[{"type":"object","properties":{"connectorId":{"type":"string"},"codeRef":{"type":"string"},"ranAt":{"type":"string"},"durationMs":{"type":"number"},"passed":{"type":"number"},"failed":{"type":"number"},"amber":{"type":"number"},"skipped":{"type":"number"},"green":{"type":"boolean"},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"group":{"type":"string"},"status":{"type":"string","enum":["pass","fail","amber","skip"]},"detail":{"type":"string"},"expected":{"type":"string"},"actual":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"exchanges":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["name","group","status","detail"],"additionalProperties":{}}}},"required":["connectorId","codeRef","ranAt","durationMs","passed","failed","amber","skipped","green","checks"],"additionalProperties":{}},{"type":"null"}]},"checksReport":{"anyOf":[{"type":"object","properties":{"ok":{"type":"boolean"},"problems":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["error","warn"]},"message":{"type":"string"}},"required":["level","message"],"additionalProperties":false}},"methods":{"type":"array","items":{"type":"string"}},"codeRef":{"type":"string"}},"required":["ok","problems"],"additionalProperties":{}},{"type":"null"}]},"sessionId":{"type":["string","null"]},"proposedBy":{"type":["string","null"]},"proposedByName":{"type":["string","null"]},"proposedAt":{"type":"string"},"reviewedBy":{"type":["string","null"]},"reviewedByName":{"type":["string","null"]},"reviewedAt":{"type":["string","null"]},"reviewNote":{"type":["string","null"]},"approvedTestBy":{"type":["string","null"]},"approvedTestByName":{"type":["string","null"]},"approvedTestAt":{"type":["string","null"]},"approvedLiveBy":{"type":["string","null"]},"approvedLiveByName":{"type":["string","null"]},"approvedLiveAt":{"type":["string","null"]},"liveChecklist":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["boolean","string"]}},{"type":"null"}]},"source":{"anyOf":[{"type":"object","properties":{"origin":{"type":"string"},"connectorId":{"type":"string"},"version":{"type":"number"},"sha":{"type":"string"},"codeHash":{"type":"string"},"keyFingerprint":{"type":"string"}},"required":["origin","connectorId","version","sha","codeHash","keyFingerprint"],"additionalProperties":false},{"type":"null"}]}},"required":["connectorId","sha","version","parentSha","state","summary","justification","manifest","files","batteryReport","checksReport","sessionId","proposedBy","proposedAt","reviewedBy","reviewedAt","reviewNote","approvedTestBy","approvedTestAt","approvedLiveBy","approvedLiveAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors/{id}/channels/{channel}":{"post":{"summary":"Point a channel at an approved version: rollback, promotion or canary","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"channel","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"sha":{"type":"string","pattern":"^[0-9a-f]{40}$"},"canarySha":{"anyOf":[{"type":"string","pattern":"^[0-9a-f]{40}$"},{"type":"null"}]},"canaryPct":{"anyOf":[{"type":"integer","minimum":1,"maximum":99},{"type":"null"}]}},"required":["sha"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["building","active","disabled","archived"]},"ownerContextType":{"type":"string"},"ownerContextId":{"type":"string"},"ownerName":{"type":["string","null"]},"access":{"type":"string","enum":["owner","shared","platform"]},"subscribed":{"type":"boolean"},"repoName":{"type":"string"},"channels":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","enum":["test","live"]},"sha":{"type":"string"},"version":{"type":["number","null"]},"canarySha":{"type":["string","null"]},"canaryPct":{"type":["number","null"]},"previousSha":{"type":["string","null"]},"previousVersion":{"type":["number","null"]},"updatedBy":{"type":"string"},"updatedByName":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["channel","sha","canarySha","canaryPct","updatedBy","updatedAt"],"additionalProperties":false}},"pilot":{"anyOf":[{"type":"object","properties":{"channel":{"type":"string","const":"live"},"sha":{"type":"string"},"version":{"type":["number","null"]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"],"additionalProperties":false}},"startedBy":{"type":"string"},"startedByName":{"type":["string","null"]},"startedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["channel","sha","accounts","startedBy","startedAt","updatedAt"],"additionalProperties":false},{"type":"null"}]},"cardRouteHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardRoutes":{"type":"object","properties":{"test":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"live":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"createdBy":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","status","ownerContextType","ownerContextId","access","repoName","channels","cardRouteHosts","createdBy","createdAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors/{id}/channels/{channel}/rollback":{"post":{"summary":"Point a channel back at the version it served before its last move","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}},{"name":"channel","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["building","active","disabled","archived"]},"ownerContextType":{"type":"string"},"ownerContextId":{"type":"string"},"ownerName":{"type":["string","null"]},"access":{"type":"string","enum":["owner","shared","platform"]},"subscribed":{"type":"boolean"},"repoName":{"type":"string"},"channels":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","enum":["test","live"]},"sha":{"type":"string"},"version":{"type":["number","null"]},"canarySha":{"type":["string","null"]},"canaryPct":{"type":["number","null"]},"previousSha":{"type":["string","null"]},"previousVersion":{"type":["number","null"]},"updatedBy":{"type":"string"},"updatedByName":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["channel","sha","canarySha","canaryPct","updatedBy","updatedAt"],"additionalProperties":false}},"pilot":{"anyOf":[{"type":"object","properties":{"channel":{"type":"string","const":"live"},"sha":{"type":"string"},"version":{"type":["number","null"]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"],"additionalProperties":false}},"startedBy":{"type":"string"},"startedByName":{"type":["string","null"]},"startedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["channel","sha","accounts","startedBy","startedAt","updatedAt"],"additionalProperties":false},{"type":"null"}]},"cardRouteHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardRoutes":{"type":"object","properties":{"test":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"live":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"createdBy":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","status","ownerContextType","ownerContextId","access","repoName","channels","cardRouteHosts","createdBy","createdAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors/{id}/pilot/accounts":{"get":{"summary":"The live accounts a live test may run on","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slugId":{"type":"string"},"name":{"type":"string"},"contextType":{"type":"string"},"contextId":{"type":"string"},"status":{"type":"string"}},"required":["id","slugId","name","contextType","contextId","status"],"additionalProperties":false}}},"required":["accounts"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors/{id}/pilot":{"put":{"summary":"Start or change a live test: these accounts run the version; every other one keeps the live channel","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"sha":{"type":"string","pattern":"^[0-9a-f]{40}$"},"accounts":{"maxItems":100,"type":"array","items":{"type":"string"}}},"required":["sha","accounts"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["building","active","disabled","archived"]},"ownerContextType":{"type":"string"},"ownerContextId":{"type":"string"},"ownerName":{"type":["string","null"]},"access":{"type":"string","enum":["owner","shared","platform"]},"subscribed":{"type":"boolean"},"repoName":{"type":"string"},"channels":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","enum":["test","live"]},"sha":{"type":"string"},"version":{"type":["number","null"]},"canarySha":{"type":["string","null"]},"canaryPct":{"type":["number","null"]},"previousSha":{"type":["string","null"]},"previousVersion":{"type":["number","null"]},"updatedBy":{"type":"string"},"updatedByName":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["channel","sha","canarySha","canaryPct","updatedBy","updatedAt"],"additionalProperties":false}},"pilot":{"anyOf":[{"type":"object","properties":{"channel":{"type":"string","const":"live"},"sha":{"type":"string"},"version":{"type":["number","null"]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"],"additionalProperties":false}},"startedBy":{"type":"string"},"startedByName":{"type":["string","null"]},"startedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["channel","sha","accounts","startedBy","startedAt","updatedAt"],"additionalProperties":false},{"type":"null"}]},"cardRouteHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardRoutes":{"type":"object","properties":{"test":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"live":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"createdBy":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","status","ownerContextType","ownerContextId","access","repoName","channels","cardRouteHosts","createdBy","createdAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}},"delete":{"summary":"Stop a live test: its accounts go back to the live channel's version","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["building","active","disabled","archived"]},"ownerContextType":{"type":"string"},"ownerContextId":{"type":"string"},"ownerName":{"type":["string","null"]},"access":{"type":"string","enum":["owner","shared","platform"]},"subscribed":{"type":"boolean"},"repoName":{"type":"string"},"channels":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","enum":["test","live"]},"sha":{"type":"string"},"version":{"type":["number","null"]},"canarySha":{"type":["string","null"]},"canaryPct":{"type":["number","null"]},"previousSha":{"type":["string","null"]},"previousVersion":{"type":["number","null"]},"updatedBy":{"type":"string"},"updatedByName":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["channel","sha","canarySha","canaryPct","updatedBy","updatedAt"],"additionalProperties":false}},"pilot":{"anyOf":[{"type":"object","properties":{"channel":{"type":"string","const":"live"},"sha":{"type":"string"},"version":{"type":["number","null"]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"],"additionalProperties":false}},"startedBy":{"type":"string"},"startedByName":{"type":["string","null"]},"startedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["channel","sha","accounts","startedBy","startedAt","updatedAt"],"additionalProperties":false},{"type":"null"}]},"cardRouteHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardRoutes":{"type":"object","properties":{"test":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"live":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"createdBy":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","status","ownerContextType","ownerContextId","access","repoName","channels","cardRouteHosts","createdBy","createdAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors/{id}/pilot/release":{"post":{"summary":"Release the version under live test to every live account","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["building","active","disabled","archived"]},"ownerContextType":{"type":"string"},"ownerContextId":{"type":"string"},"ownerName":{"type":["string","null"]},"access":{"type":"string","enum":["owner","shared","platform"]},"subscribed":{"type":"boolean"},"repoName":{"type":"string"},"channels":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","enum":["test","live"]},"sha":{"type":"string"},"version":{"type":["number","null"]},"canarySha":{"type":["string","null"]},"canaryPct":{"type":["number","null"]},"previousSha":{"type":["string","null"]},"previousVersion":{"type":["number","null"]},"updatedBy":{"type":"string"},"updatedByName":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["channel","sha","canarySha","canaryPct","updatedBy","updatedAt"],"additionalProperties":false}},"pilot":{"anyOf":[{"type":"object","properties":{"channel":{"type":"string","const":"live"},"sha":{"type":"string"},"version":{"type":["number","null"]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"],"additionalProperties":false}},"startedBy":{"type":"string"},"startedByName":{"type":["string","null"]},"startedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["channel","sha","accounts","startedBy","startedAt","updatedAt"],"additionalProperties":false},{"type":"null"}]},"cardRouteHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardRoutes":{"type":"object","properties":{"test":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"live":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"createdBy":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","status","ownerContextType","ownerContextId","access","repoName","channels","cardRouteHosts","createdBy","createdAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors/{id}/checkout/accounts":{"get":{"summary":"The organization's accounts on the connector, in the current mode, a checkout can pay through","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"mode":{"type":"string","enum":["test","live"]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slugId":{"type":"string"},"name":{"type":"string"},"contextType":{"type":"string"},"contextId":{"type":"string"},"runs":{"anyOf":[{"type":"object","properties":{"sha":{"type":"string"},"version":{"type":["number","null"]},"liveTest":{"type":"boolean"}},"required":["sha","version","liveTest"],"additionalProperties":false},{"type":"null"}]},"paymentOptions":{"type":"array","items":{"type":"string"}}},"required":["id","slugId","name","contextType","contextId","runs","paymentOptions"],"additionalProperties":false}},"applications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"slugId":{"type":"string"},"name":{"type":"string"},"organizationId":{"type":"string"},"customerId":{"type":"string"}},"required":["id","slugId","name","organizationId","customerId"],"additionalProperties":false}}},"required":["mode","accounts","applications"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors/{id}/checkout":{"post":{"summary":"Open a checkout in the current mode (live: real money) on one of the organization's accounts, running the version it runs","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"applicationId":{"type":"string","minLength":1},"amount":{"type":"object","properties":{"amt":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"cy":{"type":"string","pattern":"^[A-Z]{3}$"}},"required":["amt","cy"]},"paymentOption":{"type":"string","minLength":1,"maxLength":60},"returnUrl":{"type":"string","maxLength":500,"format":"uri"},"accountId":{"type":"string","minLength":1}},"required":["applicationId","amount","paymentOption","accountId"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string"},"expiresAt":{"type":"string"}},"required":["url","expiresAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors/{id}/payments":{"get":{"summary":"The organization's latest payments through this connector, in the current mode","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"payments":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"createdAt":{"type":"number"},"transactionType":{"type":["string","null"]},"paymentOption":{"type":["string","null"]},"state":{"type":["string","null"]},"statusCode":{"type":["string","null"]},"extStatusCode":{"type":["string","null"]},"statusMessage":{"type":["string","null"]},"amountAmt":{"type":["string","null"]},"amountCy":{"type":["string","null"]},"providerTxId":{"type":["string","null"]},"providerAccount":{"type":["string","null"]}},"required":["id","createdAt"],"additionalProperties":{}}}},"required":["payments"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors/{id}/status":{"post":{"summary":"Enable, disable (kill switch) or archive a dynamic connector","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["active","disabled","archived"]}},"required":["status"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["building","active","disabled","archived"]},"ownerContextType":{"type":"string"},"ownerContextId":{"type":"string"},"ownerName":{"type":["string","null"]},"access":{"type":"string","enum":["owner","shared","platform"]},"subscribed":{"type":"boolean"},"repoName":{"type":"string"},"channels":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","enum":["test","live"]},"sha":{"type":"string"},"version":{"type":["number","null"]},"canarySha":{"type":["string","null"]},"canaryPct":{"type":["number","null"]},"previousSha":{"type":["string","null"]},"previousVersion":{"type":["number","null"]},"updatedBy":{"type":"string"},"updatedByName":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["channel","sha","canarySha","canaryPct","updatedBy","updatedAt"],"additionalProperties":false}},"pilot":{"anyOf":[{"type":"object","properties":{"channel":{"type":"string","const":"live"},"sha":{"type":"string"},"version":{"type":["number","null"]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"],"additionalProperties":false}},"startedBy":{"type":"string"},"startedByName":{"type":["string","null"]},"startedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["channel","sha","accounts","startedBy","startedAt","updatedAt"],"additionalProperties":false},{"type":"null"}]},"cardRouteHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardRoutes":{"type":"object","properties":{"test":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"live":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"createdBy":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","status","ownerContextType","ownerContextId","access","repoName","channels","cardRouteHosts","createdBy","createdAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/connectors/{id}/card-routes":{"put":{"summary":"Platform operations: where card-bearing requests go per mode and host","tags":["connectorStudio"],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"test":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","format":"uri"}},"live":{"default":{},"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string","format":"uri"}}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"status":{"type":"string","enum":["building","active","disabled","archived"]},"ownerContextType":{"type":"string"},"ownerContextId":{"type":"string"},"ownerName":{"type":["string","null"]},"access":{"type":"string","enum":["owner","shared","platform"]},"subscribed":{"type":"boolean"},"repoName":{"type":"string"},"channels":{"type":"array","items":{"type":"object","properties":{"channel":{"type":"string","enum":["test","live"]},"sha":{"type":"string"},"version":{"type":["number","null"]},"canarySha":{"type":["string","null"]},"canaryPct":{"type":["number","null"]},"previousSha":{"type":["string","null"]},"previousVersion":{"type":["number","null"]},"updatedBy":{"type":"string"},"updatedByName":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["channel","sha","canarySha","canaryPct","updatedBy","updatedAt"],"additionalProperties":false}},"pilot":{"anyOf":[{"type":"object","properties":{"channel":{"type":"string","const":"live"},"sha":{"type":"string"},"version":{"type":["number","null"]},"accounts":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":["string","null"]}},"required":["id","name"],"additionalProperties":false}},"startedBy":{"type":"string"},"startedByName":{"type":["string","null"]},"startedAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["channel","sha","accounts","startedBy","startedAt","updatedAt"],"additionalProperties":false},{"type":"null"}]},"cardRouteHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardRoutes":{"type":"object","properties":{"test":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}},"live":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"cardHosts":{"type":"object","properties":{"test":{"type":"array","items":{"type":"string"}},"live":{"type":"array","items":{"type":"string"}}},"required":["test","live"],"additionalProperties":false},"createdBy":{"type":"string"},"createdAt":{"type":"string"}},"required":["id","name","status","ownerContextType","ownerContextId","access","repoName","channels","cardRouteHosts","createdBy","createdAt"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/proposals":{"get":{"summary":"Versions waiting for a decision","tags":["connectorStudio"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"array","items":{"type":"object","properties":{"connectorId":{"type":"string"},"connectorName":{"type":"string"},"sha":{"type":"string"},"version":{"type":["number","null"]},"parentSha":{"type":["string","null"]},"state":{"type":"string","enum":["proposed","rejected","approved_test","approved_live"]},"summary":{"type":["string","null"]},"justification":{"type":["string","null"]},"manifest":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"files":{"type":"array","items":{"type":"string"}},"batteryReport":{"anyOf":[{"type":"object","properties":{"connectorId":{"type":"string"},"codeRef":{"type":"string"},"ranAt":{"type":"string"},"durationMs":{"type":"number"},"passed":{"type":"number"},"failed":{"type":"number"},"amber":{"type":"number"},"skipped":{"type":"number"},"green":{"type":"boolean"},"checks":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"group":{"type":"string"},"status":{"type":"string","enum":["pass","fail","amber","skip"]},"detail":{"type":"string"},"expected":{"type":"string"},"actual":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"exchanges":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"required":["name","group","status","detail"],"additionalProperties":{}}}},"required":["connectorId","codeRef","ranAt","durationMs","passed","failed","amber","skipped","green","checks"],"additionalProperties":{}},{"type":"null"}]},"checksReport":{"anyOf":[{"type":"object","properties":{"ok":{"type":"boolean"},"problems":{"type":"array","items":{"type":"object","properties":{"level":{"type":"string","enum":["error","warn"]},"message":{"type":"string"}},"required":["level","message"],"additionalProperties":false}},"methods":{"type":"array","items":{"type":"string"}},"codeRef":{"type":"string"}},"required":["ok","problems"],"additionalProperties":{}},{"type":"null"}]},"sessionId":{"type":["string","null"]},"proposedBy":{"type":["string","null"]},"proposedByName":{"type":["string","null"]},"proposedAt":{"type":"string"},"reviewedBy":{"type":["string","null"]},"reviewedByName":{"type":["string","null"]},"reviewedAt":{"type":["string","null"]},"reviewNote":{"type":["string","null"]},"approvedTestBy":{"type":["string","null"]},"approvedTestByName":{"type":["string","null"]},"approvedTestAt":{"type":["string","null"]},"approvedLiveBy":{"type":["string","null"]},"approvedLiveByName":{"type":["string","null"]},"approvedLiveAt":{"type":["string","null"]},"liveChecklist":{"anyOf":[{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["boolean","string"]}},{"type":"null"}]},"source":{"anyOf":[{"type":"object","properties":{"origin":{"type":"string"},"connectorId":{"type":"string"},"version":{"type":"number"},"sha":{"type":"string"},"codeHash":{"type":"string"},"keyFingerprint":{"type":"string"}},"required":["origin","connectorId","version","sha","codeHash","keyFingerprint"],"additionalProperties":false},{"type":"null"}]}},"required":["connectorId","sha","version","parentSha","state","summary","justification","manifest","files","batteryReport","checksReport","sessionId","proposedBy","proposedAt","reviewedBy","reviewedAt","reviewNote","approvedTestBy","approvedTestAt","approvedLiveBy","approvedLiveAt"],"additionalProperties":false}}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/connector-studio/guide":{"get":{"summary":"The connector SDK, the house checklist and the reference connector","tags":["connectorStudio"],"parameters":[],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"sdkVersion":{"type":"number"},"checklist":{"type":"string"},"sdkTypes":{"type":"string"},"reference":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"string"}}},"required":["sdkVersion","checklist","sdkTypes","reference"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"401":{"description":"401","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"500":{"description":"500","content":{"application/json":{"schema":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"503":{"description":"503","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/payment-engine/providers":{"get":{"summary":"The providers whose settings this context can set up","tags":["providerSettings"],"parameters":[{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"provider":{"type":"object","properties":{"id":{"type":"string"},"slugId":{"type":"string"},"name":{"type":"string"},"connectorId":{"type":"string"},"enabled":{"type":"boolean"},"takesCards":{"type":"boolean"}},"required":["id","slugId","name","connectorId","enabled","takesCards"],"additionalProperties":false},"accounts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"accountsWithOwnValues":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"inputs":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["provider","accounts","accountsWithOwnValues","inputs"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/payment-engine/providers/{providerId}":{"get":{"summary":"A provider's inputs, values and provider accounts","tags":["providerSettings"],"parameters":[{"name":"providerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"object","properties":{"id":{"type":"string"},"slugId":{"type":"string"},"name":{"type":"string"},"connectorId":{"type":"string"},"enabled":{"type":"boolean"},"takesCards":{"type":"boolean"}},"required":["id","slugId","name","connectorId","enabled","takesCards"],"additionalProperties":false},"context":{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},"inputs":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"input"},"id":{"type":"string"},"providerId":{"type":"string"},"defaultInputId":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":80},"aliases":{"default":[],"type":"array","items":{"type":"string"}},"position":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"definition":{"type":"object","properties":{"kind":{"type":"string","enum":["regions","countries","currencies","amountRange","cardTypes","usage"]},"spec":{"type":"object","properties":{"measure":{"anyOf":[{"type":"string","enum":["count","volume"]},{"type":"object","properties":{"distinct":{"type":"string","enum":["userId","cardFingerprint","cardBin","ip","ipCountry","deviceId","browserFingerprint","email","mobile"]}},"required":["distinct"],"additionalProperties":false}]},"outcome":{"anyOf":[{"type":"string","enum":["successful","failed","attempted"]},{"type":"object","properties":{"statusCodes":{"minItems":1,"type":"array","items":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"}}},"required":["statusCodes"],"additionalProperties":false}]},"per":{"anyOf":[{"type":"string","enum":["providerAccount","customer"]},{"type":"string","enum":["userId","cardFingerprint","cardBin","ip","ipCountry","deviceId","browserFingerprint","email","mobile"]},{"type":"object","properties":{"metadata":{"type":"string","minLength":1}},"required":["metadata"],"additionalProperties":false}]},"window":{"type":"object","properties":{"value":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"unit":{"type":"string","enum":["minutes","hours","days"]},"mode":{"type":"string","enum":["sliding","tumbling"]},"timeZone":{"type":"string","minLength":1}},"required":["value","unit","mode"],"additionalProperties":false},"volumeIn":{"anyOf":[{"type":"string","const":"base"},{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}]},"when":{"type":"object","properties":{"transactionTypes":{"minItems":1,"type":"array","items":{"type":"string","enum":["debit","credit","refund","auth","capture","void","cancel","chargeback","3ds"]}},"paymentOptions":{"type":"array","items":{"type":"string"}},"currencies":{"type":"array","items":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"cardTypes":{"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","DINERS","DISCOVER","JCB","UNIONPAY","MAESTRO","ELO","MIR","HIPERCARD","HIPER","DANKORT","RUPAY","ELECTRON","UNKNOWN"]}},"customers":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}},"required":["measure","outcome","per","window"],"additionalProperties":false},"countryFacts":{"minItems":1,"type":"array","items":{"type":"string","enum":["cardBinCountry","ipCountry","customerCountry"]}},"onBreach":{"type":"string","enum":["skip","decline"]},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"sharedAcrossAccounts":{"type":"boolean"}},"required":["kind"],"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["type","id","providerId","name","aliases","position","definition"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"multiplier"},"id":{"type":"string"},"providerId":{"type":"string"},"defaultInputId":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":80},"aliases":{"default":[],"type":"array","items":{"type":"string"}},"position":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"definition":{"type":"object","properties":{"appliesTo":{"minItems":1,"type":"array","items":{"type":"string"}},"activeWhen":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"always"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"weekly"},"days":{"minItems":1,"type":"array","items":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]}},"timeZone":{"type":"string","minLength":1}},"required":["kind","days"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["kind","from","to"],"additionalProperties":false}]}},"required":["appliesTo","activeWhen"],"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["type","id","providerId","name","aliases","position","definition"],"additionalProperties":false}]}},"inputsVersion":{"type":["string","null"]},"document":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"ownerType":{"type":"string","enum":["provider","connection"]},"ownerId":{"type":"string"},"settings":{"type":"object","properties":{"values":{"default":[],"type":"array","items":{"type":"object","properties":{"inputId":{"type":"string"},"list":{"type":"array","items":{"type":"string"}},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"ranges":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["currency"],"additionalProperties":false}},"limit":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["inputId"],"additionalProperties":false}},"multipliers":{"default":[],"type":"array","items":{"type":"object","properties":{"multiplierId":{"type":"string"},"factor":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"note":{"type":"string","maxLength":500}},"required":["multiplierId","factor"],"additionalProperties":false}},"timeZone":{"type":"string","minLength":1}},"required":["values","multipliers"],"additionalProperties":false},"managedByApplicationId":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["id","ownerType","ownerId","settings","updatedAt"],"additionalProperties":false},{"type":"null"}]},"accounts":{"type":"array","items":{"type":"object","properties":{"account":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slugId":{"type":"string"},"serviceId":{"type":"string"},"status":{"type":"string"},"contextType":{"type":"string"},"contextId":{"type":"string"},"managedByApplicationId":{"type":["string","null"]}},"required":["id","name","slugId","serviceId","contextType","contextId"],"additionalProperties":false},"document":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"ownerType":{"type":"string","enum":["provider","connection"]},"ownerId":{"type":"string"},"settings":{"type":"object","properties":{"values":{"default":[],"type":"array","items":{"type":"object","properties":{"inputId":{"type":"string"},"list":{"type":"array","items":{"type":"string"}},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"ranges":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["currency"],"additionalProperties":false}},"limit":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["inputId"],"additionalProperties":false}},"multipliers":{"default":[],"type":"array","items":{"type":"object","properties":{"multiplierId":{"type":"string"},"factor":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"note":{"type":"string","maxLength":500}},"required":["multiplierId","factor"],"additionalProperties":false}},"timeZone":{"type":"string","minLength":1}},"required":["values","multipliers"],"additionalProperties":false},"managedByApplicationId":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["id","ownerType","ownerId","settings","updatedAt"],"additionalProperties":false},{"type":"null"}]},"resolved":{"type":"array","items":{"type":"object","properties":{"inputId":{"type":"string"},"list":{"type":"array","items":{"type":"string"}},"min":{"type":"number"},"max":{"type":"number"},"threshold":{"type":"number"},"layers":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","enum":["provider","account"]},"limit":{"type":"number"},"product":{"type":"number"},"threshold":{"type":"number"},"applied":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"factor":{"type":"number"}},"required":["name","factor"],"additionalProperties":false}}},"required":["source","limit","product","threshold","applied"],"additionalProperties":false}},"source":{"type":"string","enum":["provider","account","both","none"]},"widerThanProvider":{"type":"boolean"}},"required":["inputId","source","widerThanProvider"],"additionalProperties":false}}},"required":["account","document","resolved"],"additionalProperties":false}}},"required":["provider","context","inputs","inputsVersion","document","accounts"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/payment-engine/accounts/{connectionId}":{"get":{"summary":"A provider account's settings: its own, its provider's, and the effective ones","tags":["providerSettings"],"parameters":[{"name":"connectionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"object","properties":{"id":{"type":"string"},"slugId":{"type":"string"},"name":{"type":"string"},"connectorId":{"type":"string"},"enabled":{"type":"boolean"},"takesCards":{"type":"boolean"}},"required":["id","slugId","name","connectorId","enabled","takesCards"],"additionalProperties":false},"account":{"type":"object","properties":{"id":{"type":"string"},"name":{"type":"string"},"slugId":{"type":"string"},"serviceId":{"type":"string"},"status":{"type":"string"},"contextType":{"type":"string"},"contextId":{"type":"string"},"managedByApplicationId":{"type":["string","null"]}},"required":["id","name","slugId","serviceId","contextType","contextId"],"additionalProperties":false},"inputs":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"input"},"id":{"type":"string"},"providerId":{"type":"string"},"defaultInputId":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":80},"aliases":{"default":[],"type":"array","items":{"type":"string"}},"position":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"definition":{"type":"object","properties":{"kind":{"type":"string","enum":["regions","countries","currencies","amountRange","cardTypes","usage"]},"spec":{"type":"object","properties":{"measure":{"anyOf":[{"type":"string","enum":["count","volume"]},{"type":"object","properties":{"distinct":{"type":"string","enum":["userId","cardFingerprint","cardBin","ip","ipCountry","deviceId","browserFingerprint","email","mobile"]}},"required":["distinct"],"additionalProperties":false}]},"outcome":{"anyOf":[{"type":"string","enum":["successful","failed","attempted"]},{"type":"object","properties":{"statusCodes":{"minItems":1,"type":"array","items":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"}}},"required":["statusCodes"],"additionalProperties":false}]},"per":{"anyOf":[{"type":"string","enum":["providerAccount","customer"]},{"type":"string","enum":["userId","cardFingerprint","cardBin","ip","ipCountry","deviceId","browserFingerprint","email","mobile"]},{"type":"object","properties":{"metadata":{"type":"string","minLength":1}},"required":["metadata"],"additionalProperties":false}]},"window":{"type":"object","properties":{"value":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"unit":{"type":"string","enum":["minutes","hours","days"]},"mode":{"type":"string","enum":["sliding","tumbling"]},"timeZone":{"type":"string","minLength":1}},"required":["value","unit","mode"],"additionalProperties":false},"volumeIn":{"anyOf":[{"type":"string","const":"base"},{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}]},"when":{"type":"object","properties":{"transactionTypes":{"minItems":1,"type":"array","items":{"type":"string","enum":["debit","credit","refund","auth","capture","void","cancel","chargeback","3ds"]}},"paymentOptions":{"type":"array","items":{"type":"string"}},"currencies":{"type":"array","items":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"cardTypes":{"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","DINERS","DISCOVER","JCB","UNIONPAY","MAESTRO","ELO","MIR","HIPERCARD","HIPER","DANKORT","RUPAY","ELECTRON","UNKNOWN"]}},"customers":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}},"required":["measure","outcome","per","window"],"additionalProperties":false},"countryFacts":{"minItems":1,"type":"array","items":{"type":"string","enum":["cardBinCountry","ipCountry","customerCountry"]}},"onBreach":{"type":"string","enum":["skip","decline"]},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"sharedAcrossAccounts":{"type":"boolean"}},"required":["kind"],"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["type","id","providerId","name","aliases","position","definition"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"multiplier"},"id":{"type":"string"},"providerId":{"type":"string"},"defaultInputId":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":80},"aliases":{"default":[],"type":"array","items":{"type":"string"}},"position":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"definition":{"type":"object","properties":{"appliesTo":{"minItems":1,"type":"array","items":{"type":"string"}},"activeWhen":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"always"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"weekly"},"days":{"minItems":1,"type":"array","items":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]}},"timeZone":{"type":"string","minLength":1}},"required":["kind","days"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["kind","from","to"],"additionalProperties":false}]}},"required":["appliesTo","activeWhen"],"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["type","id","providerId","name","aliases","position","definition"],"additionalProperties":false}]}},"providerDocument":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"ownerType":{"type":"string","enum":["provider","connection"]},"ownerId":{"type":"string"},"settings":{"type":"object","properties":{"values":{"default":[],"type":"array","items":{"type":"object","properties":{"inputId":{"type":"string"},"list":{"type":"array","items":{"type":"string"}},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"ranges":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["currency"],"additionalProperties":false}},"limit":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["inputId"],"additionalProperties":false}},"multipliers":{"default":[],"type":"array","items":{"type":"object","properties":{"multiplierId":{"type":"string"},"factor":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"note":{"type":"string","maxLength":500}},"required":["multiplierId","factor"],"additionalProperties":false}},"timeZone":{"type":"string","minLength":1}},"required":["values","multipliers"],"additionalProperties":false},"managedByApplicationId":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["id","ownerType","ownerId","settings","updatedAt"],"additionalProperties":false},{"type":"null"}]},"providerContext":{"anyOf":[{"type":"object","properties":{"type":{"type":"string"},"id":{"type":"string"}},"required":["type","id"],"additionalProperties":false},{"type":"null"}]},"document":{"anyOf":[{"type":"object","properties":{"id":{"type":"string"},"ownerType":{"type":"string","enum":["provider","connection"]},"ownerId":{"type":"string"},"settings":{"type":"object","properties":{"values":{"default":[],"type":"array","items":{"type":"object","properties":{"inputId":{"type":"string"},"list":{"type":"array","items":{"type":"string"}},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"ranges":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["currency"],"additionalProperties":false}},"limit":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["inputId"],"additionalProperties":false}},"multipliers":{"default":[],"type":"array","items":{"type":"object","properties":{"multiplierId":{"type":"string"},"factor":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"note":{"type":"string","maxLength":500}},"required":["multiplierId","factor"],"additionalProperties":false}},"timeZone":{"type":"string","minLength":1}},"required":["values","multipliers"],"additionalProperties":false},"managedByApplicationId":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["id","ownerType","ownerId","settings","updatedAt"],"additionalProperties":false},{"type":"null"}]},"resolved":{"type":"array","items":{"type":"object","properties":{"inputId":{"type":"string"},"list":{"type":"array","items":{"type":"string"}},"min":{"type":"number"},"max":{"type":"number"},"threshold":{"type":"number"},"layers":{"type":"array","items":{"type":"object","properties":{"source":{"type":"string","enum":["provider","account"]},"limit":{"type":"number"},"product":{"type":"number"},"threshold":{"type":"number"},"applied":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"factor":{"type":"number"}},"required":["name","factor"],"additionalProperties":false}}},"required":["source","limit","product","threshold","applied"],"additionalProperties":false}},"source":{"type":"string","enum":["provider","account","both","none"]},"widerThanProvider":{"type":"boolean"}},"required":["inputId","source","widerThanProvider"],"additionalProperties":false}}},"required":["provider","account","inputs","providerDocument","providerContext","document","resolved"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/payment-engine/accounts/{connectionId}/usage":{"get":{"summary":"How much of its account-wide allowances a provider account has used","tags":["providerSettings"],"parameters":[{"name":"connectionId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"usage":{"type":"array","items":{"type":"object","properties":{"inputId":{"type":"string"},"used":{"type":"number"},"threshold":{"type":"number"}},"required":["inputId","used"],"additionalProperties":false}}},"required":["usage"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/payment-engine/providers/{providerId}/settings":{"put":{"summary":"Save a provider's values (the ceiling for its provider accounts)","tags":["providerSettings"],"parameters":[{"name":"providerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"settings":{"type":"object","properties":{"values":{"default":[],"type":"array","items":{"type":"object","properties":{"inputId":{"type":"string"},"list":{"type":"array","items":{"type":"string"}},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"ranges":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["currency"]}},"limit":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["inputId"]}},"multipliers":{"default":[],"type":"array","items":{"type":"object","properties":{"multiplierId":{"type":"string"},"factor":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"note":{"type":"string","maxLength":500}},"required":["multiplierId","factor"]}},"timeZone":{"type":"string","minLength":1}}},"expectedUpdatedAt":{"type":["string","null"]}},"required":["settings","expectedUpdatedAt"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"ownerType":{"type":"string","enum":["provider","connection"]},"ownerId":{"type":"string"},"settings":{"type":"object","properties":{"values":{"default":[],"type":"array","items":{"type":"object","properties":{"inputId":{"type":"string"},"list":{"type":"array","items":{"type":"string"}},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"ranges":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["currency"],"additionalProperties":false}},"limit":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["inputId"],"additionalProperties":false}},"multipliers":{"default":[],"type":"array","items":{"type":"object","properties":{"multiplierId":{"type":"string"},"factor":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"note":{"type":"string","maxLength":500}},"required":["multiplierId","factor"],"additionalProperties":false}},"timeZone":{"type":"string","minLength":1}},"required":["values","multipliers"],"additionalProperties":false},"managedByApplicationId":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["id","ownerType","ownerId","settings","updatedAt"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"reason":{"type":"string","const":"changed"}},"required":["message","reason"],"additionalProperties":false}}}},"422":{"description":"422","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"inputId":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}},"ownerId":{"type":"string"}},"required":["inputId","code"],"additionalProperties":false}}},"required":["message","issues"],"additionalProperties":false}}}}}}},"/api/v1/payment-engine/accounts/{connectionId}/settings":{"put":{"summary":"Save a provider account's values: only ever narrower than its provider's","tags":["providerSettings"],"parameters":[{"name":"connectionId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"settings":{"type":"object","properties":{"values":{"default":[],"type":"array","items":{"type":"object","properties":{"inputId":{"type":"string"},"list":{"type":"array","items":{"type":"string"}},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"ranges":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["currency"]}},"limit":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["inputId"]}},"multipliers":{"default":[],"type":"array","items":{"type":"object","properties":{"multiplierId":{"type":"string"},"factor":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"note":{"type":"string","maxLength":500}},"required":["multiplierId","factor"]}},"timeZone":{"type":"string","minLength":1}}},"expectedUpdatedAt":{"type":["string","null"]}},"required":["settings","expectedUpdatedAt"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"ownerType":{"type":"string","enum":["provider","connection"]},"ownerId":{"type":"string"},"settings":{"type":"object","properties":{"values":{"default":[],"type":"array","items":{"type":"object","properties":{"inputId":{"type":"string"},"list":{"type":"array","items":{"type":"string"}},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"ranges":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["currency"],"additionalProperties":false}},"limit":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["inputId"],"additionalProperties":false}},"multipliers":{"default":[],"type":"array","items":{"type":"object","properties":{"multiplierId":{"type":"string"},"factor":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"note":{"type":"string","maxLength":500}},"required":["multiplierId","factor"],"additionalProperties":false}},"timeZone":{"type":"string","minLength":1}},"required":["values","multipliers"],"additionalProperties":false},"managedByApplicationId":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["id","ownerType","ownerId","settings","updatedAt"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"reason":{"type":"string","const":"changed"}},"required":["message","reason"],"additionalProperties":false}}}},"422":{"description":"422","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"inputId":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}},"ownerId":{"type":"string"}},"required":["inputId","code"],"additionalProperties":false}}},"required":["message","issues"],"additionalProperties":false}}}}}}},"/api/v1/payment-engine/providers/{providerId}/inputs":{"put":{"summary":"Replace a provider's input columns and multipliers","tags":["providerSettings"],"parameters":[{"name":"providerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"inputs":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"input"},"id":{"type":"string"},"providerId":{"type":"string"},"defaultInputId":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":80},"aliases":{"default":[],"type":"array","items":{"type":"string"}},"position":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"definition":{"type":"object","properties":{"kind":{"type":"string","enum":["regions","countries","currencies","amountRange","cardTypes","usage"]},"spec":{"type":"object","properties":{"measure":{"anyOf":[{"type":"string","enum":["count","volume"]},{"type":"object","properties":{"distinct":{"type":"string","enum":["userId","cardFingerprint","cardBin","ip","ipCountry","deviceId","browserFingerprint","email","mobile"]}},"required":["distinct"]}]},"outcome":{"anyOf":[{"type":"string","enum":["successful","failed","attempted"]},{"type":"object","properties":{"statusCodes":{"minItems":1,"type":"array","items":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"}}},"required":["statusCodes"]}]},"per":{"anyOf":[{"type":"string","enum":["providerAccount","customer"]},{"type":"string","enum":["userId","cardFingerprint","cardBin","ip","ipCountry","deviceId","browserFingerprint","email","mobile"]},{"type":"object","properties":{"metadata":{"type":"string","minLength":1}},"required":["metadata"]}]},"window":{"type":"object","properties":{"value":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"unit":{"type":"string","enum":["minutes","hours","days"]},"mode":{"type":"string","enum":["sliding","tumbling"]},"timeZone":{"type":"string","minLength":1}},"required":["value","unit","mode"]},"volumeIn":{"anyOf":[{"type":"string","const":"base"},{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}]},"when":{"type":"object","properties":{"transactionTypes":{"minItems":1,"type":"array","items":{"type":"string","enum":["debit","credit","refund","auth","capture","void","cancel","chargeback","3ds"]}},"paymentOptions":{"type":"array","items":{"type":"string"}},"currencies":{"type":"array","items":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"cardTypes":{"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","DINERS","DISCOVER","JCB","UNIONPAY","MAESTRO","ELO","MIR","HIPERCARD","HIPER","DANKORT","RUPAY","ELECTRON","UNKNOWN"]}},"customers":{"type":"array","items":{"type":"string"}}}}},"required":["measure","outcome","per","window"]},"countryFacts":{"minItems":1,"type":"array","items":{"type":"string","enum":["cardBinCountry","ipCountry","customerCountry"]}},"onBreach":{"type":"string","enum":["skip","decline"]},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"sharedAcrossAccounts":{"type":"boolean"}},"required":["kind"]},"updatedAt":{"type":"string"}},"required":["type","id","providerId","name","definition"]},{"type":"object","properties":{"type":{"type":"string","const":"multiplier"},"id":{"type":"string"},"providerId":{"type":"string"},"defaultInputId":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":80},"aliases":{"default":[],"type":"array","items":{"type":"string"}},"position":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"definition":{"type":"object","properties":{"appliesTo":{"minItems":1,"type":"array","items":{"type":"string"}},"activeWhen":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"always"}},"required":["kind"]},{"type":"object","properties":{"kind":{"type":"string","const":"weekly"},"days":{"minItems":1,"type":"array","items":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]}},"timeZone":{"type":"string","minLength":1}},"required":["kind","days"]},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["kind","from","to"]}]}},"required":["appliesTo","activeWhen"]},"updatedAt":{"type":"string"}},"required":["type","id","providerId","name","definition"]}]}},"expectedUpdatedAt":{"type":["string","null"]}},"required":["inputs","expectedUpdatedAt"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"inputs":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"input"},"id":{"type":"string"},"providerId":{"type":"string"},"defaultInputId":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":80},"aliases":{"default":[],"type":"array","items":{"type":"string"}},"position":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"definition":{"type":"object","properties":{"kind":{"type":"string","enum":["regions","countries","currencies","amountRange","cardTypes","usage"]},"spec":{"type":"object","properties":{"measure":{"anyOf":[{"type":"string","enum":["count","volume"]},{"type":"object","properties":{"distinct":{"type":"string","enum":["userId","cardFingerprint","cardBin","ip","ipCountry","deviceId","browserFingerprint","email","mobile"]}},"required":["distinct"],"additionalProperties":false}]},"outcome":{"anyOf":[{"type":"string","enum":["successful","failed","attempted"]},{"type":"object","properties":{"statusCodes":{"minItems":1,"type":"array","items":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"}}},"required":["statusCodes"],"additionalProperties":false}]},"per":{"anyOf":[{"type":"string","enum":["providerAccount","customer"]},{"type":"string","enum":["userId","cardFingerprint","cardBin","ip","ipCountry","deviceId","browserFingerprint","email","mobile"]},{"type":"object","properties":{"metadata":{"type":"string","minLength":1}},"required":["metadata"],"additionalProperties":false}]},"window":{"type":"object","properties":{"value":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"unit":{"type":"string","enum":["minutes","hours","days"]},"mode":{"type":"string","enum":["sliding","tumbling"]},"timeZone":{"type":"string","minLength":1}},"required":["value","unit","mode"],"additionalProperties":false},"volumeIn":{"anyOf":[{"type":"string","const":"base"},{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}]},"when":{"type":"object","properties":{"transactionTypes":{"minItems":1,"type":"array","items":{"type":"string","enum":["debit","credit","refund","auth","capture","void","cancel","chargeback","3ds"]}},"paymentOptions":{"type":"array","items":{"type":"string"}},"currencies":{"type":"array","items":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"cardTypes":{"type":"array","items":{"type":"string","enum":["VISA","MASTERCARD","AMEX","DINERS","DISCOVER","JCB","UNIONPAY","MAESTRO","ELO","MIR","HIPERCARD","HIPER","DANKORT","RUPAY","ELECTRON","UNKNOWN"]}},"customers":{"type":"array","items":{"type":"string"}}},"additionalProperties":false}},"required":["measure","outcome","per","window"],"additionalProperties":false},"countryFacts":{"minItems":1,"type":"array","items":{"type":"string","enum":["cardBinCountry","ipCountry","customerCountry"]}},"onBreach":{"type":"string","enum":["skip","decline"]},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"sharedAcrossAccounts":{"type":"boolean"}},"required":["kind"],"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["type","id","providerId","name","aliases","position","definition"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"multiplier"},"id":{"type":"string"},"providerId":{"type":"string"},"defaultInputId":{"type":"string"},"name":{"type":"string","minLength":1,"maxLength":80},"aliases":{"default":[],"type":"array","items":{"type":"string"}},"position":{"default":0,"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"definition":{"type":"object","properties":{"appliesTo":{"minItems":1,"type":"array","items":{"type":"string"}},"activeWhen":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"always"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"weekly"},"days":{"minItems":1,"type":"array","items":{"type":"string","enum":["mon","tue","wed","thu","fri","sat","sun"]}},"timeZone":{"type":"string","minLength":1}},"required":["kind","days"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"between"},"from":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"to":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["kind","from","to"],"additionalProperties":false}]}},"required":["appliesTo","activeWhen"],"additionalProperties":false},"updatedAt":{"type":"string"}},"required":["type","id","providerId","name","aliases","position","definition"],"additionalProperties":false}]}},"inputsVersion":{"type":["string","null"]}},"required":["inputs","inputsVersion"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"reason":{"type":"string","const":"changed"}},"required":["message","reason"],"additionalProperties":false}}}},"422":{"description":"422","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"inputId":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}},"ownerId":{"type":"string"}},"required":["inputId","code"],"additionalProperties":false}}},"required":["message","issues"],"additionalProperties":false}}}}}}},"/api/v1/payment-engine/providers/{providerId}/grid":{"put":{"summary":"Save the Settings grid (edit, paste, import), all rows or none","tags":["providerSettings"],"parameters":[{"name":"providerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"provider":{"type":"object","properties":{"settings":{"type":"object","properties":{"values":{"default":[],"type":"array","items":{"type":"object","properties":{"inputId":{"type":"string"},"list":{"type":"array","items":{"type":"string"}},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"ranges":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["currency"]}},"limit":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["inputId"]}},"multipliers":{"default":[],"type":"array","items":{"type":"object","properties":{"multiplierId":{"type":"string"},"factor":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"note":{"type":"string","maxLength":500}},"required":["multiplierId","factor"]}},"timeZone":{"type":"string","minLength":1}}},"expectedUpdatedAt":{"type":["string","null"]}},"required":["settings","expectedUpdatedAt"]},"accounts":{"default":[],"type":"array","items":{"type":"object","properties":{"settings":{"type":"object","properties":{"values":{"default":[],"type":"array","items":{"type":"object","properties":{"inputId":{"type":"string"},"list":{"type":"array","items":{"type":"string"}},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"ranges":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["currency"]}},"limit":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["inputId"]}},"multipliers":{"default":[],"type":"array","items":{"type":"object","properties":{"multiplierId":{"type":"string"},"factor":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"note":{"type":"string","maxLength":500}},"required":["multiplierId","factor"]}},"timeZone":{"type":"string","minLength":1}}},"expectedUpdatedAt":{"type":["string","null"]},"connectionId":{"type":"string"}},"required":["settings","expectedUpdatedAt","connectionId"]}},"dryRun":{"type":"boolean"}}}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"issues":{"type":"array","items":{"type":"object","properties":{"inputId":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}},"ownerId":{"type":"string"}},"required":["inputId","code"],"additionalProperties":false}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"ownerType":{"type":"string","enum":["provider","connection"]},"ownerId":{"type":"string"},"settings":{"type":"object","properties":{"values":{"default":[],"type":"array","items":{"type":"object","properties":{"inputId":{"type":"string"},"list":{"type":"array","items":{"type":"string"}},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"ranges":{"type":"array","items":{"type":"object","properties":{"currency":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]},"min":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"max":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["currency"],"additionalProperties":false}},"limit":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}},"required":["inputId"],"additionalProperties":false}},"multipliers":{"default":[],"type":"array","items":{"type":"object","properties":{"multiplierId":{"type":"string"},"factor":{"type":"string","pattern":"^\\d+(\\.\\d+)?$"},"until":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"note":{"type":"string","maxLength":500}},"required":["multiplierId","factor"],"additionalProperties":false}},"timeZone":{"type":"string","minLength":1}},"required":["values","multipliers"],"additionalProperties":false},"managedByApplicationId":{"type":["string","null"]},"updatedAt":{"type":"string"}},"required":["id","ownerType","ownerId","settings","updatedAt"],"additionalProperties":false}}},"required":["issues","documents"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"reason":{"type":"string","const":"changed"}},"required":["message","reason"],"additionalProperties":false}}}}}}},"/api/v1/payment-engine/versions":{"get":{"summary":"The versions of a settings document or of a provider's input columns","tags":["providerSettings"],"parameters":[{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"entityType","in":"query","required":true,"schema":{"type":"string","enum":["provider-settings","provider-inputs"]}},{"name":"entityKey","in":"query","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"data":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"entityType":{"type":"string","enum":["service-connection","account-fees","provider","provider-policy","settings","decision-table","provider-settings","provider-inputs"]},"entityKey":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"change":{"type":"string"},"sourceVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"changes":{"anyOf":[{"type":"object","properties":{"details":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"field"},"path":{"type":"string"},"label":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"secret"},"path":{"type":"string"},"label":{"type":"string"},"action":{"type":"string","enum":["set","replaced","cleared"]}},"required":["type","path","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"path":{"type":"string"},"label":{"type":"string"},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","path","added","removed"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-table"},"table":{"type":"string"},"action":{"type":"string","enum":["added","removed"]}},"required":["type","table","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-rule"},"table":{"type":"string"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","table","detail"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","detail"],"additionalProperties":false}]}},"moreDetails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["details"],"additionalProperties":false},{"type":"null"}]},"note":{"type":["string","null"]},"actor":{"type":"object","properties":{"type":{"type":"string","enum":["user","api","system"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"onBehalf":{"type":"boolean"}},"required":["type","id","name","onBehalf"],"additionalProperties":false},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string"},"isCurrent":{"type":"boolean"}},"required":["id","entityType","entityKey","version","change","sourceVersion","changes","note","actor","mode","createdAt","isCurrent"],"additionalProperties":false}}},"required":["data"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/payment-engine/versions/{versionId}":{"get":{"summary":"One version","tags":["providerSettings"],"parameters":[{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"entityType","in":"query","required":true,"schema":{"type":"string","enum":["provider-settings","provider-inputs"]}},{"name":"entityKey","in":"query","required":true,"schema":{"type":"string","minLength":1}}],"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"id":{"type":"string"},"entityType":{"type":"string","enum":["service-connection","account-fees","provider","provider-policy","settings","decision-table","provider-settings","provider-inputs"]},"entityKey":{"type":"string"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"change":{"type":"string"},"sourceVersion":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"changes":{"anyOf":[{"type":"object","properties":{"details":{"type":"array","items":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"field"},"path":{"type":"string"},"label":{"type":"string"},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","path"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"secret"},"path":{"type":"string"},"label":{"type":"string"},"action":{"type":"string","enum":["set","replaced","cleared"]}},"required":["type","path","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"list"},"path":{"type":"string"},"label":{"type":"string"},"added":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"removed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","path","added","removed"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-table"},"table":{"type":"string"},"action":{"type":"string","enum":["added","removed"]}},"required":["type","table","action"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"fee-rule"},"table":{"type":"string"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","table","detail"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule"},"detail":{"oneOf":[{"type":"object","properties":{"type":{"type":"string","const":"rule-added"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"value":{"type":"string"},"listCount":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-removed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["type","rule"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"rule-changed"},"rule":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"cells":{"type":"array","items":{"type":"object","properties":{"column":{"type":"string"},"input":{"type":"boolean"},"from":{"type":"string"},"to":{"type":"string"},"listAdded":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"listRemoved":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["column","input"],"additionalProperties":false}},"enabled":{"type":"boolean"}},"required":["type","rule","cells"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-added"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-removed"},"column":{"type":"string"},"input":{"type":"boolean"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"column-changed"},"column":{"type":"string"},"input":{"type":"boolean"},"renamedTo":{"type":"string"}},"required":["type","column","input"],"additionalProperties":false},{"type":"object","properties":{"type":{"type":"string","const":"setting"},"setting":{"type":"string","enum":["name","slugId","description","kind","enabled","preConditions","hitPolicy"]},"from":{"type":"string"},"to":{"type":"string"}},"required":["type","setting"],"additionalProperties":false}]}},"required":["type","detail"],"additionalProperties":false}]}},"moreDetails":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["details"],"additionalProperties":false},{"type":"null"}]},"note":{"type":["string","null"]},"actor":{"type":"object","properties":{"type":{"type":"string","enum":["user","api","system"]},"id":{"type":["string","null"]},"name":{"type":["string","null"]},"onBehalf":{"type":"boolean"}},"required":["type","id","name","onBehalf"],"additionalProperties":false},"mode":{"anyOf":[{"type":"string","enum":["live","test"]},{"type":"null"}]},"createdAt":{"type":"string"},"isCurrent":{"type":"boolean"},"snapshot":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","entityType","entityKey","version","change","sourceVersion","changes","note","actor","mode","createdAt","isCurrent","snapshot"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}}}}},"/api/v1/payment-engine/versions/{versionId}/restore":{"post":{"summary":"Write an older version back (through the same checks as a save)","tags":["providerSettings"],"parameters":[{"name":"versionId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contextType","in":"query","schema":{"type":"string","enum":["organization","customer"]}},{"name":"contextId","in":"query","schema":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},{"name":"entityType","in":"query","required":true,"schema":{"type":"string","enum":["provider-settings","provider-inputs"]}},{"name":"entityKey","in":"query","required":true,"schema":{"type":"string","minLength":1}}],"requestBody":{"description":"Body","content":{"application/json":{"schema":{"type":"object","properties":{"expectedVersion":{"type":"integer","minimum":1,"maximum":9007199254740991},"note":{"type":"string","maxLength":500}},"required":["expectedVersion"]}}}},"responses":{"200":{"description":"200","content":{"application/json":{"schema":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false}}}},"400":{"description":"400","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"403":{"description":"403","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"404":{"description":"404","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"409":{"description":"409","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"}},"required":["message"],"additionalProperties":false}}}},"422":{"description":"422","content":{"application/json":{"schema":{"type":"object","properties":{"message":{"type":"string"},"issues":{"type":"array","items":{"type":"object","properties":{"inputId":{"type":"string"},"code":{"type":"string"},"params":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":["string","number"]}},"ownerId":{"type":"string"}},"required":["inputId","code"],"additionalProperties":false}}},"required":["message","issues"],"additionalProperties":false}}}}}}}},"info":{"title":"API","version":"1.0.0"},"components":{"securitySchemes":{"BearerAuth":{"type":"http","scheme":"bearer"}}},"security":[{"BearerAuth":[]}],"servers":[{"url":"https://api-dev.babelpay.io","description":"Current environment"}],"webhooks":{"paymentCallback":{"post":{"summary":"Payment webhook callback","description":"**Note: Never trust the callback data without signature verification!** The callback is sent to the callbackUrl provided in the payment request when the transaction reaches a final state. Delivered with up to 3 retries.\n\n## Amounts\n\n`amount` is what the payment was for; `txAmount` is what it was processed in.\n\n> **Warning:** `amount` is usually the amount and currency sent in the request that created the payment, but it can differ. For payment methods where the amount cannot be locked up front — such as a crypto deposit or a bank transfer — the payer decides what is actually sent. Always compare `amount` with your order before fulfilling it; never assume it equals what you requested.\n\n## Signature verification\n\nEvery webhook request includes two headers for signature verification:\n\n| Header | Description |\n| --- | --- |\n| `X-Webhook-Signature` | `sha256=<hex-encoded HMAC-SHA256>` |\n| `X-Webhook-Timestamp` | Unix epoch seconds when the request was signed |\n\nThe HMAC is computed over `{timestamp}.{raw JSON body}` using the `webhookSecret` (`whsec_…`) returned when the API key was created.\n\n### Verification steps\n\n1. Read `X-Webhook-Timestamp` and `X-Webhook-Signature` from the request headers.\n2. Reject the request if the timestamp is more than 5 minutes old (replay protection).\n3. Concatenate `{timestamp}.{raw request body}` (UTF-8).\n4. Compute `HMAC-SHA256(webhookSecret, concatenated string)` and hex-encode the result.\n5. Compare with the signature value after the `sha256=` prefix using a constant-time comparison.\n\n### Quick test — TypeScript Playground\n\nPaste the snippet below into [TypeScript Playground](https://www.typescriptlang.org/play), fill in the three values from an actual webhook request, and check the **Logs** tab.\n\n```typescript\n// ---- paste your values here ----\nconst webhookSecret    = \"whsec_...\";           // from API key creation\nconst signatureHeader  = \"sha256=...\";          // X-Webhook-Signature header\nconst timestampHeader  = \"1717344000\";          // X-Webhook-Timestamp header\nconst rawBody          = '{\"id\":\"...\"}';       // raw JSON body\n\n// ---- verify ----\n(async () => {\n  const enc = new TextEncoder();\n  const key = await crypto.subtle.importKey(\n    \"raw\", enc.encode(webhookSecret),\n    { name: \"HMAC\", hash: \"SHA-256\" }, false, [\"sign\"],\n  );\n  const sig = await crypto.subtle.sign(\n    \"HMAC\", key, enc.encode(`${timestampHeader}.${rawBody}`),\n  );\n  const expected = Array.from(new Uint8Array(sig))\n    .map(b => b.toString(16).padStart(2, \"0\")).join(\"\");\n  const received = signatureHeader.replace(/^sha256=/, \"\");\n\n  console.log(\"Expected:\", expected);\n  console.log(\"Received:\", received);\n  console.log(\"Valid:\", expected === received);\n})();\n```\n","requestBody":{"description":"The webhook callback payload containing the payment result.","required":true,"content":{"application/json":{"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"txRefId":{"type":"string","maxLength":255},"state":{"type":"string","enum":["success","processing","waiting","approval","declined","unknown","error","cancelled"],"description":"Payment transaction state"},"statusCode":{"type":"string","enum":["approved","manually_approved","do_not_honor","suspected_fraud","invalid_trx","invalid_amt","invalid_account","invalid_response","no_transaction","restricted_card","insufficient_funds","expired_card","trx_not_permitted","exceeds_limit","exceeds_frequency","invalid_cvv","issuer_err","dest_not_found","psp_malfunction","psp_routing_error","unable_to_authorize","3ds_auth_failure","psp_limits_reached","psp_timeout","user_aborted_trx","avs_response","no_auth_corresponding","already_captured","already_cancelled","already_refunded","unknown_card","currency_not_supported","amt_over_max","amt_under_min","mobile_block","email_block","ip_block","bin_block","device_block","user_block","account_block","risk_block","duplicate_trx","already_chargedback","too_old_to_refund","no_partial_refund","partial_refund_over","redirect","redirect_timeout","blocked","approval_pending","approval_denied","approval_expired","processing","routing_error","system_error","psp_error","bad_request","other"],"description":"Harmonized response codes"},"amount":{"description":"The amount and currency of the payment.\n\n**Warning:** `amount` is usually the amount and currency sent in the request that created the payment, but it can differ. For payment methods where the amount cannot be locked up front — such as a crypto deposit or a bank transfer — the payer decides what is actually sent. Always compare `amount` with your order before fulfilling it; never assume it equals what you requested.","type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false},"txAmount":{"description":"The amount and currency the payment was processed in. It can be in a different currency from `amount`, for example when the payment is converted or settled in crypto.","type":"object","properties":{"amt":{"type":"string","pattern":"^-?(?:0|[1-9][0-9]{0,17})(?:\\.[0-9]{0,17}[1-9])?$","description":"Decimal amount as a canonical string"},"cy":{"type":"string","enum":["USD","EUR","GBP","JPY","CHF","CAD","AUD","SEK","NOK","DKK","PLN","CZK","HUF","RUB","CNY","INR","KRW","SGD","HKD","NZD","MXN","BRL","ZAR","TRY","ILS","THB","MYR","IDR","PHP","VND","JOD","KWD","BHD","OMR","TND","LYD","CLP","COP","PEN","ARS","UYU","EGP","MAD","NGN","KES","GHS","BWP","ZMW","UGX","TZS","ETB","RWF","MUR","SCR","BTC","ETH","LTC","BCH","XRP","ADA","DOT","LINK","XLM","DOGE","BNB","SOL","MATIC","AVAX","ATOM","ALGO","TRX","USDT","USDC","DAI"]}},"required":["amt","cy"],"additionalProperties":false}},"required":["id"],"additionalProperties":false,"description":"Webhook callback payload sent to the customer callbackUrl"}}}},"parameters":[{"name":"X-Webhook-Signature","in":"header","required":false,"description":"HMAC-SHA256 signature: `sha256=<hex>`","schema":{"type":"string","example":"sha256=a1b2c3d4..."}},{"name":"X-Webhook-Timestamp","in":"header","required":false,"description":"Unix epoch seconds when the signature was computed","schema":{"type":"string","example":"1717344000"}}],"responses":{"200":{"description":"Callback received successfully. Any 2xx response is treated as success."}}}}}}