swagger: '2.0' info: description: 'Service to obtain the authorization token of the Investor by the custodian of origin.' version: '1.0.0' title: 'Authorization' schemes: - https basePath: /api/response-authorizations/v1 host: Caminho_backend tags: - name: Token paths: /tokens: post: tags: - Token summary: '' operationId: TokenPost consumes: - application/json parameters: - in: body name: Token description: '' schema: $ref: '#/definitions/AuthorizationTokenReqPost' responses: '201': description: Created '400': description: Bad Request '401': description: Unauthorized '404': description: Not Found definitions: DataToken: type: object properties: requesterTransactionId: type: string maxLength: 36 description: 'Transaction identification field sent by the requester' example: 'B3i-202103010001' requestedTransactionId: type: string maxLength: 36 description: 'Transaction identification field sent by the requested' example: 'BTG-909103090009' documentNumber: type: string maxLength: 23 description: 'Document number' example: '99999999999' authorizationToken: type: string description: 'Asset portability authorization token' example: '155082098e134fa14279e7baa4cf8270' transactionDateTime: type: string format: datetime description: 'Asset portability authorization token request response date time' example: '2021-03-30T14:00:00.001Z' required: - requesterTransactionId - requestedTransactionId - documentNumber - transactionDateTime errors: type: object properties: errors: type: array items: $ref: '#/definitions/Error' Error: type: object properties: code: type: string enum: ['lista codigos de erro'] maxLength: 10 description: 'Business error code.' example: title: type: string enum: ['lista titulos de erro'] maxLength: 100 description: 'Brief business error message' example: detail: type: string maxLength: 2000 description: 'Complementary information regarding business error' example: required: - code - title - detail AuthorizationTokenReqPost: type: object properties: data: $ref: '#/definitions/DataToken' errors: type: array items: $ref: '#/definitions/Error'