Repository navigation
Expand file tree
/
Copy pathquotes_{quoteId}_authorize.yaml
More file actions
87 lines (83 loc) · 3.09 KB
/
Copy pathquotes_{quoteId}_authorize.yaml
File metadata and controls
87 lines (83 loc) · 3.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
parameters:
- name: quoteId
in: path
description: The unique identifier of the quote whose SCA challenge is being authorized.
required: true
schema:
type: string
example: Quote:019542f5-b3e7-1d02-0000-000000000006
post:
summary: Authorize a quote's SCA challenge
description: |
Satisfy the Strong Customer Authentication challenge carried by a quote in
`PENDING_AUTHORIZATION` status by submitting an `ScaAuthorization` proof.
This is used for realtime-funding quotes: the quote is returned with an
`scaChallenge` and **without** `paymentInstructions`; once authorized, the
quote advances and its `paymentInstructions` are populated so the customer
can fund the transfer.
As with all SCA, a quote may require more than one authorization: after
authorizing, if the quote is still `PENDING_AUTHORIZATION` it carries the
next `scaChallenge` — authorize that too, repeating until it advances (see
`ScaChallenge`).
This endpoint is only meaningful for customers in a region where SCA is required (e.g. EU). For customers outside SCA-regulated regions, this returns `409`.
In sandbox, the SMS code is always `123456`.
operationId: authorizeQuote
tags:
- Strong Customer Authentication
security:
- BasicAuth: []
requestBody:
required: true
content:
application/json:
schema:
$ref: ../../components/schemas/sca/ScaAuthorization.yaml
responses:
'200':
description: Challenge authorized; the updated quote is returned.
content:
application/json:
schema:
$ref: ../../components/schemas/quotes/Quote.yaml
'400':
description: Invalid or expired authorization proof
content:
application/json:
schema:
$ref: ../../components/schemas/errors/Error400.yaml
'401':
description: Unauthorized
content:
application/json:
schema:
$ref: ../../components/schemas/errors/Error401.yaml
'404':
description: Quote not found
content:
application/json:
schema:
$ref: ../../components/schemas/errors/Error404.yaml
'409':
description: >-
SCA is not required for this customer, or the quote has
no pending challenge to authorize.
content:
application/json:
schema:
$ref: ../../components/schemas/errors/Error409.yaml
'429':
description: >-
Too many requests. Returned with `RATE_LIMITED` when authorization
attempts for this challenge happen too frequently (for example, repeated
bad codes brute-forcing the OTP). The challenge may be invalidated after too many failed attempts. Clients should back off and
retry after the interval indicated by the `Retry-After` response header.
content:
application/json:
schema:
$ref: ../../components/schemas/errors/Error429.yaml
'500':
description: Internal service error
content:
application/json:
schema:
$ref: ../../components/schemas/errors/Error500.yaml