{"openapi":"3.0.1","info":{"title":"AG800OPENAG@CONTACTINFOMGMT","description":"Package of services to manage CONTACTS","version":"2.0.0"},"security":[{"OAuth":["openapi.ag800openag-contactinfomgmt"]}],"tags":[{"name":"AGManagementService"}],"paths":{"/management/customers/{customerId}/contact-infos/{contactType}/{contactNumber}":{"delete":{"tags":["AGManagementService"],"summary":"Contact Info Delete","description":"Service to delete a contact. It's mandatory customerId , contactType and contactNumber","operationId":"Management_ContactInfoDelete","parameters":[{"name":"customerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactType","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactNumber","in":"path","required":true,"schema":{"type":"string"}},{"name":"X-F-RequestID","in":"header","description":"Request identifier","required":true,"schema":{"type":"string"}},{"name":"X-F-Origin-User-Agent","in":"header","description":"The forwarded Agent header field of the HTTP request between end user and Third party application, if available.","required":false,"schema":{"type":"string"}},{"name":"X-F-IPAddress","in":"header","description":"The forwarded IP Address header field consists of the corresponding http request IP Address field between end-user and Third party application,if available.","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"success response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ContactDeleteOut"},{"$ref":"#/components/schemas/BasicResponseModel"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemErrorModel"}}}},"5XX":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemErrorModel"}}}}}},"patch":{"tags":["AGManagementService"],"summary":"Contact Info Update","description":"Service to edit infos of a contact for a customer","operationId":"Management_ContactInfoUpdate","parameters":[{"name":"X-F-RequestID","in":"header","description":"Request identifier","required":true,"schema":{"type":"string"}},{"name":"X-F-Origin-User-Agent","in":"header","description":"The forwarded Agent header field of the HTTP request between end user and Third party application, if available.","required":false,"schema":{"type":"string"}},{"name":"X-F-IPAddress","in":"header","description":"The forwarded IP Address header field consists of the corresponding http request IP Address field between end-user and Third party application,if available.","required":false,"schema":{"type":"string"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactType","in":"path","required":true,"schema":{"type":"string"}},{"name":"contactNumber","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactInfoUpdateIn"}}}},"responses":{"200":{"description":"success response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ContactInfoUpdateOut"},{"$ref":"#/components/schemas/BasicResponseModel"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemErrorModel"}}}},"5XX":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemErrorModel"}}}}}}},"/management/customers/{customerId}/contact-infos":{"get":{"tags":["AGManagementService"],"summary":"Contact Infos","description":"Service to show the list of contacts given a customer","operationId":"Management_ContactInfos","parameters":[{"name":"X-F-RequestID","in":"header","description":"Request identifier","required":true,"schema":{"type":"string"}},{"name":"X-F-Origin-User-Agent","in":"header","description":"The forwarded Agent header field of the HTTP request between end user and Third party application, if available.","required":false,"schema":{"type":"string"}},{"name":"X-F-IPAddress","in":"header","description":"The forwarded IP Address header field consists of the corresponding http request IP Address field between end-user and Third party application,if available.","required":false,"schema":{"type":"string"}},{"name":"X-F-Initial-RequestID","in":"header","description":"Optional header that must be used only in case of pagination and must contain the X-F-RequestID of the first request.","required":false,"schema":{"type":"string"}},{"name":"page","in":"query","description":"optional parameter used for pagination","required":false,"schema":{"type":"string"}},{"name":"customerId","in":"path","description":"customerId ","required":true,"schema":{"type":"string"}},{"name":"maxItems","in":"query","description":"Maximum items for each response. Default 99","required":false,"schema":{"type":"string"}}],"responses":{"200":{"description":"success response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ContactInfosOut"},{"$ref":"#/components/schemas/BasicResponseModel"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemErrorModel"}}}},"5XX":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemErrorModel"}}}}}},"post":{"tags":["AGManagementService"],"summary":"Contact Info Insert","description":"Service to insert a contact for a customer","operationId":"Management_contactInfoInsert","parameters":[{"name":"X-F-RequestID","in":"header","description":"Request identifier","required":true,"schema":{"type":"string"}},{"name":"X-F-Origin-User-Agent","in":"header","description":"The forwarded Agent header field of the HTTP request between end user and Third party application, if available.","required":false,"schema":{"type":"string"}},{"name":"X-F-IPAddress","in":"header","description":"The forwarded IP Address header field consists of the corresponding http request IP Address field between end-user and Third party application,if available.","required":false,"schema":{"type":"string"}},{"name":"customerId","in":"path","required":true,"schema":{"type":"string"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ContactInfoInsertIn"}}}},"responses":{"200":{"description":"success response","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/ContactInfoInsertOut"},{"$ref":"#/components/schemas/BasicResponseModel"}]}}}},"4XX":{"description":"Client error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemErrorModel"}}}},"5XX":{"description":"Server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SystemErrorModel"}}}}}}}},"components":{"schemas":{"CellularAttributes":{"properties":{"isPull":{"type":"boolean","description":"Flag SMS. It could be : PUSH , PULL , PUSH&PULL","format":"java.lang.Boolean","example":false},"isPush":{"type":"boolean","description":"Flag SMS. It could be : PUSH , PULL , PUSH&PULL","format":"java.lang.Boolean","example":true}},"description":"Specific attributes only for phones"},"CertificationInfo":{"properties":{"date":{"type":"string","description":"Date of certification","format":"java.util.Date","example":"01-01-1990"},"isCertified":{"type":"boolean","description":"Flag to indicate if the contact is certified","format":"java.lang.Boolean","example":true}},"description":"Certification info"},"CertificationInfo2":{"properties":{"certificationExpiring":{"type":"boolean","description":"Flag to indicate if the certification is ACTIVE or EXPIRED","format":"java.lang.Boolean","example":false},"date":{"type":"string","description":"Date of certification","format":"java.util.Date","example":"2021-10-20"},"isCertified":{"type":"boolean","description":"Flag to indicate if the contact is certified","format":"java.lang.Boolean","example":true}}},"Channel":{"properties":{"code":{"type":"string","description":"Channel code : 1-Telephone, 2-Fax, 3-Email, 4-World Wide Web, 5-Appointment inside the bank, 6-Home visit, 7-Cellular, 8-Online meeting","format":"java.lang.String","example":"7"},"description":{"type":"string","description":"Description of channel","format":"java.lang.String","example":"Cellulare"}},"description":"Channel"},"Contact":{"required":["number","type","value"],"properties":{"number":{"type":"string","description":"Progressive number","format":"java.lang.String","example":"3"},"type":{"type":"string","description":"Type of contact : 1-Office, 2-Phone, 3-Society Phone, 4-Home Telephone, 5-Fax, 9-Findperson, 10-Home Fax, 11-Others, 13-Email, 14-Company Email, 15-P.E.C., 17-Website, 18-Company Website, 21-Fax Phone, 23-Company Phone, 25-Phone ContoC ","format":"java.lang.String","example":"2"},"value":{"type":"string","description":"Reference of contact","format":"java.lang.String","example":"331/7744552"}},"description":"Input info about contact"},"Contact2":{"properties":{"number":{"type":"string","description":"Progressive number","format":"java.lang.String","example":"1"},"type":{"$ref":"#/components/schemas/Type"},"value":{"type":"string","description":"Reference of contact","format":"java.lang.String","example":"331/7744552"}},"description":"Contact output"},"Contact3":{"properties":{"value":{"type":"string","description":"Value of contact","format":"java.lang.String","example":"331/4565644"}},"description":"Contact Value"},"ContactDeleteOut":{"required":["contact","customerId"],"properties":{"contact":{"$ref":"#/components/schemas/Contact2"},"customerId":{"type":"string","description":"CustomerId","format":"java.lang.String","example":"88563"}},"description":"Output for contact delete service"},"ContactInfo":{"required":["customerId"],"properties":{"cellularAttributes":{"$ref":"#/components/schemas/CellularAttributes"},"certificationInfo":{"$ref":"#/components/schemas/CertificationInfo2"},"channel":{"$ref":"#/components/schemas/Channel"},"contact":{"$ref":"#/components/schemas/Contact2"},"customerId":{"type":"string","description":"CustomerId","format":"java.lang.String","example":"000449501"},"isChannelMainContact":{"type":"boolean","description":"Flag to indicate if the contact is the main for major comunications. The contact must be the unique for the channel","format":"java.lang.Boolean"},"isCheckedInSecurityHomeBanking":{"type":"string","description":"Flag security alert on service Home Banking","format":"java.lang.String","example":"A"},"mailAttributes":{"$ref":"#/components/schemas/MailAttributes"},"securityTokenUse":{"type":"boolean","description":"Token - Service Secure Call. Is possible to indicate only for phone or mail and it is unique for customerId","format":"java.lang.Boolean","example":false}},"description":"Infos"},"ContactInfoInsertIn":{"properties":{"cellularAttributes":{"$ref":"#/components/schemas/CellularAttributes"},"certificationInfo":{"$ref":"#/components/schemas/CertificationInfo"},"contactIn":{"$ref":"#/components/schemas/Contact"},"isChannelMainContact":{"type":"boolean","description":"Flag to indicate if the contact is the main for major comunications. The contact must be the unique for the channel","format":"java.lang.Boolean","example":false},"mailAttributes":{"$ref":"#/components/schemas/MailAttributes"},"notes":{"type":"string","description":"Notes","format":"java.lang.String","example":"PROVA GIORGIO. CONTATTARE SOLO DALLE 9 ALLE 10"},"securityTokenUse":{"type":"boolean","description":"Token - Service Secure Call. Is possible to indicate only for phone or mail and it is unique for customerId","format":"java.lang.Boolean","example":false}},"description":"Input infos for contact"},"ContactInfoInsertOut":{"required":["contact"],"properties":{"contact":{"$ref":"#/components/schemas/Contact"},"customerId":{"type":"string","description":"Customer Id","format":"java.lang.String","example":"001826556"}},"description":"Output infos for contact"},"ContactInfoUpdateIn":{"properties":{"cellularAttributes":{"$ref":"#/components/schemas/CellularAttributes"},"contact":{"$ref":"#/components/schemas/Contact3"},"isChannelMainContact":{"type":"boolean","description":"Flag to indicate if the contact is the main for major comunications. The contact must be the unique for the channel","format":"java.lang.Boolean","example":false},"mailAttributes":{"$ref":"#/components/schemas/MailAttributes"},"notes":{"type":"string","description":"Notes","format":"java.lang.String","example":"Prova Giorgio"},"securityTokenUse":{"type":"string","description":"Token - Service Secure Call. Is possible to indicate only for phone or mail and it is unique for customerId","format":"java.lang.String"}},"description":"Input info to edit a contact"},"ContactInfoUpdateOut":{"required":["contact","customerId"],"properties":{"contact":{"$ref":"#/components/schemas/Contact2"},"customerId":{"type":"string","description":"CustomerId","format":"java.lang.String","example":"0185655"}},"description":"Output info to edit a contact"},"ContactInfosOut":{"properties":{"contactInfo":{"maxItems":99,"minItems":1,"type":"array","items":{"$ref":"#/components/schemas/ContactInfo"}},"links":{"$ref":"#/components/schemas/Links"}},"description":"Output infos for contacts"},"Link":{"properties":{"href":{"type":"string","description":"Link for pagination","format":"java.lang.String"}},"description":"Link for pagination"},"Links":{"properties":{"next":{"$ref":"#/components/schemas/Link"}},"description":"Business obj for page"},"MailAttributes":{"properties":{"advancedElectronicSignNotifications":{"type":"boolean","description":"Unique mail to recive notifications for advanced electronic sign","format":"java.lang.Boolean","example":true}},"description":"Specific attributes only for mail"},"Type":{"properties":{"code":{"type":"string","description":"Type of contact","format":"java.lang.String","example":"2"},"description":{"type":"string","description":"Description of contact type","format":"java.lang.String","example":"Cellulare"}},"description":"Type of contact"},"MessageModel":{"type":"object","properties":{"id":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"endUserMessage":{"type":"string"},"showWeb":{"type":"boolean"},"fields":{"type":"array","items":{"type":"string"}},"data":{"type":"object","additionalProperties":{"type":"string"}}}},"BasicResponseModel":{"type":"object","properties":{"warnings":{"type":"array","items":{"$ref":"#/components/schemas/MessageModel"}},"infos":{"type":"array","items":{"$ref":"#/components/schemas/MessageModel"}}}},"ApplicationErrorModel":{"description":"Application error","allOf":[{"$ref":"#/components/schemas/BasicResponseModel"},{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/MessageModel"}}}}]},"SystemErrorModel":{"description":"System error","allOf":[{"$ref":"#/components/schemas/BasicResponseModel"},{"type":"object","properties":{"errors":{"type":"array","items":{"$ref":"#/components/schemas/MessageModel"}}}}]}},"securitySchemes":{"OAuth":{"type":"oauth2","description":"OAuth","flows":{"clientCredentials":{"tokenUrl":"https://api.valid.farm.csebo.it/oauth/v2/token","scopes":{"openapi.ag800openag-contactinfomgmt":""},"x-axway":{"typeDisplayName":"OAuth 2.0","scopesMatching":"Any","accessTokenLocation":"HEADER","tokenName":"access_token","authorizationHeaderPrefix":"Bearer"}}}}}},"x-axway":{"serviceType":"rest","basePaths":["https://apima.valid.farm.csebo.it","https://apima.valid.farm.csebo.it","http://apima.valid.farm.csebo.it"],"expired":false,"retirementDate":0,"corsEnabled":true,"deprecated":false,"availableSDK":{"ios-swift":"/discovery/sdk/f3c6697b-b2cf-4ce5-aaf4-7b987e2839e2/ios-swift","android":"/discovery/sdk/f3c6697b-b2cf-4ce5-aaf4-7b987e2839e2/android","nodejs":"/discovery/sdk/f3c6697b-b2cf-4ce5-aaf4-7b987e2839e2/nodejs"},"apiResourceType":"oas30","id":"f3c6697b-b2cf-4ce5-aaf4-7b987e2839e2","state":"published","accessGrantedDate":1733328904320,"tags":{"OPENAPI":["AG800OPENAG","AG800OPENAG-CONTACTINFOMGMT-2.0.0"]}},"servers":[{"url":"https://apima.valid.farm.csebo.it:443/openapi/ag800openag-contactinfomgmt/2/"},{"url":"https://apima.valid.farm.csebo.it:443/openapi/ag800openag-contactinfomgmt/2/"},{"url":"http://apima.valid.farm.csebo.it:80/openapi/ag800openag-contactinfomgmt/2/"}]}