{"openapi":"3.0.1","info":{"title":"API Database SmartIntegrator","description":"Documentazione API per il layer di SmartIntegrator","version":"1.0"},"servers":[{"url":"https://apiuat.bancomat.it/smart-integrator","description":"UAT"},{"url":"https://api.bancomat.it/smart-integrator","description":"PRD"}],"tags":[{"name":"Messages","description":"Gestione messaggi SiStd (RECV e SEND)"},{"name":"Files","description":"Gestione file SiStd (RECV e SEND)"}],"paths":{"/v1/messages":{"post":{"tags":["Messages"],"summary":"Crea richiesta invio messaggio","description":"Inserisce un nuovo record nella tabella FAS_MSG_SEND per avviare l'invio verso SiStd","operationId":"createMessage","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FasMsgSendDto"}}},"required":true},"responses":{"201":{"description":"Messaggio creato"},"400":{"description":"Input non valido","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"500":{"description":"Errore interno","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}}}}},"/v1/files":{"post":{"tags":["Files"],"summary":"Crea richiesta invio file","description":"Inserisce un nuovo record nella tabella SEND_FILE per avviare l'invio verso SiStd","operationId":"createFile","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendFileDto"}}},"required":true},"responses":{"201":{"description":"File creato"},"400":{"description":"Input non valido","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"500":{"description":"Errore interno","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}}}}},"/v1/messages/recv/{msgId}/status":{"get":{"tags":["Messages"],"summary":"Recupera stato messaggio in ricezione","description":"Restituisce lo stato di invio del messaggio nella tabella FAS_MSG_RECV","operationId":"getStato","parameters":[{"name":"msgId","in":"path","description":"Identificativo univoco del messaggio (msgId)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Stato trovato","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StatusDto"}}}},"400":{"description":"Richiesta non valida","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"404":{"description":"Messaggio non trovato","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"500":{"description":"Errore interno","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}}}},"patch":{"tags":["Messages"],"summary":"Aggiorna stato messaggio","description":"Aggiorna lo stato del messaggio.","operationId":"updateSendStatus","parameters":[{"name":"msgId","in":"path","description":"Identificativo messaggio (msgId)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusRequestDto"}}},"required":true},"responses":{"204":{"description":"Stato aggiornato"},"400":{"description":"Input non valido","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"404":{"description":"Messaggio non trovato","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"500":{"description":"Errore interno","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}}}}},"/v1/files/{vfn}/status":{"patch":{"tags":["Files"],"summary":"Aggiorna stato file","description":"Aggiorna lo stato del file.","operationId":"updateStato","parameters":[{"name":"vfn","in":"path","description":"Identificativo file (VFN)","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatusRequestDto"}}},"required":true},"responses":{"204":{"description":"Stato aggiornato"},"400":{"description":"Richiesta non valida","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"404":{"description":"File non trovato","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"500":{"description":"Errore interno","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}}}}},"/v1/messages/{msgId}":{"get":{"tags":["Messages"],"summary":"Recupera dettaglio messaggio","description":"Restituisce il dettaglio completo del messaggio ricevuto (FAS_MSG_RECV)","operationId":"getByMsgId","parameters":[{"name":"msgId","in":"path","description":"Identificativo messaggio (msgId)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Messaggio trovato","content":{"*/*":{"schema":{"$ref":"#/components/schemas/FasMsgRecvDto"}}}},"400":{"description":"Richiesta non valida","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"404":{"description":"Messaggio non trovato","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"500":{"description":"Errore interno","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}}}}},"/v1/messages/{msgId}/mab":{"get":{"tags":["Messages"],"summary":"Recupera MAB del messaggio","description":"Restituisce il contenuto binario del messaggio (campo MAB)","operationId":"getMab","parameters":[{"name":"msgId","in":"path","description":"Identificativo messaggio (msgId)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"MAB restituito","content":{"application/octet-stream":{}}},"404":{"description":"MAB non trovato","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"500":{"description":"Errore interno","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}}}}},"/v1/messages/send/{msgId}/status":{"get":{"tags":["Messages"],"summary":"Recupera stato messaggio in invio","description":"Restituisce lo stato di invio del messaggio nella tabella FAS_MSG_SEND","operationId":"getSendStatus","parameters":[{"name":"msgId","in":"path","description":"Identificativo univoco del messaggio (msgId)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Esito invio recuperato","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StatusDto"}}}},"400":{"description":"Richiesta non valida","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"404":{"description":"Esito non trovato","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}}}}},"/v1/files/{vfn}":{"get":{"tags":["Files"],"summary":"Recupera dettagli file","description":"Restituisce il dettaglio completo del file a partire dal VFN","operationId":"getByVfn","parameters":[{"name":"vfn","in":"path","description":"Identificativo file (VFN)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"File trovato","content":{"*/*":{"schema":{"$ref":"#/components/schemas/RecvFileDto"}}}},"400":{"description":"Richiesta non valida","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"404":{"description":"File non trovato","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"500":{"description":"Errore interno","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}}}}},"/v1/files/send/{vfn}/status":{"get":{"tags":["Files"],"summary":"Recupera stato file in invio","description":"Restituisce lo stato di invio del messaggio nella tabella SEND_FILE","operationId":"getSendStatus_1","parameters":[{"name":"vfn","in":"path","description":"Identificativo file (VFN)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Stato trovato","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StatusDto"}}}},"400":{"description":"Richiesta non valida","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"404":{"description":"File non trovato","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"500":{"description":"Errore interno","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}}}}},"/v1/files/recv/{vfn}/status":{"get":{"tags":["Files"],"summary":"Recupera stato file in ricezione","description":"Restituisce lo stato di invio del messaggio nella tabella RECV_FILE","operationId":"getRecvtatus","parameters":[{"name":"vfn","in":"path","description":"Identificativo file (VFN)","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Stato trovato","content":{"*/*":{"schema":{"$ref":"#/components/schemas/StatusDto"}}}},"400":{"description":"Richiesta non valida","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"404":{"description":"File non trovato","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}},"500":{"description":"Errore interno","content":{"*/*":{"schema":{"$ref":"#/components/schemas/ErrorDto"}}}}}}}},"components":{"schemas":{"FasMsgSendDto":{"type":"object","properties":{"localBa":{"type":"string"},"remoteBa":{"type":"string"},"msgType":{"type":"string"},"catAppl":{"type":"string"},"tur":{"type":"string"},"msgId":{"type":"string"},"remoteRef":{"type":"string"},"priority":{"type":"integer","format":"int32"},"certfReq":{"type":"integer","format":"int32"},"statusCode":{"type":"integer","format":"int32"},"status":{"type":"string"},"easStatus":{"type":"string"},"complete":{"type":"integer","format":"int32"},"applCheck":{"type":"integer","format":"int32"},"createDate":{"type":"string"},"lastUpdate":{"type":"string"},"updateMark":{"type":"integer","format":"int32"},"seqId":{"type":"integer","format":"int32"},"msgSize":{"type":"integer","format":"int32"},"mab":{"type":"string","format":"byte"},"baReqTime":{"type":"string"},"barAcqTime":{"type":"string"},"femsiRetryNumber":{"type":"integer","format":"int32"},"firstEasSubTime":{"type":"string"},"lastEasSubTime":{"type":"string"},"ferSubTime":{"type":"string"},"fenDelTime":{"type":"string"},"ferDelTime":{"type":"string"},"baInsertTimestamp":{"type":"string","format":"date-time"},"loadTimestamp":{"type":"string","format":"date-time"},"sendReqTimestamp":{"type":"string","format":"date-time"},"sendErrTimestamp":{"type":"string","format":"date-time"},"sendCnfTimestamp":{"type":"string","format":"date-time"},"sendScTimestamp":{"type":"string","format":"date-time"},"statusInfo":{"type":"string"},"fasSeqid":{"type":"integer","format":"int64"},"cleanupStatus":{"type":"string"},"cleanupLot":{"type":"integer","format":"int64"},"cleanupType":{"type":"string"},"netMsgId":{"type":"string"},"msgDigestAlg":{"type":"string"},"msgDigest":{"type":"string"},"localAuthInfoAlg":{"type":"string"},"localAuthInfo":{"type":"string"}}},"ErrorDto":{"type":"object","properties":{"timestamp":{"type":"string","description":"Timestamp errore","format":"date-time","example":"2026-01-01T12:00:00Z"},"status":{"type":"integer","description":"HTTP status code","format":"int32","example":400},"error":{"type":"string","description":"Descrizione HTTP status","example":"Bad Request"},"message":{"type":"string","description":"Messaggio di errore","example":"Invalid input parameter"}},"description":"Struttura standard degli errori API"},"SendFileDto":{"type":"object","properties":{"vfn":{"type":"string"},"fname":{"type":"string"},"localBa":{"type":"string"},"remoteBa":{"type":"string"},"status":{"type":"string"},"easStatus":{"type":"string"},"statusCode":{"type":"integer","format":"int32"},"complete":{"type":"integer","format":"int32"},"transpType":{"type":"string"},"createDate":{"type":"string"},"lastUpdate":{"type":"string"},"applCheck":{"type":"integer","format":"int32"},"originalFname":{"type":"string"},"retryCnt":{"type":"integer","format":"int32"},"updateMark":{"type":"integer","format":"int32"},"fsize":{"type":"integer","format":"int64"},"fmd5":{"type":"string"},"fblkmoved":{"type":"integer","format":"int32"},"filemap":{"type":"string"},"operationTimestamp":{"type":"string","format":"date-time"},"operation":{"type":"string"},"reactivate":{"type":"string"},"refDate":{"type":"string"},"actReqTime":{"type":"string"},"easAcqTime":{"type":"string"},"queueInsTime":{"type":"string"},"startTime":{"type":"string"},"easComplTime":{"type":"string"},"baProcTime":{"type":"string"},"easElabTime":{"type":"string"},"baInsertTimestamp":{"type":"string","format":"date-time"},"sendAcceptedTimestamp":{"type":"string","format":"date-time"},"sendGftRequestTimestamp":{"type":"string","format":"date-time"},"sendRequestTimestamp":{"type":"string","format":"date-time"},"sendConfirmedTimestamp":{"type":"string","format":"date-time"},"sendCompletedTimestamp":{"type":"string","format":"date-time"},"sendErrorTimestamp":{"type":"string","format":"date-time"},"statusInfo":{"type":"string"},"idSendFile":{"type":"integer","format":"int64"},"applicativeDataField":{"type":"string"},"applicativeDataFieldLength":{"type":"integer","format":"int32"},"cleanupStatus":{"type":"string"},"cleanupLot":{"type":"integer","format":"int64"},"cleanupType":{"type":"string"},"fileDigestAlg":{"type":"string"},"fileDigest":{"type":"string"},"localAuthInfoAlg":{"type":"string"},"localAuthInfo":{"type":"string"},"localAuthInfoFs":{"type":"string"}}},"StatusRequestDto":{"type":"object","properties":{"stato":{"type":"string"},"errorMessage":{"type":"string"}}},"FasMsgRecvDto":{"type":"object","properties":{"seqId":{"type":"integer","format":"int64"},"localBa":{"type":"string"},"remoteBa":{"type":"string"},"msgType":{"type":"string"},"catAppl":{"type":"string"},"tur":{"type":"string"},"msgId":{"type":"string"},"remoteRef":{"type":"string"},"priority":{"type":"integer","format":"int32"},"statusCode":{"type":"integer","format":"int32"},"status":{"type":"string"},"easStatus":{"type":"string"},"complete":{"type":"integer","format":"int32"},"applCheck":{"type":"integer","format":"int32"},"createDate":{"type":"string"},"lastUpdate":{"type":"string"},"msgSize":{"type":"integer","format":"int32"},"recvRncTimestamp":{"type":"string","format":"date-time"},"recvRcTimestamp":{"type":"string","format":"date-time"},"statusInfo":{"type":"string"},"cleanupStatus":{"type":"string"},"cleanupLot":{"type":"integer","format":"int64"},"cleanupType":{"type":"string"},"netMsgId":{"type":"string"},"certfReq":{"type":"integer","format":"int32"},"updateMark":{"type":"integer","format":"int32"},"baReqTime":{"type":"string"},"barAcqTime":{"type":"string"},"easSubTime":{"type":"string"},"ferSubTime":{"type":"string"},"fenDelTime":{"type":"string"},"ferDelTime":{"type":"string"},"firstBarSubTime":{"type":"string"},"lastBarSubTime":{"type":"string"},"msgDigestAlg":{"type":"string"},"msgDigest":{"type":"string"},"localAuthInfoAlg":{"type":"string"},"localAuthInfo":{"type":"string"}}},"StatusDto":{"type":"object","properties":{"id":{"type":"string"},"statusCode":{"type":"integer","format":"int32"},"status":{"type":"string"},"easStatus":{"type":"string"},"complete":{"type":"integer","format":"int32"},"applCheck":{"type":"integer","format":"int32"},"statusInfo":{"type":"string"}}},"RecvFileDto":{"type":"object","properties":{"vfn":{"type":"string"},"fname":{"type":"string"},"localBa":{"type":"string"},"remoteBa":{"type":"string"},"status":{"type":"string"},"easStatus":{"type":"string"},"statusCode":{"type":"integer","format":"int32"},"complete":{"type":"integer","format":"int32"},"transpType":{"type":"string"},"createDate":{"type":"string"},"lastUpdate":{"type":"string"},"applCheck":{"type":"integer","format":"int32"},"originalFname":{"type":"string"},"retryCnt":{"type":"integer","format":"int32"},"updateMark":{"type":"integer","format":"int32"},"fsize":{"type":"integer","format":"int64"},"fmd5":{"type":"string"},"fblkmoved":{"type":"integer","format":"int32"},"filemap":{"type":"string"},"refDate":{"type":"string"},"actReqTime":{"type":"string"},"easAcqTime":{"type":"string"},"queueInsTime":{"type":"string"},"startTime":{"type":"string"},"easComplTime":{"type":"string"},"firstDelTime":{"type":"string"},"lastDelTime":{"type":"string"},"firstReadTime":{"type":"string"},"lastReadTime":{"type":"string"},"baProcTime":{"type":"string"},"easElabTime":{"type":"string"},"recvRequestTimestamp":{"type":"string","format":"date-time"},"recvErrorTimestamp":{"type":"string","format":"date-time"},"recvCompleteTimestamp":{"type":"string","format":"date-time"},"recvDeliveredTimestamp":{"type":"string","format":"date-time"},"fasSeqid":{"type":"integer","format":"int64"},"statusInfo":{"type":"string"},"applicativeDataField":{"type":"string"},"cleanupStatus":{"type":"string"},"cleanupLot":{"type":"integer","format":"int64"},"cleanupType":{"type":"string"},"fileDigestAlg":{"type":"string"},"fileDigest":{"type":"string"},"localAuthInfoAlg":{"type":"string"},"localAuthInfo":{"type":"string"},"localAuthInfoFs":{"type":"string"}}}}}}