openapi: 3.0.2
info:
title: DriveWealth Accounts Correspondent Reports API
version: '1.0'
servers:
- url: https://bo-api.drivewealth.io/back-office
description: Sandbox server (Uses test data)
- url: https://bo-api.drivewealth.net/back-office
description: Production Server (Uses LIVE data)
tags:
- name: Correspondent Reports
x-displayName: Correspondent Reports
paths:
/correspondantReport:
get:
tags:
- Correspondent Reports
parameters:
- in: query
name: date
schema:
type: string
required: true
example: '2023-03-21'
description: The date for which the Correspondent Report is being requested
summary: Retrieve Correspondent Reports
description: Fetch daily reports generated to provide positions, account activity, balances, and more in file format
responses:
'200':
description: Fetching Correspondent reports was successful.
content:
application/json:
schema:
type: object
properties:
url:
$ref: '#/components/schemas/fileURL'
'400':
description: Bad Request
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseModel'
examples:
Invalid request missing date:
value:
errorCode: E031
message: 'Invalid or missing parameters in the request URL or body. Refer to the API documentation for details. Details: Required : [date]'
Invalid request:
value:
errorCode: E033
message: Invalid parameter in message body. Refer to the API documentation for details.
'500':
description: Internal Server Error
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponseModel'
security:
- bearerAuth: []
dwAppKey: []
- sessionToken: []
dwAppKey: []
components:
schemas:
fileURL:
type: string
example: https://dzb6emi8pracf.cloudfront.net/5a013513-8af1-4078-be75-36a5250953f7.1488219178676/Stmt_DRVW_001_DWJM000019_Apr2017.pdf?Policy=eyJTdGF0ZW1lbnQiOiBbeyJSZXNvdXJjZSI6Imh0dHBzOi8vZHpiNmVtaThwcmFjZi5jbG91ZGZyb250Lm5ldC81YTAxMzUxMy04YWYxLTQwNzgtYmU3NS0zNmE1MjUwOTUzZjcuMTQ4ODIxOTE3ODY3Ni9TdG10X0RSVldfMDAxX0RXSk0wMDAwMTlfQXByMjAxNy5wZGYiLCJDb25kaXRpb24iOnsiRGF0ZUxlc3NUaGFuIjp7IkFXUzpFcG9jaFRpbWUiOjE0OTk3MTc1NDV9LCJJcEFkZHJlc3MiOnsiQVdTOlNvdXJjZUlwIjoiMC4wLjAuMC8wIn19fV19&Signature=UWZRPku4IWoqkp4fyQ179auFVrImZUYDXswjjO-zPGW9-XKno3-TG9O2OHxWG-j7NfEHMXtZbCha~lQwpjt~g58YpL1NYk9xhlp7~HR-skC3J3W8GFVWxbR5TQUXPFOdU-KNwYlTnlE1Wr81nUyoNWrrF-8afyiHVnfm2w35GpZavAKhOiKNDHn7kTorQz3rbkYDks9u1CGPU7TCeZ-GzupVqsUN7xDOxPUnH0KCVGY86PT8bEpPkhpc3jNmtLnB~WB3YdrFg0bSbrbU4M-sVyp49AqK~xq5uDu3Bx22vdyJlKUClEsVvKhQLOArkpMdHYwyPZC~Kz85sroGqnP3oQ__&Key-Pair-Id=APKAJP3MFGZ6DRA4CW4Q
description: A short-lived URL that can be accessed to download the file.
ErrorCode:
type: string
description: The error code that is returned when an error occurs.
example: E032
ErrorCodeMessage:
type: string
description: The error message that is returned when an error occurs.
ErrorDetails:
type: object
properties:
field:
type: string
description: JSON field name from the request body that caused an error
type:
type: string
enum:
- STRING
- ARRAY
- INT
- DECIMAL
- BOOL
- TEXT
- UUID
- DATE
- MAP
- OBJECT
description: Expected data type of the field
allowedValues:
type: string
description: Example values which are allowed in the field
ErrorResponseModel:
type: object
description: The error response model that is returned when an error occurs.
required:
- errorCode
- message
properties:
errorCode:
$ref: '#/components/schemas/ErrorCode'
message:
$ref: '#/components/schemas/ErrorCodeMessage'
errorDetails:
$ref: '#/components/schemas/ErrorDetails'
securitySchemes:
bearerAuth:
type: http
scheme: bearer
bearerFormat: JWT
dwAppKey:
type: apiKey
in: header
name: dw-client-app-key
sessionToken:
type: apiKey
in: header
name: dw-auth-token