{"openapi":"3.0.0","info":{"version":"v1","title":"Account Management API","description":"This API provides back-office account management functionalities within the JHA Silverlake banking platform.\n"},"servers":[{"description":"SwaggerHub API Auto Mocking","url":"https://virtserver.swaggerhub.com/fortisbank/account-management-api/v1"},{"description":"Fortis Development Environment","url":"https://apim.workato.com/fortispb-dev/account-management/api/v1"},{"description":"Fortis Development Environment","url":"https://dev.api.fortisbankus.com/account-management/api/v1"}],"security":[{"oAuth2_ClientCredentials":[]}],"tags":[{"name":"APIs","description":"A set of APIs manage account information."}],"paths":{"/accounts/{accountId}":{"delete":{"operationId":"deleteAccount","description":"This API deletes/closes an account in JHA Silverlake.","summary":"Closes/Deletes an acccount","parameters":[{"$ref":"#/components/parameters/xCorrelationId"},{"name":"accountId","in":"path","description":"ID of the account to be deleted/closed","required":true,"schema":{"type":"string","example":"1234566"}},{"name":"accountType","in":"query","description":"Account type related to the accountId parameter","required":true,"schema":{"type":"string","example":"D","enum":["D","S","L","O"]}}],"responses":{"204":{"description":"Account Deleted Successfully Response."},"400":{"$ref":"#/components/responses/400"},"401":{"$ref":"#/components/responses/401"},"404":{"$ref":"#/components/responses/404"},"500":{"$ref":"#/components/responses/500"}},"security":[{"oAuth2_ClientCredentials":[]}],"tags":["APIs"]}}},"components":{"securitySchemes":{"oAuth2_ClientCredentials":{"type":"oauth2","description":"OAuth 2 [Client Credentials Flow](https://docs.workato.com/api-mgmt/oauth2.html#how-to-setup-oauth-2-0)","flows":{"clientCredentials":{"tokenUrl":"https://apim.workato.com//oauth2/token","scopes":{}}}}},"responses":{"400":{"description":"Bad Request","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"errorDetails":{"allOf":[{"$ref":"#/components/schemas/ErrorDetails"},{"type":"object","properties":{"code":{"example":400},"reason":{"example":"BAD_REQUEST"},"details":{"example":"Please verify input parameters."}}}]}}}]}}}},"401":{"description":"Unauthorized.\n\n  :::info 401 errors\n  There are two different error schemas for 401 errors, one when the API credentials sent are wrong or invalid and another one when the API credentials are valid but the operation is prohibited for the consumer.\n  :::\n  \n","content":{"application/json":{"schema":{"oneOf":[{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"errorDetails":{"allOf":[{"$ref":"#/components/schemas/ErrorDetails"},{"type":"object","properties":{"code":{"example":401},"reason":{"example":"UNAUTHORIZED"},"details":{"example":"Permission denied."}}}]}}}]},{"type":"object","properties":{"error":{"type":"string","example":"Access to this API has been disallowed"}}}]}}}},"404":{"description":"Not Found","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"errorDetails":{"allOf":[{"$ref":"#/components/schemas/ErrorDetails"},{"type":"object","properties":{"code":{"example":404},"reason":{"example":"NOT_FOUND"},"details":{"example":"Account with ID 1234 was not found."}}}]}}}]}}}},"500":{"description":"API Internal Error.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"errorDetails":{"allOf":[{"$ref":"#/components/schemas/ErrorDetails"},{"type":"object","properties":{"code":{"example":500},"reason":{"example":"INTERNAL_SERVER_ERROR"},"details":{"example":"Internal API Error, please contact support."}}}]}}}]}}}},"503":{"description":"API Unavailable.","content":{"application/json":{"schema":{"allOf":[{"$ref":"#/components/schemas/Error"},{"type":"object","properties":{"errorDetails":{"allOf":[{"$ref":"#/components/schemas/ErrorDetails"},{"type":"object","properties":{"code":{"example":503},"reason":{"example":"SERVICE_UNAVAILABLE"},"details":{"example":"API is not available during bank core nightly updates, please try again later."}}}]}}}]}}}}},"parameters":{"xCorrelationId":{"name":"x-correlation-id","in":"header","required":true,"description":"A UUID value compliant with RFC 4122 used to identify an API Request. The value is echoed back in the response header. See [Authentication](/api/authentication/#correlation-id) for more details.","schema":{"type":"string","minLength":36,"maxLength":36}},"xTimestamp":{"name":"x-timestamp","in":"header","required":true,"description":"The timestamp used to support the message signature. Should contain only numbers.\n\n  :::warning  Rejected Timestamps\n  Requests with timestamp > 5min will be rejected\n  :::\n","schema":{"type":"string","example":"1746197323"}},"xSignature":{"name":"x-signature","in":"header","required":true,"description":"Payload signature used by the API Client to validate message authenticity. Signature is calculated via **HMAC SHA256** algorithm and is composed by: \n\n    -`HTTP_VERB + HTTP_URL + PAYLOAD + TIMESTAMP`.\n    \nThe key will be provided to API Consumer\n","schema":{"type":"string","minLength":64,"maxLength":64}},"limit":{"name":"limit","in":"query","required":false,"description":"The maximum number of records to return in each response.","example":10,"schema":{"type":"integer","minimum":1,"maximum":200,"default":100}},"offset":{"name":"offset","in":"query","required":false,"description":"Allows the call to understand where the previous call left off when returning multiple records and allowing a subsequent call to retrieve more records.","example":"ZkiT8ovgDb5NbZ7XvkwTYwwm1vgUDn1vEswIQT4ThOBY4qv5Xnp1oKS1e05Gas4AAfP8bH_w-Tl8VMAggvqkLlTjnnJ3PRl-79BDsg","schema":{"type":"string","example":"ZkiT8ovgDb5NbZ7XvkwTYwwm1vgUDn1vEswIQT4ThOBY4qv5Xnp1oKS1e05Gas4AAfP8bH_w-Tl8VMAggvqkLlTjnnJ3PRl-79BDsg"}}},"schemas":{"paginationResponse":{"type":"object","properties":{"moreResults":{"description":"Indicates if there is more content that could be returned from a subsequent call.","type":"boolean"},"offset":{"description":"Allows the next call to understand where it left off when returning multiple records and allowing a subsequent call to retrieve more records.","type":"string","example":"ZkiT8ovgDb5NbZ7XvkwTYwwm1vgUDn1vEswIQT4ThOBY4qv5Xnp1oKS1e05Gas4AAfP8bH_w-Tl8VMAggvqkLlTjnnJ3PRl-79BDsg"}}},"Error":{"required":["apiName","version","correlationId","timestamp","errorDetails"],"properties":{"apiName":{"type":"string","example":"Account Management API"},"version":{"type":"string","example":"v1"},"correlationId":{"type":"string","example":"679751e0-36ba-49a1-b992-599c75beec66"},"timestamp":{"type":"string","example":"2025-06-05T10:12:43.642286-07:00"},"errorDetails":{"type":"object","properties":{"code":{"type":"string","description":"HTTP standard error code."},"reason":{"type":"string","description":"Integration error identification code."},"details":{"type":"string","description":"Error description."}}}}},"ErrorDetails":{"type":"object","properties":{"code":{"type":"string","description":"HTTP standard error code."},"reason":{"type":"string","description":"Integration error identification code."},"details":{"type":"string","description":"Error description."}}}}}}