> For the complete documentation index, see [llms.txt](https://docs.thewalletcrew.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.thewalletcrew.io/api-reference/advanced/secutix-scripts.md).

# Secutix Scripts

## Get Secutix scripts

> Returns every script slot; a slot without a script has a null \`content\`.

```json
{"openapi":"3.1.1","info":{"title":"Neostore internal API","version":"v1"},"tags":[{"name":"SecutixScripts"}],"servers":[{"url":"https://app.neostore.cloud","description":"Production Server"},{"url":"https://app-qa.neostore.cloud","description":"Staging Server"}],"security":[{"admin-bearer":["tenant.secutix.settings:read"]},{"apiKey":[]}],"components":{"securitySchemes":{"admin-bearer":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://auth.neostore.cloud/authorize?audience=https://app.neostore.cloud/api/","scopes":{}}}},"apiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"}},"schemas":{"SecutixScriptsDefinition":{"required":["contactMapper","contactPassUpdater","movementMapper","ticketPassTypeFinder"],"type":"object","properties":{"contactMapper":{"description":"`extensions.secutix.contact.mapper`: adjusts the fields mapped between an account and a Secutix contact, in either direction.","$ref":"#/components/schemas/ExtensionScriptSlot"},"contactPassUpdater":{"description":"`extensions.secutix.contact.passUpdater`: the Secutix contact fields to set when a pass linked to a Secutix contact is installed or uninstalled. Without it, the contact is not written.","$ref":"#/components/schemas/ExtensionScriptSlot"},"movementMapper":{"description":"`extensions.secutix.movement.mapper`: adjusts the account fields mapped from a Secutix movement.","$ref":"#/components/schemas/ExtensionScriptSlot"},"ticketPassTypeFinder":{"description":"`extensions.secutix.ticket.passTypeFinder`: the pass template of a Secutix movement, or null to fall back to the `WALLET` comfort variable, then the default pass templates. A name that is not a known pass template is replaced by the default.","$ref":"#/components/schemas/ExtensionScriptSlot"}},"additionalProperties":false,"description":"The scripts the Secutix integration can be customised with."},"ExtensionScriptSlot":{"required":["conflictingFileNames","endpointName","fileName"],"type":"object","properties":{"endpointName":{"type":"string","description":"The extensibility endpoint the script implements, as passed to `register(...)`, e.g.\n`extensions.comarch.couponMapper`. Fixed per slot."},"fileName":{"type":"string","description":"Name of the script file backing the slot. Returned even when the file does not exist yet."},"content":{"type":["null","string"],"description":"The script's content. Null when the tenant has no such file."},"conflictingFileNames":{"type":"array","items":{"type":"string"},"description":"Other scripts that register the same endpoint; resolve any entry here so the endpoint has a single\nscript. Empty when there is none."}},"additionalProperties":false,"description":"The state of one script slot, as every extension's scripts endpoint returns it."},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"type":["null","integer"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}},"additionalProperties":{}},"HttpValidationProblemDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ProblemDetails"}],"properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"additionalProperties":{}}}},"paths":{"/api/{tenantId}/admin/extensions/secutix/scripts":{"get":{"tags":["SecutixScripts"],"summary":"Get Secutix scripts","description":"Returns every script slot; a slot without a script has a null `content`.","parameters":[{"name":"tenantId","in":"path","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Scripts returned.","content":{"text/plain":{"schema":{"description":"The scripts the Secutix integration can be customised with.","$ref":"#/components/schemas/SecutixScriptsDefinition"}},"application/json":{"schema":{"description":"The scripts the Secutix integration can be customised with.","$ref":"#/components/schemas/SecutixScriptsDefinition"}},"text/json":{"schema":{"description":"The scripts the Secutix integration can be customised with.","$ref":"#/components/schemas/SecutixScriptsDefinition"}}}},"401":{"description":"The caller is not authenticated.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"403":{"description":"The caller lacks the <c>tenant.secutix.settings:read</c> scope.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"429":{"description":"Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after <c>Retry-After</c>.","headers":{"Retry-After":{"description":"Seconds to wait before retrying. Sent when the limiter knows it.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}}}}}}}
```

## Update Secutix scripts

> A slot left out is untouched, \`{ "content": "…" }\` sets the script verbatim, \`{ "content": null }\`\
> removes it, and an empty content is refused. When a slot is refused, no script is changed.

```json
{"openapi":"3.1.1","info":{"title":"Neostore internal API","version":"v1"},"tags":[{"name":"SecutixScripts"}],"servers":[{"url":"https://app.neostore.cloud","description":"Production Server"},{"url":"https://app-qa.neostore.cloud","description":"Staging Server"}],"security":[{"admin-bearer":["tenant.secutix.settings:write"]},{"apiKey":[]}],"components":{"securitySchemes":{"admin-bearer":{"type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://auth.neostore.cloud/authorize?audience=https://app.neostore.cloud/api/","scopes":{}}}},"apiKey":{"type":"apiKey","name":"X-API-KEY","in":"header"}},"schemas":{"SetSecutixScriptsRequest":{"type":"object","properties":{"contactMapper":{"description":"Change to Neo.Extensions.Secutix.Controllers.SecutixScriptsDefinition.ContactMapper.","$ref":"#/components/schemas/ScriptSlotUpdate"},"contactPassUpdater":{"description":"Change to Neo.Extensions.Secutix.Controllers.SecutixScriptsDefinition.ContactPassUpdater.","$ref":"#/components/schemas/ScriptSlotUpdate"},"movementMapper":{"description":"Change to Neo.Extensions.Secutix.Controllers.SecutixScriptsDefinition.MovementMapper.","$ref":"#/components/schemas/ScriptSlotUpdate"},"ticketPassTypeFinder":{"description":"Change to Neo.Extensions.Secutix.Controllers.SecutixScriptsDefinition.TicketPassTypeFinder.","$ref":"#/components/schemas/ScriptSlotUpdate"}},"additionalProperties":false,"description":"Changes to the Secutix scripts. A slot left out is left untouched."},"ScriptSlotUpdate":{"type":"object","properties":{"content":{"type":["null","string"],"description":"The new script content. Null deletes the file."}},"additionalProperties":false,"description":"A change to one script slot."},"ProblemDetails":{"type":"object","properties":{"type":{"type":["null","string"]},"title":{"type":["null","string"]},"status":{"type":["null","integer"],"format":"int32"},"detail":{"type":["null","string"]},"instance":{"type":["null","string"]}},"additionalProperties":{}},"HttpValidationProblemDetails":{"type":"object","allOf":[{"$ref":"#/components/schemas/ProblemDetails"}],"properties":{"errors":{"type":"object","additionalProperties":{"type":"array","items":{"type":"string"}}}},"additionalProperties":{}}}},"paths":{"/api/{tenantId}/admin/extensions/secutix/scripts":{"put":{"tags":["SecutixScripts"],"summary":"Update Secutix scripts","description":"A slot left out is untouched, `{ \"content\": \"…\" }` sets the script verbatim, `{ \"content\": null }`\nremoves it, and an empty content is refused. When a slot is refused, no script is changed.","parameters":[{"name":"tenantId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"description":"The slots to change.","content":{"application/json":{"schema":{"description":"Changes to the Secutix scripts. A slot left out is left untouched.","$ref":"#/components/schemas/SetSecutixScriptsRequest"}},"text/json":{"schema":{"description":"Changes to the Secutix scripts. A slot left out is left untouched.","$ref":"#/components/schemas/SetSecutixScriptsRequest"}},"application/*+json":{"schema":{"description":"Changes to the Secutix scripts. A slot left out is left untouched.","$ref":"#/components/schemas/SetSecutixScriptsRequest"}}},"required":true},"responses":{"204":{"description":"Scripts saved."},"400":{"description":"A slot carries an empty content.","content":{"text/plain":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}},"text/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"401":{"description":"The caller is not authenticated.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"403":{"description":"The caller lacks the <c>tenant.secutix.settings:write</c> scope.","content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}},"429":{"description":"Over 1200 requests per minute to this endpoint for the tenant (default limit); retry after <c>Retry-After</c>.","headers":{"Retry-After":{"description":"Seconds to wait before retrying. Sent when the limiter knows it.","schema":{"type":"integer"}}},"content":{"application/problem+json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/ProblemDetails"},{"$ref":"#/components/schemas/HttpValidationProblemDetails"}]}}}}}}}}}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.thewalletcrew.io/api-reference/advanced/secutix-scripts.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
