{
  "swagger": "2.0",
  "info": {
    "title": "Account API",
    "version": "1.0",
    "description": "This OAS2 (Swagger 2) API aims to handle all accounts owned by a person (either legal or physical):\n- Account balance\n- Account transaction",
    "license": {
      "name": "Arkéa"
    },
    "contact": {
      "name": "Arkéa Pi Team",
      "email": "openbanking@arkea.com"
    }
  },
  "schemes": [
    "https"
  ],
  "consumes": [
    "application/json"
  ],
  "produces": [
    "application/json"
  ],
  "securityDefinitions": {
    "OAuthToken": {
      "type": "apiKey",
      "name": "Authorization",
      "in": "header"
    }
  },
  "paths": {
    "/accounts/{accountId}": {
      "parameters": [
        {
          "$ref": "#/parameters/Authorization"
        },
        {
          "$ref": "#/parameters/Authentication"
        },
        {
          "$ref": "#/parameters/apikey"
        },
        {
          "in": "path",
          "name": "accountId",
          "type": "string",
          "required": true
        }
      ],
      "get": {
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "type": "object",
              "description": "Description of a shorten account",
              "title": "Account shorten",
              "properties": {
                "id": {
                  "type": "string"
                },
                "label": {
                  "oneOf": [
                    {
                      "description": "Original label"
                    }
                  ],
                  "title": "Label",
                  "description": "Description of a label",
                  "type": "string"
                },
                "productId": {
                  "type": "string",
                  "enum": [
                    "business-account"
                  ]
                },
                "iban": {
                  "type": "string"
                },
                "participants": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "description": "Description of an account participant",
                    "title": "Account participant",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "person": {
                        "$ref": "#/definitions/physicalPersonAsShort"
                      },
                      "role": {
                        "type": "string",
                        "title": "Account role (Enum)",
                        "description": "Description of all potential roles for an account",
                        "enum": [
                          "holder",
                          "co-holder",
                          "representative"
                        ]
                      }
                    },
                    "required": [
                      "id"
                    ]
                  }
                },
                "createdAt": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2018-07-13T16:03:43.979"
                },
                "createdById": {
                  "type": "string"
                },
                "updatedAt": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2018-07-13T16:03:43.979"
                },
                "updatedById": {
                  "type": "string"
                }
              }
            }
          },
          "400": {
            "description": "",
            "schema": {
              "type": "object",
              "title": "APIError",
              "description": "Standard APIError structure defined for 400 responses",
              "properties": {
                "errordate": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2018-07-13T16:03:43.979",
                  "description": "Error creation date"
                },
                "fishtag": {
                  "type": "string",
                  "example": "RandomTextIdentifier564",
                  "description": "Transaction uniq identifier"
                },
                "httpcode": {
                  "type": "integer",
                  "format": "int32",
                  "example": 500,
                  "description": "HTTP status code"
                },
                "messages": {
                  "type": "array",
                  "description": "Messages returned by API call",
                  "items": {
                    "type": "object",
                    "title": "APIMessage",
                    "description": "Standard APIMessage structure defined for all responses excepted the 2XX code response",
                    "properties": {
                      "code": {
                        "type": "string",
                        "example": "EX_FUNC_CODE_452",
                        "description": "Message functional code"
                      },
                      "level": {
                        "type": "string",
                        "example": "ERROR",
                        "description": "Message criticity level",
                        "enum": [
                          "INFO",
                          "WARNING",
                          "ERROR"
                        ]
                      },
                      "message": {
                        "type": "string",
                        "example": "An example error message",
                        "description": "Message text"
                      }
                    },
                    "required": [
                      "level",
                      "message"
                    ]
                  }
                },
                "url": {
                  "type": "string",
                  "example": "/called/url/25",
                  "description": "Called url"
                }
              },
              "required": [
                "httpcode",
                "url"
              ]
            }
          },
          "401": {
            "description": "Standard 401 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "401",
                "error": "Unauthorized"
              }
            }
          },
          "403": {
            "description": "Standard 403 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "403",
                "error": "Forbidden"
              }
            }
          },
          "404": {
            "description": "Standard 404 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "404",
                "error": "Not Found"
              }
            }
          },
          "429": {
            "description": "Standard 429 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "429",
                "error": "Too Many Requests"
              }
            }
          },
          "500": {
            "description": "",
            "schema": {
              "type": "object",
              "title": "APIError",
              "description": "Standard APIError structure defined for 400 responses",
              "properties": {
                "errordate": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2018-07-13T16:03:43.979",
                  "description": "Error creation date"
                },
                "fishtag": {
                  "type": "string",
                  "example": "RandomTextIdentifier564",
                  "description": "Transaction uniq identifier"
                },
                "httpcode": {
                  "type": "integer",
                  "format": "int32",
                  "example": 500,
                  "description": "HTTP status code"
                },
                "messages": {
                  "type": "array",
                  "description": "Messages returned by API call",
                  "items": {
                    "type": "object",
                    "title": "APIMessage",
                    "description": "Standard APIMessage structure defined for all responses excepted the 2XX code response",
                    "properties": {
                      "code": {
                        "type": "string",
                        "example": "EX_FUNC_CODE_452",
                        "description": "Message functional code"
                      },
                      "level": {
                        "type": "string",
                        "example": "ERROR",
                        "description": "Message criticity level",
                        "enum": [
                          "INFO",
                          "WARNING",
                          "ERROR"
                        ]
                      },
                      "message": {
                        "type": "string",
                        "example": "An example error message",
                        "description": "Message text"
                      }
                    },
                    "required": [
                      "level",
                      "message"
                    ]
                  }
                },
                "url": {
                  "type": "string",
                  "example": "/called/url/25",
                  "description": "Called url"
                }
              },
              "required": [
                "httpcode",
                "url"
              ]
            }
          }
        },
        "summary": "Gets designated account",
        "description": "Gets information on designated by id account"
      }
    },
    "/accounts/{accountId}/balance": {
      "parameters": [
        {
          "$ref": "#/parameters/Authorization"
        },
        {
          "$ref": "#/parameters/Authentication"
        },
        {
          "$ref": "#/parameters/apikey"
        },
        {
          "name": "accountId",
          "in": "path",
          "type": "string",
          "required": true
        }
      ],
      "get": {
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "type": "array",
              "items": {
                "type": "object",
                "title": "Balance of an account",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "label": {
                    "oneOf": [
                      {
                        "description": "Original label"
                      }
                    ],
                    "title": "Label",
                    "description": "Description of a label",
                    "type": "string"
                  },
                  "amount": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "currency": {
                          "type": "string"
                        },
                        "value": {
                          "type": "string"
                        },
                        "date": {
                          "type": "string"
                        }
                      },
                      "required": [
                        "currency"
                      ],
                      "description": "Description of an amount",
                      "title": "Amount"
                    }
                  },
                  "lastTransaction": {
                    "type": "string"
                  },
                  "createdAt": {
                    "type": "string",
                    "format": "date-time",
                    "example": "2018-07-13T16:03:43.979"
                  },
                  "createdById": {
                    "type": "string"
                  },
                  "updatedAt": {
                    "type": "string",
                    "format": "date-time",
                    "example": "2018-07-13T16:03:43.979"
                  },
                  "updatedById": {
                    "type": "string"
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          },
          "400": {
            "description": "",
            "schema": {
              "type": "object",
              "title": "APIError",
              "description": "Standard APIError structure defined for 400 responses",
              "properties": {
                "errordate": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2018-07-13T16:03:43.979",
                  "description": "Error creation date"
                },
                "fishtag": {
                  "type": "string",
                  "example": "RandomTextIdentifier564",
                  "description": "Transaction uniq identifier"
                },
                "httpcode": {
                  "type": "integer",
                  "format": "int32",
                  "example": 500,
                  "description": "HTTP status code"
                },
                "messages": {
                  "type": "array",
                  "description": "Messages returned by API call",
                  "items": {
                    "type": "object",
                    "title": "APIMessage",
                    "description": "Standard APIMessage structure defined for all responses excepted the 2XX code response",
                    "properties": {
                      "code": {
                        "type": "string",
                        "example": "EX_FUNC_CODE_452",
                        "description": "Message functional code"
                      },
                      "level": {
                        "type": "string",
                        "example": "ERROR",
                        "description": "Message criticity level",
                        "enum": [
                          "INFO",
                          "WARNING",
                          "ERROR"
                        ]
                      },
                      "message": {
                        "type": "string",
                        "example": "An example error message",
                        "description": "Message text"
                      }
                    },
                    "required": [
                      "level",
                      "message"
                    ]
                  }
                },
                "url": {
                  "type": "string",
                  "example": "/called/url/25",
                  "description": "Called url"
                }
              },
              "required": [
                "httpcode",
                "url"
              ]
            }
          },
          "401": {
            "description": "Standard 401 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "401",
                "error": "Unauthorized"
              }
            }
          },
          "403": {
            "description": "Standard 403 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "403",
                "error": "Forbidden"
              }
            }
          },
          "404": {
            "description": "Standard 404 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "404",
                "error": "Not Found"
              }
            }
          },
          "429": {
            "description": "Standard 429 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "429",
                "error": "Too Many Requests"
              }
            }
          },
          "500": {
            "description": "",
            "schema": {
              "type": "object",
              "title": "APIError",
              "description": "Standard APIError structure defined for 400 responses",
              "properties": {
                "errordate": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2018-07-13T16:03:43.979",
                  "description": "Error creation date"
                },
                "fishtag": {
                  "type": "string",
                  "example": "RandomTextIdentifier564",
                  "description": "Transaction uniq identifier"
                },
                "httpcode": {
                  "type": "integer",
                  "format": "int32",
                  "example": 500,
                  "description": "HTTP status code"
                },
                "messages": {
                  "type": "array",
                  "description": "Messages returned by API call",
                  "items": {
                    "type": "object",
                    "title": "APIMessage",
                    "description": "Standard APIMessage structure defined for all responses excepted the 2XX code response",
                    "properties": {
                      "code": {
                        "type": "string",
                        "example": "EX_FUNC_CODE_452",
                        "description": "Message functional code"
                      },
                      "level": {
                        "type": "string",
                        "example": "ERROR",
                        "description": "Message criticity level",
                        "enum": [
                          "INFO",
                          "WARNING",
                          "ERROR"
                        ]
                      },
                      "message": {
                        "type": "string",
                        "example": "An example error message",
                        "description": "Message text"
                      }
                    },
                    "required": [
                      "level",
                      "message"
                    ]
                  }
                },
                "url": {
                  "type": "string",
                  "example": "/called/url/25",
                  "description": "Called url"
                }
              },
              "required": [
                "httpcode",
                "url"
              ]
            }
          }
        },
        "description": "Returns the balance for designated by id account",
        "summary": "Gets designated account's balance"
      }
    },
    "/accounts/{accountId}/preferences": {
      "parameters": [
        {
          "$ref": "#/parameters/Authorization"
        },
        {
          "$ref": "#/parameters/Authentication"
        },
        {
          "$ref": "#/parameters/apikey"
        },
        {
          "in": "path",
          "name": "accountId",
          "type": "string",
          "required": true
        }
      ],
      "get": {
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "type": "object",
              "description": "Description of account preferences",
              "title": "Account preferences",
              "properties": {
                "ribPrintable": {
                  "type": "boolean"
                },
                "chargeable": {
                  "type": "boolean"
                },
                "checkDeliveryTrackable": {
                  "type": "boolean"
                }
              },
              "required": [
                "id"
              ]
            }
          },
          "400": {
            "description": "",
            "schema": {
              "type": "object",
              "title": "APIError",
              "description": "Standard APIError structure defined for 400 responses",
              "properties": {
                "errordate": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2018-07-13T16:03:43.979",
                  "description": "Error creation date"
                },
                "fishtag": {
                  "type": "string",
                  "example": "RandomTextIdentifier564",
                  "description": "Transaction uniq identifier"
                },
                "httpcode": {
                  "type": "integer",
                  "format": "int32",
                  "example": 500,
                  "description": "HTTP status code"
                },
                "messages": {
                  "type": "array",
                  "description": "Messages returned by API call",
                  "items": {
                    "type": "object",
                    "title": "APIMessage",
                    "description": "Standard APIMessage structure defined for all responses excepted the 2XX code response",
                    "properties": {
                      "code": {
                        "type": "string",
                        "example": "EX_FUNC_CODE_452",
                        "description": "Message functional code"
                      },
                      "level": {
                        "type": "string",
                        "example": "ERROR",
                        "description": "Message criticity level",
                        "enum": [
                          "INFO",
                          "WARNING",
                          "ERROR"
                        ]
                      },
                      "message": {
                        "type": "string",
                        "example": "An example error message",
                        "description": "Message text"
                      }
                    },
                    "required": [
                      "level",
                      "message"
                    ]
                  }
                },
                "url": {
                  "type": "string",
                  "example": "/called/url/25",
                  "description": "Called url"
                }
              },
              "required": [
                "httpcode",
                "url"
              ]
            }
          },
          "401": {
            "description": "Standard 401 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "401",
                "error": "Unauthorized"
              }
            }
          },
          "403": {
            "description": "Standard 403 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "403",
                "error": "Forbidden"
              }
            }
          },
          "404": {
            "description": "Standard 404 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "404",
                "error": "Not Found"
              }
            }
          },
          "429": {
            "description": "Standard 429 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "429",
                "error": "Too Many Requests"
              }
            }
          },
          "500": {
            "description": "",
            "schema": {
              "type": "object",
              "title": "APIError",
              "description": "Standard APIError structure defined for 400 responses",
              "properties": {
                "errordate": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2018-07-13T16:03:43.979",
                  "description": "Error creation date"
                },
                "fishtag": {
                  "type": "string",
                  "example": "RandomTextIdentifier564",
                  "description": "Transaction uniq identifier"
                },
                "httpcode": {
                  "type": "integer",
                  "format": "int32",
                  "example": 500,
                  "description": "HTTP status code"
                },
                "messages": {
                  "type": "array",
                  "description": "Messages returned by API call",
                  "items": {
                    "type": "object",
                    "title": "APIMessage",
                    "description": "Standard APIMessage structure defined for all responses excepted the 2XX code response",
                    "properties": {
                      "code": {
                        "type": "string",
                        "example": "EX_FUNC_CODE_452",
                        "description": "Message functional code"
                      },
                      "level": {
                        "type": "string",
                        "example": "ERROR",
                        "description": "Message criticity level",
                        "enum": [
                          "INFO",
                          "WARNING",
                          "ERROR"
                        ]
                      },
                      "message": {
                        "type": "string",
                        "example": "An example error message",
                        "description": "Message text"
                      }
                    },
                    "required": [
                      "level",
                      "message"
                    ]
                  }
                },
                "url": {
                  "type": "string",
                  "example": "/called/url/25",
                  "description": "Called url"
                }
              },
              "required": [
                "httpcode",
                "url"
              ]
            }
          }
        },
        "description": "Returns all preferences for required account",
        "summary": "Gets designated account's preferences"
      }
    },
    "/accounts/{accountId}/participants": {
      "parameters": [
        {
          "$ref": "#/parameters/Authorization"
        },
        {
          "$ref": "#/parameters/Authentication"
        },
        {
          "$ref": "#/parameters/apikey"
        },
        {
          "in": "path",
          "name": "accountId",
          "type": "string",
          "required": true
        }
      ],
      "get": {
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "type": "array",
              "items": {
                "type": "object",
                "description": "Description of an account participant",
                "title": "Account participant",
                "properties": {
                  "id": {
                    "type": "string"
                  },
                  "person": {
                    "title": "Physical person shorten",
                    "description": "Shorten description for a physical person",
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "type": {
                        "type": "string",
                        "description": "Indicates if person is natural or not ",
                        "enum": [
                          "natural"
                        ]
                      },
                      "title": {
                        "type": "string",
                        "title": "Person Title (Enum)",
                        "description": "All potential titles for a person",
                        "enum": [
                          "MISTER",
                          "MISTRESS",
                          "MISS"
                        ]
                      },
                      "surname": {
                        "type": "string"
                      },
                      "firstName": {
                        "type": "string"
                      },
                      "birthDate": {
                        "type": "string",
                        "format": "date-time",
                        "example": "2018-07-13T16:03:43.979"
                      }
                    },
                    "required": [
                      "surname",
                      "firstName"
                    ]
                  },
                  "role": {
                    "type": "string",
                    "title": "Account role (Enum)",
                    "description": "Description of all potential roles for an account",
                    "enum": [
                      "holder",
                      "co-holder",
                      "representative"
                    ]
                  }
                },
                "required": [
                  "id"
                ]
              }
            }
          },
          "400": {
            "description": "",
            "schema": {
              "type": "object",
              "title": "APIError",
              "description": "Standard APIError structure defined for 400 responses",
              "properties": {
                "errordate": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2018-07-13T16:03:43.979",
                  "description": "Error creation date"
                },
                "fishtag": {
                  "type": "string",
                  "example": "RandomTextIdentifier564",
                  "description": "Transaction uniq identifier"
                },
                "httpcode": {
                  "type": "integer",
                  "format": "int32",
                  "example": 500,
                  "description": "HTTP status code"
                },
                "messages": {
                  "type": "array",
                  "description": "Messages returned by API call",
                  "items": {
                    "type": "object",
                    "title": "APIMessage",
                    "description": "Standard APIMessage structure defined for all responses excepted the 2XX code response",
                    "properties": {
                      "code": {
                        "type": "string",
                        "example": "EX_FUNC_CODE_452",
                        "description": "Message functional code"
                      },
                      "level": {
                        "type": "string",
                        "example": "ERROR",
                        "description": "Message criticity level",
                        "enum": [
                          "INFO",
                          "WARNING",
                          "ERROR"
                        ]
                      },
                      "message": {
                        "type": "string",
                        "example": "An example error message",
                        "description": "Message text"
                      }
                    },
                    "required": [
                      "level",
                      "message"
                    ]
                  }
                },
                "url": {
                  "type": "string",
                  "example": "/called/url/25",
                  "description": "Called url"
                }
              },
              "required": [
                "httpcode",
                "url"
              ]
            }
          },
          "401": {
            "description": "Standard 401 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "401",
                "error": "Unauthorized"
              }
            }
          },
          "403": {
            "description": "Standard 403 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "403",
                "error": "Forbidden"
              }
            }
          },
          "404": {
            "description": "Standard 404 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "404",
                "error": "Not Found"
              }
            }
          },
          "429": {
            "description": "Standard 429 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "429",
                "error": "Too Many Requests"
              }
            }
          },
          "500": {
            "description": "",
            "schema": {
              "type": "object",
              "title": "APIError",
              "description": "Standard APIError structure defined for 400 responses",
              "properties": {
                "errordate": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2018-07-13T16:03:43.979",
                  "description": "Error creation date"
                },
                "fishtag": {
                  "type": "string",
                  "example": "RandomTextIdentifier564",
                  "description": "Transaction uniq identifier"
                },
                "httpcode": {
                  "type": "integer",
                  "format": "int32",
                  "example": 500,
                  "description": "HTTP status code"
                },
                "messages": {
                  "type": "array",
                  "description": "Messages returned by API call",
                  "items": {
                    "type": "object",
                    "title": "APIMessage",
                    "description": "Standard APIMessage structure defined for all responses excepted the 2XX code response",
                    "properties": {
                      "code": {
                        "type": "string",
                        "example": "EX_FUNC_CODE_452",
                        "description": "Message functional code"
                      },
                      "level": {
                        "type": "string",
                        "example": "ERROR",
                        "description": "Message criticity level",
                        "enum": [
                          "INFO",
                          "WARNING",
                          "ERROR"
                        ]
                      },
                      "message": {
                        "type": "string",
                        "example": "An example error message",
                        "description": "Message text"
                      }
                    },
                    "required": [
                      "level",
                      "message"
                    ]
                  }
                },
                "url": {
                  "type": "string",
                  "example": "/called/url/25",
                  "description": "Called url"
                }
              },
              "required": [
                "httpcode",
                "url"
              ]
            }
          }
        },
        "description": "Get all participants related to designed by id account. Participants are persons authorized to act on account.\nAllowed roles are the following ones:\n- holder: holder of the account\n- co-holder: co-holder of the account\n- representative: major physical person acting as guardian (case of a physical minor person) or physical person in charge (case of a legal person)\n- fiscal-agent: major physical person or legal person allowed contractually to act on account",
        "summary": "Gets designated account's participants"
      }
    },
    "/accounts/{accountId}/transactions": {
      "parameters": [
        {
          "$ref": "#/parameters/Authorization"
        },
        {
          "$ref": "#/parameters/Authentication"
        },
        {
          "$ref": "#/parameters/apikey"
        },
        {
          "name": "accountId",
          "in": "path",
          "type": "string",
          "required": true
        }
      ],
      "get": {
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "type": "array",
              "items": {
                "type": "object",
                "title": "Transaction",
                "description": "Description of a transaction",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique id of the transaction"
                  },
                  "label": {
                    "oneOf": [
                      {
                        "description": "Original label"
                      }
                    ],
                    "title": "Label",
                    "description": "Description of a label",
                    "type": "string"
                  },
                  "amount": {
                    "type": "number",
                    "description": "amount of the transaction in currency transaction"
                  },
                  "currency": {
                    "type": "string",
                    "description": "Currency of the transaction",
                    "example": "EUR, USD, ..."
                  },
                  "bookedDate": {
                    "type": "string",
                    "format": "date",
                    "description": "Closed book date of the transaction. ",
                    "example": "2016-05-21T12:00:00.000Z"
                  },
                  "transactionDate": {
                    "type": "string",
                    "description": "Transaction date of the transaction",
                    "format": "date",
                    "example": "2016-05-21T12:00:00.000Z"
                  },
                  "valueDate": {
                    "type": "string",
                    "description": "Value date of the transaction",
                    "format": "date",
                    "example": "2016-05-21T12:00:00.000Z"
                  },
                  "type": {
                    "title": "Transaction Type (Enum)",
                    "description": "Operation type that initiated the transaction",
                    "example": "105 ==> VIREMENT DESTINATAIRE (Transfert)",
                    "type": "string"
                  },
                  "status": {
                    "type": "string",
                    "title": "Transaction Status (Enum)",
                    "description": "Status of the transaction",
                    "enum": [
                      "booked",
                      "realTime",
                      "inProgress"
                    ]
                  },
                  "balanceBeforeBooked": {
                    "type": "object",
                    "title": "Balance of an account",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "label": {
                        "oneOf": [
                          {
                            "description": "Original label"
                          }
                        ],
                        "title": "Label",
                        "description": "Description of a label",
                        "type": "string"
                      },
                      "amount": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string"
                            },
                            "value": {
                              "type": "string"
                            },
                            "date": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "description": "Description of an amount",
                          "title": "Amount"
                        }
                      },
                      "lastTransaction": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time",
                        "example": "2018-07-13T16:03:43.979"
                      },
                      "createdById": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time",
                        "example": "2018-07-13T16:03:43.979"
                      },
                      "updatedById": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id"
                    ]
                  },
                  "contraAccountId": {
                    "type": "string",
                    "description": "Other account impacted by the transaction (when known). Most of the time, it is a technical id.",
                    "example": "010112345672400000"
                  }
                }
              }
            }
          },
          "400": {
            "description": "",
            "schema": {
              "type": "object",
              "title": "APIError",
              "description": "Standard APIError structure defined for 400 responses",
              "properties": {
                "errordate": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2018-07-13T16:03:43.979",
                  "description": "Error creation date"
                },
                "fishtag": {
                  "type": "string",
                  "example": "RandomTextIdentifier564",
                  "description": "Transaction uniq identifier"
                },
                "httpcode": {
                  "type": "integer",
                  "format": "int32",
                  "example": 500,
                  "description": "HTTP status code"
                },
                "messages": {
                  "type": "array",
                  "description": "Messages returned by API call",
                  "items": {
                    "type": "object",
                    "title": "APIMessage",
                    "description": "Standard APIMessage structure defined for all responses excepted the 2XX code response",
                    "properties": {
                      "code": {
                        "type": "string",
                        "example": "EX_FUNC_CODE_452",
                        "description": "Message functional code"
                      },
                      "level": {
                        "type": "string",
                        "example": "ERROR",
                        "description": "Message criticity level",
                        "enum": [
                          "INFO",
                          "WARNING",
                          "ERROR"
                        ]
                      },
                      "message": {
                        "type": "string",
                        "example": "An example error message",
                        "description": "Message text"
                      }
                    },
                    "required": [
                      "level",
                      "message"
                    ]
                  }
                },
                "url": {
                  "type": "string",
                  "example": "/called/url/25",
                  "description": "Called url"
                }
              },
              "required": [
                "httpcode",
                "url"
              ]
            }
          },
          "401": {
            "description": "Standard 401 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "401",
                "error": "Unauthorized"
              }
            }
          },
          "403": {
            "description": "Standard 403 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "403",
                "error": "Forbidden"
              }
            }
          },
          "404": {
            "description": "Standard 404 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "404",
                "error": "Not Found"
              }
            }
          },
          "429": {
            "description": "Standard 429 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "429",
                "error": "Too Many Requests"
              }
            }
          },
          "500": {
            "description": "",
            "schema": {
              "type": "object",
              "title": "APIError",
              "description": "Standard APIError structure defined for 400 responses",
              "properties": {
                "errordate": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2018-07-13T16:03:43.979",
                  "description": "Error creation date"
                },
                "fishtag": {
                  "type": "string",
                  "example": "RandomTextIdentifier564",
                  "description": "Transaction uniq identifier"
                },
                "httpcode": {
                  "type": "integer",
                  "format": "int32",
                  "example": 500,
                  "description": "HTTP status code"
                },
                "messages": {
                  "type": "array",
                  "description": "Messages returned by API call",
                  "items": {
                    "type": "object",
                    "title": "APIMessage",
                    "description": "Standard APIMessage structure defined for all responses excepted the 2XX code response",
                    "properties": {
                      "code": {
                        "type": "string",
                        "example": "EX_FUNC_CODE_452",
                        "description": "Message functional code"
                      },
                      "level": {
                        "type": "string",
                        "example": "ERROR",
                        "description": "Message criticity level",
                        "enum": [
                          "INFO",
                          "WARNING",
                          "ERROR"
                        ]
                      },
                      "message": {
                        "type": "string",
                        "example": "An example error message",
                        "description": "Message text"
                      }
                    },
                    "required": [
                      "level",
                      "message"
                    ]
                  }
                },
                "url": {
                  "type": "string",
                  "example": "/called/url/25",
                  "description": "Called url"
                }
              },
              "required": [
                "httpcode",
                "url"
              ]
            }
          }
        },
        "description": "Returns all transactions related to designated by id account.",
        "summary": "Gets designated account's transactions"
      },
      "post": {
        "responses": {
          "201": {
            "description": "",
            "schema": {
              "type": "object",
              "items": {
                "type": "object",
                "title": "Transaction",
                "description": "Description of a transaction",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique id of the transaction"
                  },
                  "label": {
                    "oneOf": [
                      {
                        "description": "Original label"
                      }
                    ],
                    "title": "Label",
                    "description": "Description of a label",
                    "type": "string"
                  },
                  "amount": {
                    "type": "number",
                    "description": "amount of the transaction in currency transaction"
                  },
                  "currency": {
                    "type": "string",
                    "description": "Currency of the transaction",
                    "example": "EUR, USD, ..."
                  },
                  "bookedDate": {
                    "type": "string",
                    "format": "date",
                    "description": "Closed book date of the transaction. ",
                    "example": "2016-05-21T12:00:00.000Z"
                  },
                  "transactionDate": {
                    "type": "string",
                    "description": "Transaction date of the transaction",
                    "format": "date",
                    "example": "2016-05-21T12:00:00.000Z"
                  },
                  "valueDate": {
                    "type": "string",
                    "description": "Value date of the transaction",
                    "format": "date",
                    "example": "2016-05-21T12:00:00.000Z"
                  },
                  "type": {
                    "title": "Transaction Type (Enum)",
                    "description": "Operation type that initiated the transaction",
                    "example": "105 ==> VIREMENT DESTINATAIRE (Transfert)",
                    "type": "string"
                  },
                  "status": {
                    "type": "string",
                    "title": "Transaction Status (Enum)",
                    "description": "Status of the transaction",
                    "enum": [
                      "booked",
                      "realTime",
                      "inProgress"
                    ]
                  },
                  "balanceBeforeBooked": {
                    "type": "object",
                    "title": "Balance of an account",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "label": {
                        "oneOf": [
                          {
                            "description": "Original label"
                          }
                        ],
                        "title": "Label",
                        "description": "Description of a label",
                        "type": "string"
                      },
                      "amount": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string"
                            },
                            "value": {
                              "type": "string"
                            },
                            "date": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "description": "Description of an amount",
                          "title": "Amount"
                        }
                      },
                      "lastTransaction": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time",
                        "example": "2018-07-13T16:03:43.979"
                      },
                      "createdById": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time",
                        "example": "2018-07-13T16:03:43.979"
                      },
                      "updatedById": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id"
                    ]
                  },
                  "contraAccountId": {
                    "type": "string",
                    "description": "Other account impacted by the transaction (when known). Most of the time, it is a technical id.",
                    "example": "010112345672400000"
                  }
                }
              }
            }
          },
          "400": {
            "description": "",
            "schema": {
              "type": "object",
              "title": "APIError",
              "description": "Standard APIError structure defined for 400 responses",
              "properties": {
                "errordate": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2018-07-13T16:03:43.979",
                  "description": "Error creation date"
                },
                "fishtag": {
                  "type": "string",
                  "example": "RandomTextIdentifier564",
                  "description": "Transaction uniq identifier"
                },
                "httpcode": {
                  "type": "integer",
                  "format": "int32",
                  "example": 500,
                  "description": "HTTP status code"
                },
                "messages": {
                  "type": "array",
                  "description": "Messages returned by API call",
                  "items": {
                    "type": "object",
                    "title": "APIMessage",
                    "description": "Standard APIMessage structure defined for all responses excepted the 2XX code response",
                    "properties": {
                      "code": {
                        "type": "string",
                        "example": "EX_FUNC_CODE_452",
                        "description": "Message functional code"
                      },
                      "level": {
                        "type": "string",
                        "example": "ERROR",
                        "description": "Message criticity level",
                        "enum": [
                          "INFO",
                          "WARNING",
                          "ERROR"
                        ]
                      },
                      "message": {
                        "type": "string",
                        "example": "An example error message",
                        "description": "Message text"
                      }
                    },
                    "required": [
                      "level",
                      "message"
                    ]
                  }
                },
                "url": {
                  "type": "string",
                  "example": "/called/url/25",
                  "description": "Called url"
                }
              },
              "required": [
                "httpcode",
                "url"
              ]
            }
          },
          "401": {
            "description": "Standard 401 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "401",
                "error": "Unauthorized"
              }
            }
          },
          "403": {
            "description": "Standard 403 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "403",
                "error": "Forbidden"
              }
            }
          },
          "404": {
            "description": "Standard 404 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "404",
                "error": "Not Found"
              }
            }
          },
          "429": {
            "description": "Standard 429 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "429",
                "error": "Too Many Requests"
              }
            }
          },
          "500": {
            "description": "",
            "schema": {
              "type": "object",
              "title": "APIError",
              "description": "Standard APIError structure defined for 400 responses",
              "properties": {
                "errordate": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2018-07-13T16:03:43.979",
                  "description": "Error creation date"
                },
                "fishtag": {
                  "type": "string",
                  "example": "RandomTextIdentifier564",
                  "description": "Transaction uniq identifier"
                },
                "httpcode": {
                  "type": "integer",
                  "format": "int32",
                  "example": 500,
                  "description": "HTTP status code"
                },
                "messages": {
                  "type": "array",
                  "description": "Messages returned by API call",
                  "items": {
                    "type": "object",
                    "title": "APIMessage",
                    "description": "Standard APIMessage structure defined for all responses excepted the 2XX code response",
                    "properties": {
                      "code": {
                        "type": "string",
                        "example": "EX_FUNC_CODE_452",
                        "description": "Message functional code"
                      },
                      "level": {
                        "type": "string",
                        "example": "ERROR",
                        "description": "Message criticity level",
                        "enum": [
                          "INFO",
                          "WARNING",
                          "ERROR"
                        ]
                      },
                      "message": {
                        "type": "string",
                        "example": "An example error message",
                        "description": "Message text"
                      }
                    },
                    "required": [
                      "level",
                      "message"
                    ]
                  }
                },
                "url": {
                  "type": "string",
                  "example": "/called/url/25",
                  "description": "Called url"
                }
              },
              "required": [
                "httpcode",
                "url"
              ]
            }
          }
        },
        "description": "Creates a transaction for account",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "schema": {
              "type": "object",
              "items": {
                "type": "object",
                "title": "Transaction shorten",
                "description": "Description of a transaction",
                "properties": {
                  "label": {
                    "oneOf": [
                      {
                        "description": "Original label"
                      }
                    ],
                    "title": "Label",
                    "description": "Description of a label",
                    "type": "string"
                  },
                  "amount": {
                    "type": "object",
                    "properties": {
                      "currency": {
                        "type": "string"
                      },
                      "value": {
                        "type": "string"
                      },
                      "date": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "currency"
                    ],
                    "description": "Description of an amount",
                    "title": "Amount"
                  },
                  "bookedDate": {
                    "type": "string",
                    "format": "date",
                    "description": "Closed book date of the transaction. ",
                    "example": "2016-05-21T12:00:00.000Z"
                  },
                  "valueDate": {
                    "type": "string",
                    "description": "Value date of the transaction",
                    "format": "date",
                    "example": "2016-05-21T12:00:00.000Z"
                  },
                  "type": {
                    "title": "Transaction Type (Enum)",
                    "description": "Operation type that initiated the transaction",
                    "example": "105 ==> VIREMENT DESTINATAIRE (Transfert)",
                    "type": "string"
                  }
                }
              }
            }
          }
        ],
        "summary": "Transaction account creation"
      }
    },
    "/accounts/{accountId}/transactions/{transactionId}": {
      "parameters": [
        {
          "$ref": "#/parameters/Authorization"
        },
        {
          "$ref": "#/parameters/Authentication"
        },
        {
          "$ref": "#/parameters/apikey"
        },
        {
          "name": "accountId",
          "in": "path",
          "type": "string",
          "required": true
        },
        {
          "name": "transactionId",
          "in": "path",
          "type": "string",
          "required": true
        }
      ],
      "get": {
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "type": "array",
              "items": {
                "type": "object",
                "title": "Transaction",
                "description": "Description of a transaction",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique id of the transaction"
                  },
                  "label": {
                    "oneOf": [
                      {
                        "description": "Original label"
                      }
                    ],
                    "title": "Label",
                    "description": "Description of a label",
                    "type": "string"
                  },
                  "amount": {
                    "type": "number",
                    "description": "amount of the transaction in currency transaction"
                  },
                  "currency": {
                    "type": "string",
                    "description": "Currency of the transaction",
                    "example": "EUR, USD, ..."
                  },
                  "bookedDate": {
                    "type": "string",
                    "format": "date",
                    "description": "Closed book date of the transaction. ",
                    "example": "2016-05-21T12:00:00.000Z"
                  },
                  "transactionDate": {
                    "type": "string",
                    "description": "Transaction date of the transaction",
                    "format": "date",
                    "example": "2016-05-21T12:00:00.000Z"
                  },
                  "valueDate": {
                    "type": "string",
                    "description": "Value date of the transaction",
                    "format": "date",
                    "example": "2016-05-21T12:00:00.000Z"
                  },
                  "type": {
                    "title": "Transaction Type (Enum)",
                    "description": "Operation type that initiated the transaction",
                    "example": "105 ==> VIREMENT DESTINATAIRE (Transfert)",
                    "type": "string"
                  },
                  "status": {
                    "type": "string",
                    "title": "Transaction Status (Enum)",
                    "description": "Status of the transaction",
                    "enum": [
                      "booked",
                      "realTime",
                      "inProgress"
                    ]
                  },
                  "balanceBeforeBooked": {
                    "type": "object",
                    "title": "Balance of an account",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "label": {
                        "oneOf": [
                          {
                            "description": "Original label"
                          }
                        ],
                        "title": "Label",
                        "description": "Description of a label",
                        "type": "string"
                      },
                      "amount": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string"
                            },
                            "value": {
                              "type": "string"
                            },
                            "date": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "description": "Description of an amount",
                          "title": "Amount"
                        }
                      },
                      "lastTransaction": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time",
                        "example": "2018-07-13T16:03:43.979"
                      },
                      "createdById": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time",
                        "example": "2018-07-13T16:03:43.979"
                      },
                      "updatedById": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id"
                    ]
                  },
                  "contraAccountId": {
                    "type": "string",
                    "description": "Other account impacted by the transaction (when known). Most of the time, it is a technical id.",
                    "example": "010112345672400000"
                  }
                }
              }
            }
          },
          "400": {
            "description": "",
            "schema": {
              "type": "object",
              "title": "APIError",
              "description": "Standard APIError structure defined for 400 responses",
              "properties": {
                "errordate": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2018-07-13T16:03:43.979",
                  "description": "Error creation date"
                },
                "fishtag": {
                  "type": "string",
                  "example": "RandomTextIdentifier564",
                  "description": "Transaction uniq identifier"
                },
                "httpcode": {
                  "type": "integer",
                  "format": "int32",
                  "example": 500,
                  "description": "HTTP status code"
                },
                "messages": {
                  "type": "array",
                  "description": "Messages returned by API call",
                  "items": {
                    "type": "object",
                    "title": "APIMessage",
                    "description": "Standard APIMessage structure defined for all responses excepted the 2XX code response",
                    "properties": {
                      "code": {
                        "type": "string",
                        "example": "EX_FUNC_CODE_452",
                        "description": "Message functional code"
                      },
                      "level": {
                        "type": "string",
                        "example": "ERROR",
                        "description": "Message criticity level",
                        "enum": [
                          "INFO",
                          "WARNING",
                          "ERROR"
                        ]
                      },
                      "message": {
                        "type": "string",
                        "example": "An example error message",
                        "description": "Message text"
                      }
                    },
                    "required": [
                      "level",
                      "message"
                    ]
                  }
                },
                "url": {
                  "type": "string",
                  "example": "/called/url/25",
                  "description": "Called url"
                }
              },
              "required": [
                "httpcode",
                "url"
              ]
            }
          },
          "401": {
            "description": "Standard 401 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "401",
                "error": "Unauthorized"
              }
            }
          },
          "403": {
            "description": "Standard 403 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "403",
                "error": "Forbidden"
              }
            }
          },
          "404": {
            "description": "Standard 404 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "404",
                "error": "Not Found"
              }
            }
          },
          "429": {
            "description": "Standard 429 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "429",
                "error": "Too Many Requests"
              }
            }
          },
          "500": {
            "description": "",
            "schema": {
              "type": "object",
              "title": "APIError",
              "description": "Standard APIError structure defined for 400 responses",
              "properties": {
                "errordate": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2018-07-13T16:03:43.979",
                  "description": "Error creation date"
                },
                "fishtag": {
                  "type": "string",
                  "example": "RandomTextIdentifier564",
                  "description": "Transaction uniq identifier"
                },
                "httpcode": {
                  "type": "integer",
                  "format": "int32",
                  "example": 500,
                  "description": "HTTP status code"
                },
                "messages": {
                  "type": "array",
                  "description": "Messages returned by API call",
                  "items": {
                    "type": "object",
                    "title": "APIMessage",
                    "description": "Standard APIMessage structure defined for all responses excepted the 2XX code response",
                    "properties": {
                      "code": {
                        "type": "string",
                        "example": "EX_FUNC_CODE_452",
                        "description": "Message functional code"
                      },
                      "level": {
                        "type": "string",
                        "example": "ERROR",
                        "description": "Message criticity level",
                        "enum": [
                          "INFO",
                          "WARNING",
                          "ERROR"
                        ]
                      },
                      "message": {
                        "type": "string",
                        "example": "An example error message",
                        "description": "Message text"
                      }
                    },
                    "required": [
                      "level",
                      "message"
                    ]
                  }
                },
                "url": {
                  "type": "string",
                  "example": "/called/url/25",
                  "description": "Called url"
                }
              },
              "required": [
                "httpcode",
                "url"
              ]
            }
          }
        },
        "description": "Returns designated transaction.",
        "summary": "Gets designated transaction"
      },
      "patch": {
        "responses": {
          "200": {
            "description": "",
            "schema": {
              "type": "array",
              "items": {
                "type": "object",
                "title": "Transaction",
                "description": "Description of a transaction",
                "properties": {
                  "id": {
                    "type": "string",
                    "description": "Unique id of the transaction"
                  },
                  "label": {
                    "oneOf": [
                      {
                        "description": "Original label"
                      }
                    ],
                    "title": "Label",
                    "description": "Description of a label",
                    "type": "string"
                  },
                  "amount": {
                    "type": "number",
                    "description": "amount of the transaction in currency transaction"
                  },
                  "currency": {
                    "type": "string",
                    "description": "Currency of the transaction",
                    "example": "EUR, USD, ..."
                  },
                  "bookedDate": {
                    "type": "string",
                    "format": "date",
                    "description": "Closed book date of the transaction. ",
                    "example": "2016-05-21T12:00:00.000Z"
                  },
                  "transactionDate": {
                    "type": "string",
                    "description": "Transaction date of the transaction",
                    "format": "date",
                    "example": "2016-05-21T12:00:00.000Z"
                  },
                  "valueDate": {
                    "type": "string",
                    "description": "Value date of the transaction",
                    "format": "date",
                    "example": "2016-05-21T12:00:00.000Z"
                  },
                  "type": {
                    "title": "Transaction Type (Enum)",
                    "description": "Operation type that initiated the transaction",
                    "example": "105 ==> VIREMENT DESTINATAIRE (Transfert)",
                    "type": "string"
                  },
                  "status": {
                    "type": "string",
                    "title": "Transaction Status (Enum)",
                    "description": "Status of the transaction",
                    "enum": [
                      "booked",
                      "realTime",
                      "inProgress"
                    ]
                  },
                  "balanceBeforeBooked": {
                    "type": "object",
                    "title": "Balance of an account",
                    "properties": {
                      "id": {
                        "type": "string"
                      },
                      "label": {
                        "oneOf": [
                          {
                            "description": "Original label"
                          }
                        ],
                        "title": "Label",
                        "description": "Description of a label",
                        "type": "string"
                      },
                      "amount": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "properties": {
                            "currency": {
                              "type": "string"
                            },
                            "value": {
                              "type": "string"
                            },
                            "date": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "currency"
                          ],
                          "description": "Description of an amount",
                          "title": "Amount"
                        }
                      },
                      "lastTransaction": {
                        "type": "string"
                      },
                      "createdAt": {
                        "type": "string",
                        "format": "date-time",
                        "example": "2018-07-13T16:03:43.979"
                      },
                      "createdById": {
                        "type": "string"
                      },
                      "updatedAt": {
                        "type": "string",
                        "format": "date-time",
                        "example": "2018-07-13T16:03:43.979"
                      },
                      "updatedById": {
                        "type": "string"
                      }
                    },
                    "required": [
                      "id"
                    ]
                  },
                  "contraAccountId": {
                    "type": "string",
                    "description": "Other account impacted by the transaction (when known). Most of the time, it is a technical id.",
                    "example": "010112345672400000"
                  }
                }
              }
            }
          },
          "400": {
            "description": "",
            "schema": {
              "type": "object",
              "title": "APIError",
              "description": "Standard APIError structure defined for 400 responses",
              "properties": {
                "errordate": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2018-07-13T16:03:43.979",
                  "description": "Error creation date"
                },
                "fishtag": {
                  "type": "string",
                  "example": "RandomTextIdentifier564",
                  "description": "Transaction uniq identifier"
                },
                "httpcode": {
                  "type": "integer",
                  "format": "int32",
                  "example": 500,
                  "description": "HTTP status code"
                },
                "messages": {
                  "type": "array",
                  "description": "Messages returned by API call",
                  "items": {
                    "type": "object",
                    "title": "APIMessage",
                    "description": "Standard APIMessage structure defined for all responses excepted the 2XX code response",
                    "properties": {
                      "code": {
                        "type": "string",
                        "example": "EX_FUNC_CODE_452",
                        "description": "Message functional code"
                      },
                      "level": {
                        "type": "string",
                        "example": "ERROR",
                        "description": "Message criticity level",
                        "enum": [
                          "INFO",
                          "WARNING",
                          "ERROR"
                        ]
                      },
                      "message": {
                        "type": "string",
                        "example": "An example error message",
                        "description": "Message text"
                      }
                    },
                    "required": [
                      "level",
                      "message"
                    ]
                  }
                },
                "url": {
                  "type": "string",
                  "example": "/called/url/25",
                  "description": "Called url"
                }
              },
              "required": [
                "httpcode",
                "url"
              ]
            }
          },
          "401": {
            "description": "Standard 401 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "401",
                "error": "Unauthorized"
              }
            }
          },
          "403": {
            "description": "Standard 403 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "403",
                "error": "Forbidden"
              }
            }
          },
          "404": {
            "description": "Standard 404 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "404",
                "error": "Not Found"
              }
            }
          },
          "429": {
            "description": "Standard 429 error response",
            "schema": {
              "type": "object",
              "title": "APIStandardError",
              "properties": {
                "status": {
                  "type": "string"
                },
                "error": {
                  "type": "string"
                }
              },
              "required": [
                "status",
                "error"
              ]
            },
            "examples": {
              "application/json": {
                "status": "429",
                "error": "Too Many Requests"
              }
            }
          },
          "500": {
            "description": "",
            "schema": {
              "type": "object",
              "title": "APIError",
              "description": "Standard APIError structure defined for 400 responses",
              "properties": {
                "errordate": {
                  "type": "string",
                  "format": "date-time",
                  "example": "2018-07-13T16:03:43.979",
                  "description": "Error creation date"
                },
                "fishtag": {
                  "type": "string",
                  "example": "RandomTextIdentifier564",
                  "description": "Transaction uniq identifier"
                },
                "httpcode": {
                  "type": "integer",
                  "format": "int32",
                  "example": 500,
                  "description": "HTTP status code"
                },
                "messages": {
                  "type": "array",
                  "description": "Messages returned by API call",
                  "items": {
                    "type": "object",
                    "title": "APIMessage",
                    "description": "Standard APIMessage structure defined for all responses excepted the 2XX code response",
                    "properties": {
                      "code": {
                        "type": "string",
                        "example": "EX_FUNC_CODE_452",
                        "description": "Message functional code"
                      },
                      "level": {
                        "type": "string",
                        "example": "ERROR",
                        "description": "Message criticity level",
                        "enum": [
                          "INFO",
                          "WARNING",
                          "ERROR"
                        ]
                      },
                      "message": {
                        "type": "string",
                        "example": "An example error message",
                        "description": "Message text"
                      }
                    },
                    "required": [
                      "level",
                      "message"
                    ]
                  }
                },
                "url": {
                  "type": "string",
                  "example": "/called/url/25",
                  "description": "Called url"
                }
              },
              "required": [
                "httpcode",
                "url"
              ]
            }
          }
        },
        "description": "Updates the designated transaction",
        "summary": "Updates designated transaction",
        "parameters": [
          {
            "in": "body",
            "name": "body",
            "schema": {
              "type": "object",
              "properties": {
                "label": {
                  "type": "string"
                }
              }
            }
          }
        ]
      }
    }
  },
  "parameters": {
    "Authorization": {
      "name": "Authorization",
      "in": "header",
      "type": "string"
    },
    "Authentication": {
      "name": "Authentication",
      "in": "header",
      "type": "string"
    },
    "apikey": {
      "name": "apikey",
      "in": "header",
      "type": "string"
    }
  },
  "basePath": "/account-api/v1/",
  "security": [
    {
      "OAuthToken": []
    }
  ]
}