@0to1pay/fulfillment-sdk 1.0.1 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +5 -5
- package/dist/contracts/openapi.yaml +710 -706
- package/dist/packages/domain/contract.d.ts +0 -1
- package/dist/packages/domain/contract.js +0 -3
- package/dist/packages/domain/shared.js +0 -37
- package/dist/packages/server-sdk/index.d.ts +33 -19
- package/dist/packages/server-sdk/schema.d.ts +717 -511
- package/package.json +1 -1
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
openapi: 3.1.0
|
|
2
2
|
jsonSchemaDialect: https://json-schema.org/draft/2020-12/schema
|
|
3
3
|
info:
|
|
4
|
-
title:
|
|
4
|
+
title: 0to1pay Payment & Fulfillment API
|
|
5
5
|
version: 1.0.0-design
|
|
6
|
-
description: 'Seller API for
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
across projects that share the same provider account.'
|
|
6
|
+
description: 'Seller API for USDC and USDT payments on supported networks and verified order fulfillment.
|
|
7
|
+
Resource IDs are UUID strings. Merchant API keys are scoped to a merchant, project and environment.
|
|
8
|
+
Historical fiat records are available through read endpoints.'
|
|
10
9
|
servers:
|
|
11
10
|
- url: /v1
|
|
12
11
|
description: Use the origin that serves the OpenAPI document.
|
|
@@ -22,11 +21,236 @@ tags:
|
|
|
22
21
|
- name: Webhooks
|
|
23
22
|
- name: Events
|
|
24
23
|
- name: Fulfillment
|
|
24
|
+
- name: Billing
|
|
25
25
|
paths:
|
|
26
|
+
/billing/plans:
|
|
27
|
+
get:
|
|
28
|
+
operationId: listBillingPlans
|
|
29
|
+
summary: List request plans and subscription prices
|
|
30
|
+
tags: [Billing]
|
|
31
|
+
x-required-scope: billing:read
|
|
32
|
+
description: >
|
|
33
|
+
Plan prices, included API requests, and configured USDC collection options with available recipients.
|
|
34
|
+
Live collection options use Ethereum or Base connections. Paid periods last 30 days.
|
|
35
|
+
responses:
|
|
36
|
+
'200':
|
|
37
|
+
description: Successful scoped billing response.
|
|
38
|
+
content:
|
|
39
|
+
application/json:
|
|
40
|
+
schema:
|
|
41
|
+
$ref: '#/components/schemas/BillingPlans'
|
|
42
|
+
'401':
|
|
43
|
+
$ref: '#/components/responses/Unauthorized'
|
|
44
|
+
'403':
|
|
45
|
+
$ref: '#/components/responses/BillingForbidden'
|
|
46
|
+
'503':
|
|
47
|
+
$ref: '#/components/responses/Unavailable'
|
|
48
|
+
/billing/subscription:
|
|
49
|
+
get:
|
|
50
|
+
operationId: getBillingSubscription
|
|
51
|
+
summary: Read the scoped subscription and request usage
|
|
52
|
+
tags: [Billing]
|
|
53
|
+
x-required-scope: billing:read
|
|
54
|
+
description: Current prepaid period and admitted API requests. The test allowance follows UTC calendar months.
|
|
55
|
+
responses:
|
|
56
|
+
'200':
|
|
57
|
+
description: Successful scoped billing response.
|
|
58
|
+
content:
|
|
59
|
+
application/json:
|
|
60
|
+
schema:
|
|
61
|
+
$ref: '#/components/schemas/BillingSubscription'
|
|
62
|
+
'401':
|
|
63
|
+
$ref: '#/components/responses/Unauthorized'
|
|
64
|
+
'403':
|
|
65
|
+
$ref: '#/components/responses/BillingForbidden'
|
|
66
|
+
'503':
|
|
67
|
+
$ref: '#/components/responses/Unavailable'
|
|
68
|
+
/billing/invoices:
|
|
69
|
+
get:
|
|
70
|
+
operationId: listBillingInvoices
|
|
71
|
+
summary: List recent subscription invoices to resume checkout or reconciliation
|
|
72
|
+
tags: [Billing]
|
|
73
|
+
x-required-scope: billing:read
|
|
74
|
+
description: Returns up to 20 invoices for the caller's project and current collection environment, newest first. Open, reconciling and scheduled invoices are retained ahead of older history.
|
|
75
|
+
responses:
|
|
76
|
+
'200':
|
|
77
|
+
description: Successful scoped billing response.
|
|
78
|
+
content:
|
|
79
|
+
application/json:
|
|
80
|
+
schema:
|
|
81
|
+
$ref: '#/components/schemas/BillingInvoiceList'
|
|
82
|
+
'401':
|
|
83
|
+
$ref: '#/components/responses/Unauthorized'
|
|
84
|
+
'403':
|
|
85
|
+
$ref: '#/components/responses/BillingForbidden'
|
|
86
|
+
'503':
|
|
87
|
+
$ref: '#/components/responses/Unavailable'
|
|
88
|
+
post:
|
|
89
|
+
operationId: createBillingInvoice
|
|
90
|
+
summary: Create a USDC subscription invoice and payer challenge
|
|
91
|
+
tags: [Billing]
|
|
92
|
+
x-required-scope: billing:write
|
|
93
|
+
description: Select an offered USDC network with network_id, or omit it for the configured default. The server snapshots the selected plan terms and network.
|
|
94
|
+
parameters:
|
|
95
|
+
- $ref: '#/components/parameters/IdempotencyKey'
|
|
96
|
+
requestBody:
|
|
97
|
+
required: true
|
|
98
|
+
content:
|
|
99
|
+
application/json:
|
|
100
|
+
schema:
|
|
101
|
+
$ref: '#/components/schemas/CreateBillingInvoice'
|
|
102
|
+
responses:
|
|
103
|
+
'201':
|
|
104
|
+
description: Successful scoped billing response.
|
|
105
|
+
content:
|
|
106
|
+
application/json:
|
|
107
|
+
schema:
|
|
108
|
+
$ref: '#/components/schemas/BillingInvoice'
|
|
109
|
+
'400':
|
|
110
|
+
$ref: '#/components/responses/BadRequest'
|
|
111
|
+
'401':
|
|
112
|
+
$ref: '#/components/responses/Unauthorized'
|
|
113
|
+
'403':
|
|
114
|
+
$ref: '#/components/responses/BillingForbidden'
|
|
115
|
+
'409':
|
|
116
|
+
$ref: '#/components/responses/BillingInvoiceConflict'
|
|
117
|
+
'503':
|
|
118
|
+
$ref: '#/components/responses/Unavailable'
|
|
119
|
+
/billing/invoices/{invoice_id}:
|
|
120
|
+
parameters:
|
|
121
|
+
- $ref: '#/components/parameters/invoice_id'
|
|
122
|
+
get:
|
|
123
|
+
operationId: getBillingInvoice
|
|
124
|
+
summary: Read the scoped subscription invoice
|
|
125
|
+
tags: [Billing]
|
|
126
|
+
x-required-scope: billing:read
|
|
127
|
+
description: Returns the invoice, frozen quote, wallet authorization message and entitlement state.
|
|
128
|
+
responses:
|
|
129
|
+
'200':
|
|
130
|
+
description: Successful scoped billing response.
|
|
131
|
+
content:
|
|
132
|
+
application/json:
|
|
133
|
+
schema:
|
|
134
|
+
$ref: '#/components/schemas/BillingInvoice'
|
|
135
|
+
'401':
|
|
136
|
+
$ref: '#/components/responses/Unauthorized'
|
|
137
|
+
'403':
|
|
138
|
+
$ref: '#/components/responses/BillingForbidden'
|
|
139
|
+
'404':
|
|
140
|
+
$ref: '#/components/responses/NotFound'
|
|
141
|
+
'503':
|
|
142
|
+
$ref: '#/components/responses/Unavailable'
|
|
143
|
+
/billing/invoices/{invoice_id}/authorize:
|
|
144
|
+
parameters:
|
|
145
|
+
- $ref: '#/components/parameters/invoice_id'
|
|
146
|
+
post:
|
|
147
|
+
operationId: authorizeBillingInvoice
|
|
148
|
+
summary: Authorize the subscription invoice with the payer wallet
|
|
149
|
+
tags: [Billing]
|
|
150
|
+
x-required-scope: billing:write
|
|
151
|
+
description: Sign the exact invoice intent signing_message with the wallet that will pay.
|
|
152
|
+
parameters:
|
|
153
|
+
- $ref: '#/components/parameters/IdempotencyKey'
|
|
154
|
+
requestBody:
|
|
155
|
+
required: true
|
|
156
|
+
content:
|
|
157
|
+
application/json:
|
|
158
|
+
schema:
|
|
159
|
+
$ref: '#/components/schemas/AuthorizeChainIntent'
|
|
160
|
+
responses:
|
|
161
|
+
'200':
|
|
162
|
+
description: Successful scoped billing response.
|
|
163
|
+
content:
|
|
164
|
+
application/json:
|
|
165
|
+
schema:
|
|
166
|
+
$ref: '#/components/schemas/BillingInvoice'
|
|
167
|
+
'400':
|
|
168
|
+
$ref: '#/components/responses/BadRequest'
|
|
169
|
+
'401':
|
|
170
|
+
$ref: '#/components/responses/Unauthorized'
|
|
171
|
+
'403':
|
|
172
|
+
$ref: '#/components/responses/BillingForbidden'
|
|
173
|
+
'404':
|
|
174
|
+
$ref: '#/components/responses/NotFound'
|
|
175
|
+
'409':
|
|
176
|
+
$ref: '#/components/responses/Conflict'
|
|
177
|
+
'503':
|
|
178
|
+
$ref: '#/components/responses/Unavailable'
|
|
179
|
+
/billing/invoices/{invoice_id}/submit:
|
|
180
|
+
parameters:
|
|
181
|
+
- $ref: '#/components/parameters/invoice_id'
|
|
182
|
+
post:
|
|
183
|
+
operationId: submitBillingInvoice
|
|
184
|
+
summary: Submit the signed subscription transaction claim
|
|
185
|
+
tags: [Billing]
|
|
186
|
+
x-required-scope: billing:write
|
|
187
|
+
description: Submit a second signature binding the claimed transaction ID to the authorization. The worker independently verifies the payment.
|
|
188
|
+
parameters:
|
|
189
|
+
- $ref: '#/components/parameters/IdempotencyKey'
|
|
190
|
+
requestBody:
|
|
191
|
+
required: true
|
|
192
|
+
content:
|
|
193
|
+
application/json:
|
|
194
|
+
schema:
|
|
195
|
+
$ref: '#/components/schemas/SubmitChainIntent'
|
|
196
|
+
responses:
|
|
197
|
+
'200':
|
|
198
|
+
description: Successful scoped billing response.
|
|
199
|
+
content:
|
|
200
|
+
application/json:
|
|
201
|
+
schema:
|
|
202
|
+
$ref: '#/components/schemas/BillingInvoice'
|
|
203
|
+
'400':
|
|
204
|
+
$ref: '#/components/responses/BadRequest'
|
|
205
|
+
'401':
|
|
206
|
+
$ref: '#/components/responses/Unauthorized'
|
|
207
|
+
'403':
|
|
208
|
+
$ref: '#/components/responses/BillingForbidden'
|
|
209
|
+
'404':
|
|
210
|
+
$ref: '#/components/responses/NotFound'
|
|
211
|
+
'409':
|
|
212
|
+
$ref: '#/components/responses/Conflict'
|
|
213
|
+
'503':
|
|
214
|
+
$ref: '#/components/responses/Unavailable'
|
|
215
|
+
/billing/keys:
|
|
216
|
+
post:
|
|
217
|
+
operationId: issueBillingKey
|
|
218
|
+
summary: Issue a scoped server key for the active subscription
|
|
219
|
+
tags: [Billing]
|
|
220
|
+
x-required-scope: billing:write
|
|
221
|
+
description: Requires an active subscription. Keep the returned secret server-side and reuse the same idempotency key if the response is lost.
|
|
222
|
+
parameters:
|
|
223
|
+
- $ref: '#/components/parameters/IdempotencyKey'
|
|
224
|
+
requestBody:
|
|
225
|
+
required: true
|
|
226
|
+
content:
|
|
227
|
+
application/json:
|
|
228
|
+
schema:
|
|
229
|
+
$ref: '#/components/schemas/BillingKeyRequest'
|
|
230
|
+
responses:
|
|
231
|
+
'201':
|
|
232
|
+
description: Successful scoped billing response.
|
|
233
|
+
content:
|
|
234
|
+
application/json:
|
|
235
|
+
schema:
|
|
236
|
+
$ref: '#/components/schemas/BillingKey'
|
|
237
|
+
'400':
|
|
238
|
+
$ref: '#/components/responses/BadRequest'
|
|
239
|
+
'401':
|
|
240
|
+
$ref: '#/components/responses/Unauthorized'
|
|
241
|
+
'403':
|
|
242
|
+
$ref: '#/components/responses/BillingForbidden'
|
|
243
|
+
'409':
|
|
244
|
+
$ref: '#/components/responses/Conflict'
|
|
245
|
+
'503':
|
|
246
|
+
$ref: '#/components/responses/Unavailable'
|
|
26
247
|
/chain/assets:
|
|
27
248
|
get:
|
|
28
249
|
operationId: listChainAssets
|
|
29
250
|
summary: List supported USDC and USDT deployments on configured networks
|
|
251
|
+
description: >
|
|
252
|
+
Live checkout supports Ethereum native USDC and USDT, TRON USDT, and Base native USDC.
|
|
253
|
+
Only configured networks in the caller's environment are returned.
|
|
30
254
|
tags: [Connections]
|
|
31
255
|
x-required-scope: payments:read
|
|
32
256
|
responses:
|
|
@@ -40,10 +264,13 @@ paths:
|
|
|
40
264
|
$ref: '#/components/responses/Unauthorized'
|
|
41
265
|
'403':
|
|
42
266
|
$ref: '#/components/responses/Forbidden'
|
|
267
|
+
'429':
|
|
268
|
+
$ref: '#/components/responses/RequestBudgetExhausted'
|
|
43
269
|
/chain/connections:
|
|
44
270
|
post:
|
|
45
271
|
operationId: createChainConnection
|
|
46
272
|
summary: Create a watch-only chain connection for the scoped merchant
|
|
273
|
+
description: Select a network returned by listChainAssets for this environment.
|
|
47
274
|
tags: [Connections]
|
|
48
275
|
x-required-scope: connections:manage
|
|
49
276
|
parameters:
|
|
@@ -113,9 +340,7 @@ paths:
|
|
|
113
340
|
x-required-scope: payments:write
|
|
114
341
|
description: Same scoped order_ref/order_revision and identical specification returns the existing resource.
|
|
115
342
|
Changed snapshot requires explicit revision but retains the same business grant identity.
|
|
116
|
-
|
|
117
|
-
When the quota is reached, new orders return HTTP 429 with code QUOTA_REACHED before any checkout is issued.
|
|
118
|
-
Existing orders can be retried, revised, verified and fulfilled under the usual payment rules.
|
|
343
|
+
For new payments, every allowed connection must support the price denomination in listChainAssets.
|
|
119
344
|
parameters:
|
|
120
345
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
121
346
|
responses:
|
|
@@ -141,7 +366,7 @@ paths:
|
|
|
141
366
|
'409':
|
|
142
367
|
$ref: '#/components/responses/Conflict'
|
|
143
368
|
'429':
|
|
144
|
-
$ref: '#/components/responses/
|
|
369
|
+
$ref: '#/components/responses/RequestBudgetExhausted'
|
|
145
370
|
'503':
|
|
146
371
|
$ref: '#/components/responses/Unavailable'
|
|
147
372
|
requestBody:
|
|
@@ -183,7 +408,7 @@ paths:
|
|
|
183
408
|
'409':
|
|
184
409
|
$ref: '#/components/responses/Conflict'
|
|
185
410
|
'429':
|
|
186
|
-
$ref: '#/components/responses/
|
|
411
|
+
$ref: '#/components/responses/RequestBudgetExhausted'
|
|
187
412
|
'503':
|
|
188
413
|
$ref: '#/components/responses/Unavailable'
|
|
189
414
|
/payments/{payment_id}:
|
|
@@ -228,12 +453,12 @@ paths:
|
|
|
228
453
|
- $ref: '#/components/parameters/payment_id'
|
|
229
454
|
post:
|
|
230
455
|
operationId: createQuote
|
|
231
|
-
summary: Freeze
|
|
456
|
+
summary: Freeze stablecoin payable terms
|
|
232
457
|
tags:
|
|
233
458
|
- Quotes
|
|
234
459
|
x-required-scope: payments:write
|
|
235
|
-
description:
|
|
236
|
-
exceed the
|
|
460
|
+
description: Reserve a unique recipient for the selected network and freeze the amount and token.
|
|
461
|
+
Quote expiry cannot exceed the payment expiry. New quotes use the selected network's matching asset from listChainAssets.
|
|
237
462
|
parameters:
|
|
238
463
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
239
464
|
responses:
|
|
@@ -259,7 +484,7 @@ paths:
|
|
|
259
484
|
'409':
|
|
260
485
|
$ref: '#/components/responses/Conflict'
|
|
261
486
|
'429':
|
|
262
|
-
$ref: '#/components/responses/
|
|
487
|
+
$ref: '#/components/responses/RequestBudgetExhausted'
|
|
263
488
|
'503':
|
|
264
489
|
$ref: '#/components/responses/Unavailable'
|
|
265
490
|
requestBody:
|
|
@@ -305,85 +530,31 @@ paths:
|
|
|
305
530
|
$ref: '#/components/responses/RateLimited'
|
|
306
531
|
'503':
|
|
307
532
|
$ref: '#/components/responses/Unavailable'
|
|
308
|
-
/
|
|
533
|
+
/quotes/{quote_id}/chain-intents:
|
|
309
534
|
parameters:
|
|
310
|
-
- $ref: '#/components/parameters/
|
|
535
|
+
- $ref: '#/components/parameters/quote_id'
|
|
311
536
|
post:
|
|
312
|
-
operationId:
|
|
313
|
-
summary: Create a
|
|
314
|
-
tags:
|
|
315
|
-
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
mapping before exposing next_action. A provider failure does not automatically retry a different payment
|
|
319
|
-
route.
|
|
537
|
+
operationId: createChainIntent
|
|
538
|
+
summary: Create a wallet approval challenge for a buyer checkout
|
|
539
|
+
tags: [Quotes]
|
|
540
|
+
x-required-scope: payments:write
|
|
541
|
+
description: The merchant server must first authenticate the buyer and authorize access to the quote.
|
|
542
|
+
Supply a stable opaque reference for that authenticated checkout. Never send the session credential itself.
|
|
320
543
|
parameters:
|
|
321
544
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
322
|
-
responses:
|
|
323
|
-
'201':
|
|
324
|
-
description: Attempt mapping persisted and next action ready.
|
|
325
|
-
headers:
|
|
326
|
-
X-Request-Id:
|
|
327
|
-
schema:
|
|
328
|
-
type: string
|
|
329
|
-
format: uuid
|
|
330
|
-
content:
|
|
331
|
-
application/json:
|
|
332
|
-
schema:
|
|
333
|
-
$ref: '#/components/schemas/AttemptMutationResult'
|
|
334
|
-
'202':
|
|
335
|
-
description: Attempt operation persisted; processing or unknown outcome. Poll same operation.
|
|
336
|
-
headers:
|
|
337
|
-
X-Request-Id:
|
|
338
|
-
schema:
|
|
339
|
-
type: string
|
|
340
|
-
format: uuid
|
|
341
|
-
content:
|
|
342
|
-
application/json:
|
|
343
|
-
schema:
|
|
344
|
-
$ref: '#/components/schemas/AttemptMutationResult'
|
|
345
|
-
'400':
|
|
346
|
-
$ref: '#/components/responses/BadRequest'
|
|
347
|
-
'401':
|
|
348
|
-
$ref: '#/components/responses/Unauthorized'
|
|
349
|
-
'403':
|
|
350
|
-
$ref: '#/components/responses/Forbidden'
|
|
351
|
-
'404':
|
|
352
|
-
$ref: '#/components/responses/NotFound'
|
|
353
|
-
'409':
|
|
354
|
-
$ref: '#/components/responses/Conflict'
|
|
355
|
-
'429':
|
|
356
|
-
$ref: '#/components/responses/RateLimited'
|
|
357
|
-
'503':
|
|
358
|
-
$ref: '#/components/responses/Unavailable'
|
|
359
545
|
requestBody:
|
|
360
546
|
required: true
|
|
361
547
|
content:
|
|
362
548
|
application/json:
|
|
363
549
|
schema:
|
|
364
|
-
$ref: '#/components/schemas/
|
|
365
|
-
get:
|
|
366
|
-
operationId: listAttempts
|
|
367
|
-
summary: List every payment attempt
|
|
368
|
-
tags:
|
|
369
|
-
- Attempts
|
|
370
|
-
x-required-scope: payments:read
|
|
371
|
-
description: ''
|
|
372
|
-
parameters:
|
|
373
|
-
- $ref: '#/components/parameters/Cursor'
|
|
374
|
-
- $ref: '#/components/parameters/Limit'
|
|
550
|
+
$ref: '#/components/schemas/CreateChainIntent'
|
|
375
551
|
responses:
|
|
376
552
|
'200':
|
|
377
|
-
description:
|
|
378
|
-
headers:
|
|
379
|
-
X-Request-Id:
|
|
380
|
-
schema:
|
|
381
|
-
type: string
|
|
382
|
-
format: uuid
|
|
553
|
+
description: The checkout's payer and wallet approval message.
|
|
383
554
|
content:
|
|
384
555
|
application/json:
|
|
385
556
|
schema:
|
|
386
|
-
$ref: '#/components/schemas/
|
|
557
|
+
$ref: '#/components/schemas/ChainIntent'
|
|
387
558
|
'400':
|
|
388
559
|
$ref: '#/components/responses/BadRequest'
|
|
389
560
|
'401':
|
|
@@ -398,75 +569,31 @@ paths:
|
|
|
398
569
|
$ref: '#/components/responses/RateLimited'
|
|
399
570
|
'503':
|
|
400
571
|
$ref: '#/components/responses/Unavailable'
|
|
401
|
-
/
|
|
572
|
+
/quotes/{quote_id}/chain-intents/{intent_id}/authorize:
|
|
402
573
|
parameters:
|
|
403
|
-
- $ref: '#/components/parameters/
|
|
574
|
+
- $ref: '#/components/parameters/quote_id'
|
|
575
|
+
- $ref: '#/components/parameters/intent_id'
|
|
404
576
|
post:
|
|
405
|
-
operationId:
|
|
406
|
-
summary:
|
|
407
|
-
tags:
|
|
408
|
-
-
|
|
409
|
-
|
|
410
|
-
description: Server only. Verify account/env/order/binding against provider. Bindings from browser-submitted
|
|
411
|
-
IDs are not accepted. Historical imports are observation-only. Inbox events arriving before attachment are
|
|
412
|
-
retained and replayed.
|
|
577
|
+
operationId: authorizeChainIntent
|
|
578
|
+
summary: Authorize the frozen quote with the chosen payer wallet
|
|
579
|
+
tags: [Quotes]
|
|
580
|
+
x-required-scope: payments:write
|
|
581
|
+
description: Verify the signature over the exact signing_message returned by createChainIntent.
|
|
413
582
|
parameters:
|
|
414
583
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
415
|
-
responses:
|
|
416
|
-
'201':
|
|
417
|
-
description: External attempt registered for authoritative verification.
|
|
418
|
-
headers:
|
|
419
|
-
X-Request-Id:
|
|
420
|
-
schema:
|
|
421
|
-
type: string
|
|
422
|
-
format: uuid
|
|
423
|
-
content:
|
|
424
|
-
application/json:
|
|
425
|
-
schema:
|
|
426
|
-
$ref: '#/components/schemas/Attempt'
|
|
427
|
-
'400':
|
|
428
|
-
$ref: '#/components/responses/BadRequest'
|
|
429
|
-
'401':
|
|
430
|
-
$ref: '#/components/responses/Unauthorized'
|
|
431
|
-
'403':
|
|
432
|
-
$ref: '#/components/responses/Forbidden'
|
|
433
|
-
'404':
|
|
434
|
-
$ref: '#/components/responses/NotFound'
|
|
435
|
-
'409':
|
|
436
|
-
$ref: '#/components/responses/Conflict'
|
|
437
|
-
'429':
|
|
438
|
-
$ref: '#/components/responses/RateLimited'
|
|
439
|
-
'503':
|
|
440
|
-
$ref: '#/components/responses/Unavailable'
|
|
441
584
|
requestBody:
|
|
442
585
|
required: true
|
|
443
586
|
content:
|
|
444
587
|
application/json:
|
|
445
588
|
schema:
|
|
446
|
-
$ref: '#/components/schemas/
|
|
447
|
-
/attempts/{attempt_id}:
|
|
448
|
-
parameters:
|
|
449
|
-
- $ref: '#/components/parameters/attempt_id'
|
|
450
|
-
get:
|
|
451
|
-
operationId: getAttempt
|
|
452
|
-
summary: Get current execution state
|
|
453
|
-
tags:
|
|
454
|
-
- Attempts
|
|
455
|
-
x-required-scope: payments:read
|
|
456
|
-
description: ''
|
|
457
|
-
parameters: []
|
|
589
|
+
$ref: '#/components/schemas/AuthorizeChainIntent'
|
|
458
590
|
responses:
|
|
459
591
|
'200':
|
|
460
|
-
description:
|
|
461
|
-
headers:
|
|
462
|
-
X-Request-Id:
|
|
463
|
-
schema:
|
|
464
|
-
type: string
|
|
465
|
-
format: uuid
|
|
592
|
+
description: Wallet approval is recorded.
|
|
466
593
|
content:
|
|
467
594
|
application/json:
|
|
468
595
|
schema:
|
|
469
|
-
$ref: '#/components/schemas/
|
|
596
|
+
$ref: '#/components/schemas/ChainIntent'
|
|
470
597
|
'400':
|
|
471
598
|
$ref: '#/components/responses/BadRequest'
|
|
472
599
|
'401':
|
|
@@ -481,77 +608,32 @@ paths:
|
|
|
481
608
|
$ref: '#/components/responses/RateLimited'
|
|
482
609
|
'503':
|
|
483
610
|
$ref: '#/components/responses/Unavailable'
|
|
484
|
-
/
|
|
611
|
+
/quotes/{quote_id}/chain-intents/{intent_id}/submit:
|
|
485
612
|
parameters:
|
|
486
|
-
- $ref: '#/components/parameters/
|
|
613
|
+
- $ref: '#/components/parameters/quote_id'
|
|
614
|
+
- $ref: '#/components/parameters/intent_id'
|
|
487
615
|
post:
|
|
488
|
-
operationId:
|
|
489
|
-
summary:
|
|
490
|
-
tags:
|
|
491
|
-
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
are checked. Browser return is only a trigger; authoritative state is reloaded. R1 capture is the exact
|
|
495
|
-
remaining quote obligation, not a client-provided amount.
|
|
616
|
+
operationId: submitChainIntent
|
|
617
|
+
summary: Bind a broadcast transaction to its authorized checkout
|
|
618
|
+
tags: [Quotes]
|
|
619
|
+
x-required-scope: payments:write
|
|
620
|
+
description: Submit a second wallet signature over signing_message followed by a newline and Transaction, a colon,
|
|
621
|
+
a space and the canonical transaction ID. The Worker verifies the actual token source and finalized transfer.
|
|
496
622
|
parameters:
|
|
497
623
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
498
|
-
responses:
|
|
499
|
-
'202':
|
|
500
|
-
description: Logical confirm/capture operation durably accepted.
|
|
501
|
-
headers:
|
|
502
|
-
X-Request-Id:
|
|
503
|
-
schema:
|
|
504
|
-
type: string
|
|
505
|
-
format: uuid
|
|
506
|
-
content:
|
|
507
|
-
application/json:
|
|
508
|
-
schema:
|
|
509
|
-
$ref: '#/components/schemas/Operation'
|
|
510
|
-
'400':
|
|
511
|
-
$ref: '#/components/responses/BadRequest'
|
|
512
|
-
'401':
|
|
513
|
-
$ref: '#/components/responses/Unauthorized'
|
|
514
|
-
'403':
|
|
515
|
-
$ref: '#/components/responses/Forbidden'
|
|
516
|
-
'404':
|
|
517
|
-
$ref: '#/components/responses/NotFound'
|
|
518
|
-
'409':
|
|
519
|
-
$ref: '#/components/responses/Conflict'
|
|
520
|
-
'429':
|
|
521
|
-
$ref: '#/components/responses/RateLimited'
|
|
522
|
-
'503':
|
|
523
|
-
$ref: '#/components/responses/Unavailable'
|
|
524
624
|
requestBody:
|
|
525
625
|
required: true
|
|
526
626
|
content:
|
|
527
627
|
application/json:
|
|
528
628
|
schema:
|
|
529
|
-
$ref: '#/components/schemas/
|
|
530
|
-
/payments/{payment_id}/verify:
|
|
531
|
-
parameters:
|
|
532
|
-
- $ref: '#/components/parameters/payment_id'
|
|
533
|
-
post:
|
|
534
|
-
operationId: requestVerification
|
|
535
|
-
summary: Schedule authoritative evidence verification
|
|
536
|
-
tags:
|
|
537
|
-
- Verification
|
|
538
|
-
x-required-scope: payments:verify
|
|
539
|
-
description: Does not accept paid=true or set success. Requesting verification does not allocate unverified
|
|
540
|
-
evidence.
|
|
541
|
-
parameters:
|
|
542
|
-
- $ref: '#/components/parameters/IdempotencyKey'
|
|
629
|
+
$ref: '#/components/schemas/SubmitChainIntent'
|
|
543
630
|
responses:
|
|
544
|
-
'
|
|
545
|
-
description:
|
|
546
|
-
headers:
|
|
547
|
-
X-Request-Id:
|
|
548
|
-
schema:
|
|
549
|
-
type: string
|
|
550
|
-
format: uuid
|
|
631
|
+
'200':
|
|
632
|
+
description: The transaction claim is recorded for verification. Check the payment for the resulting decision.
|
|
551
633
|
content:
|
|
552
634
|
application/json:
|
|
553
635
|
schema:
|
|
554
|
-
$ref: '#/components/schemas/
|
|
636
|
+
$ref: '#/components/schemas/ChainIntent'
|
|
555
637
|
'400':
|
|
556
638
|
$ref: '#/components/responses/BadRequest'
|
|
557
639
|
'401':
|
|
@@ -566,27 +648,21 @@ paths:
|
|
|
566
648
|
$ref: '#/components/responses/RateLimited'
|
|
567
649
|
'503':
|
|
568
650
|
$ref: '#/components/responses/Unavailable'
|
|
569
|
-
|
|
570
|
-
required: true
|
|
571
|
-
content:
|
|
572
|
-
application/json:
|
|
573
|
-
schema:
|
|
574
|
-
$ref: '#/components/schemas/VerifyRequest'
|
|
575
|
-
/payments/{payment_id}/cancel:
|
|
651
|
+
/payments/{payment_id}/attempts:
|
|
576
652
|
parameters:
|
|
577
653
|
- $ref: '#/components/parameters/payment_id'
|
|
578
654
|
post:
|
|
579
|
-
operationId:
|
|
580
|
-
summary:
|
|
655
|
+
operationId: createAttempt
|
|
656
|
+
summary: Get or open the transfer attempt for an assigned chain quote
|
|
581
657
|
tags:
|
|
582
|
-
-
|
|
583
|
-
x-required-scope:
|
|
584
|
-
description:
|
|
658
|
+
- Attempts
|
|
659
|
+
x-required-scope: attempts:initiate
|
|
660
|
+
description: Chain quotes open a transfer attempt when assigned. Repeating this call returns that attempt.
|
|
585
661
|
parameters:
|
|
586
662
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
587
663
|
responses:
|
|
588
|
-
'
|
|
589
|
-
description:
|
|
664
|
+
'201':
|
|
665
|
+
description: Chain transfer attempt for the assigned quote.
|
|
590
666
|
headers:
|
|
591
667
|
X-Request-Id:
|
|
592
668
|
schema:
|
|
@@ -595,7 +671,7 @@ paths:
|
|
|
595
671
|
content:
|
|
596
672
|
application/json:
|
|
597
673
|
schema:
|
|
598
|
-
$ref: '#/components/schemas/
|
|
674
|
+
$ref: '#/components/schemas/AttemptMutationResult'
|
|
599
675
|
'400':
|
|
600
676
|
$ref: '#/components/responses/BadRequest'
|
|
601
677
|
'401':
|
|
@@ -606,8 +682,6 @@ paths:
|
|
|
606
682
|
$ref: '#/components/responses/NotFound'
|
|
607
683
|
'409':
|
|
608
684
|
$ref: '#/components/responses/Conflict'
|
|
609
|
-
'429':
|
|
610
|
-
$ref: '#/components/responses/RateLimited'
|
|
611
685
|
'503':
|
|
612
686
|
$ref: '#/components/responses/Unavailable'
|
|
613
687
|
requestBody:
|
|
@@ -615,40 +689,20 @@ paths:
|
|
|
615
689
|
content:
|
|
616
690
|
application/json:
|
|
617
691
|
schema:
|
|
618
|
-
$ref: '#/components/schemas/
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
post:
|
|
623
|
-
operationId: reviewPayment
|
|
624
|
-
summary: Record a narrow audited fulfillment decision
|
|
692
|
+
$ref: '#/components/schemas/CreateAttempt'
|
|
693
|
+
get:
|
|
694
|
+
operationId: listAttempts
|
|
695
|
+
summary: List every payment attempt
|
|
625
696
|
tags:
|
|
626
|
-
-
|
|
627
|
-
x-required-scope: payments:
|
|
628
|
-
description:
|
|
629
|
-
evidence, bound order, correct full amount/asset/payee/account and timing-only hold; all other blockers
|
|
630
|
-
fail with 409. It does not reopen collection, manufacture money, clear refunds/disputes, change provenance,
|
|
631
|
-
or reissue an existing grant. keep_on_hold and reject_fulfillment record persistent business restrictions;
|
|
632
|
-
reconciliation must not silently discard them. If an effect is already claimed/applied/unknown, preserve
|
|
633
|
-
that fact and return conflict or review without pretending to undo it. Actor comes from auth; reason and
|
|
634
|
-
prior/new decision are immutable audit data. New command/outbox, if justified, uses the existing order/action
|
|
635
|
-
grant identity.
|
|
697
|
+
- Attempts
|
|
698
|
+
x-required-scope: payments:read
|
|
699
|
+
description: ''
|
|
636
700
|
parameters:
|
|
637
|
-
- $ref: '#/components/parameters/
|
|
701
|
+
- $ref: '#/components/parameters/Cursor'
|
|
702
|
+
- $ref: '#/components/parameters/Limit'
|
|
638
703
|
responses:
|
|
639
|
-
'201':
|
|
640
|
-
description: Review audit and resulting decision committed atomically.
|
|
641
|
-
headers:
|
|
642
|
-
X-Request-Id:
|
|
643
|
-
schema:
|
|
644
|
-
type: string
|
|
645
|
-
format: uuid
|
|
646
|
-
content:
|
|
647
|
-
application/json:
|
|
648
|
-
schema:
|
|
649
|
-
$ref: '#/components/schemas/ReviewResult'
|
|
650
704
|
'200':
|
|
651
|
-
description:
|
|
705
|
+
description: Success
|
|
652
706
|
headers:
|
|
653
707
|
X-Request-Id:
|
|
654
708
|
schema:
|
|
@@ -657,7 +711,7 @@ paths:
|
|
|
657
711
|
content:
|
|
658
712
|
application/json:
|
|
659
713
|
schema:
|
|
660
|
-
$ref: '#/components/schemas/
|
|
714
|
+
$ref: '#/components/schemas/AttemptList'
|
|
661
715
|
'400':
|
|
662
716
|
$ref: '#/components/responses/BadRequest'
|
|
663
717
|
'401':
|
|
@@ -669,24 +723,18 @@ paths:
|
|
|
669
723
|
'409':
|
|
670
724
|
$ref: '#/components/responses/Conflict'
|
|
671
725
|
'429':
|
|
672
|
-
$ref: '#/components/responses/
|
|
726
|
+
$ref: '#/components/responses/RequestBudgetExhausted'
|
|
673
727
|
'503':
|
|
674
728
|
$ref: '#/components/responses/Unavailable'
|
|
675
|
-
|
|
676
|
-
required: true
|
|
677
|
-
content:
|
|
678
|
-
application/json:
|
|
679
|
-
schema:
|
|
680
|
-
$ref: '#/components/schemas/ReviewRequest'
|
|
681
|
-
/operations/{operation_id}:
|
|
729
|
+
/attempts/{attempt_id}:
|
|
682
730
|
parameters:
|
|
683
|
-
- $ref: '#/components/parameters/
|
|
731
|
+
- $ref: '#/components/parameters/attempt_id'
|
|
684
732
|
get:
|
|
685
|
-
operationId:
|
|
686
|
-
summary:
|
|
733
|
+
operationId: getAttempt
|
|
734
|
+
summary: Get current execution state
|
|
687
735
|
tags:
|
|
688
|
-
-
|
|
689
|
-
x-required-scope:
|
|
736
|
+
- Attempts
|
|
737
|
+
x-required-scope: payments:read
|
|
690
738
|
description: ''
|
|
691
739
|
parameters: []
|
|
692
740
|
responses:
|
|
@@ -700,7 +748,7 @@ paths:
|
|
|
700
748
|
content:
|
|
701
749
|
application/json:
|
|
702
750
|
schema:
|
|
703
|
-
$ref: '#/components/schemas/
|
|
751
|
+
$ref: '#/components/schemas/Attempt'
|
|
704
752
|
'400':
|
|
705
753
|
$ref: '#/components/responses/BadRequest'
|
|
706
754
|
'401':
|
|
@@ -715,22 +763,22 @@ paths:
|
|
|
715
763
|
$ref: '#/components/responses/RateLimited'
|
|
716
764
|
'503':
|
|
717
765
|
$ref: '#/components/responses/Unavailable'
|
|
718
|
-
/
|
|
766
|
+
/payments/{payment_id}/verify:
|
|
719
767
|
parameters:
|
|
720
|
-
- $ref: '#/components/parameters/
|
|
768
|
+
- $ref: '#/components/parameters/payment_id'
|
|
721
769
|
post:
|
|
722
|
-
operationId:
|
|
723
|
-
summary:
|
|
770
|
+
operationId: requestVerification
|
|
771
|
+
summary: Schedule authoritative evidence verification
|
|
724
772
|
tags:
|
|
725
|
-
-
|
|
726
|
-
x-required-scope:
|
|
727
|
-
description:
|
|
728
|
-
|
|
773
|
+
- Verification
|
|
774
|
+
x-required-scope: payments:verify
|
|
775
|
+
description: Does not accept paid=true or set success. Requesting verification does not allocate unverified
|
|
776
|
+
evidence.
|
|
729
777
|
parameters:
|
|
730
778
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
731
779
|
responses:
|
|
732
780
|
'202':
|
|
733
|
-
description:
|
|
781
|
+
description: Verification operation queued.
|
|
734
782
|
headers:
|
|
735
783
|
X-Request-Id:
|
|
736
784
|
schema:
|
|
@@ -759,26 +807,22 @@ paths:
|
|
|
759
807
|
content:
|
|
760
808
|
application/json:
|
|
761
809
|
schema:
|
|
762
|
-
$ref: '#/components/schemas/
|
|
763
|
-
/
|
|
810
|
+
$ref: '#/components/schemas/VerifyRequest'
|
|
811
|
+
/payments/{payment_id}/cancel:
|
|
812
|
+
parameters:
|
|
813
|
+
- $ref: '#/components/parameters/payment_id'
|
|
764
814
|
post:
|
|
765
|
-
operationId:
|
|
766
|
-
summary:
|
|
815
|
+
operationId: cancelPayment
|
|
816
|
+
summary: Stop new collection attempts
|
|
767
817
|
tags:
|
|
768
|
-
-
|
|
769
|
-
x-required-scope:
|
|
770
|
-
description:
|
|
771
|
-
reserving canonical provider_accounts identity. Caller expected_provider_account_id alone never reserves
|
|
772
|
-
another merchant account. No ready/create/attach is allowed before actual identity and remaining readiness
|
|
773
|
-
checks succeed. Operator-only secret references must already be tenant bound. Canonical account reservation
|
|
774
|
-
occurs only after credentials and authoritative evidence establish actual account/environment/authority;
|
|
775
|
-
then identity is shared across the same merchant projects.
|
|
818
|
+
- Payments
|
|
819
|
+
x-required-scope: payments:write
|
|
820
|
+
description: Preserve every in-flight attempt and late payment. Never infer funds returned from local cancellation.
|
|
776
821
|
parameters:
|
|
777
822
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
778
823
|
responses:
|
|
779
|
-
'
|
|
780
|
-
description:
|
|
781
|
-
until authoritative validation.
|
|
824
|
+
'202':
|
|
825
|
+
description: Collection closed locally. Late transfers remain visible.
|
|
782
826
|
headers:
|
|
783
827
|
X-Request-Id:
|
|
784
828
|
schema:
|
|
@@ -787,7 +831,7 @@ paths:
|
|
|
787
831
|
content:
|
|
788
832
|
application/json:
|
|
789
833
|
schema:
|
|
790
|
-
$ref: '#/components/schemas/
|
|
834
|
+
$ref: '#/components/schemas/Operation'
|
|
791
835
|
'400':
|
|
792
836
|
$ref: '#/components/responses/BadRequest'
|
|
793
837
|
'401':
|
|
@@ -807,20 +851,41 @@ paths:
|
|
|
807
851
|
content:
|
|
808
852
|
application/json:
|
|
809
853
|
schema:
|
|
810
|
-
$ref: '#/components/schemas/
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
854
|
+
$ref: '#/components/schemas/CancelPayment'
|
|
855
|
+
/payments/{payment_id}/reviews:
|
|
856
|
+
parameters:
|
|
857
|
+
- $ref: '#/components/parameters/payment_id'
|
|
858
|
+
post:
|
|
859
|
+
operationId: reviewPayment
|
|
860
|
+
summary: Record a narrow audited fulfillment decision
|
|
814
861
|
tags:
|
|
815
|
-
-
|
|
816
|
-
x-required-scope:
|
|
817
|
-
description:
|
|
862
|
+
- Verification
|
|
863
|
+
x-required-scope: payments:review
|
|
864
|
+
description: Compare expected_resource_version under lock. accept_unattributed_chain_payment requires
|
|
865
|
+
the ID of one verified exact chain movement and reviewed evidence. accept_late_payment requires independent valid
|
|
866
|
+
evidence, bound order, correct full amount/asset/payee/account and timing-only hold; all other blockers
|
|
867
|
+
fail with 409. It does not reopen collection, manufacture money, clear refunds/disputes, change provenance,
|
|
868
|
+
or reissue an existing grant. keep_on_hold and reject_fulfillment record persistent business restrictions;
|
|
869
|
+
reconciliation must not silently discard them. If an effect is already claimed/applied/unknown, preserve
|
|
870
|
+
that fact and return conflict or review without pretending to undo it. Actor comes from auth; reason and
|
|
871
|
+
prior/new decision are immutable audit data. New command/outbox, if justified, uses the existing order/action
|
|
872
|
+
grant identity.
|
|
818
873
|
parameters:
|
|
819
|
-
- $ref: '#/components/parameters/
|
|
820
|
-
- $ref: '#/components/parameters/Limit'
|
|
874
|
+
- $ref: '#/components/parameters/IdempotencyKey'
|
|
821
875
|
responses:
|
|
876
|
+
'201':
|
|
877
|
+
description: Review audit and resulting decision committed atomically.
|
|
878
|
+
headers:
|
|
879
|
+
X-Request-Id:
|
|
880
|
+
schema:
|
|
881
|
+
type: string
|
|
882
|
+
format: uuid
|
|
883
|
+
content:
|
|
884
|
+
application/json:
|
|
885
|
+
schema:
|
|
886
|
+
$ref: '#/components/schemas/ReviewResult'
|
|
822
887
|
'200':
|
|
823
|
-
description:
|
|
888
|
+
description: Identical previous review result; no repeated grant.
|
|
824
889
|
headers:
|
|
825
890
|
X-Request-Id:
|
|
826
891
|
schema:
|
|
@@ -829,7 +894,7 @@ paths:
|
|
|
829
894
|
content:
|
|
830
895
|
application/json:
|
|
831
896
|
schema:
|
|
832
|
-
$ref: '#/components/schemas/
|
|
897
|
+
$ref: '#/components/schemas/ReviewResult'
|
|
833
898
|
'400':
|
|
834
899
|
$ref: '#/components/responses/BadRequest'
|
|
835
900
|
'401':
|
|
@@ -844,15 +909,21 @@ paths:
|
|
|
844
909
|
$ref: '#/components/responses/RateLimited'
|
|
845
910
|
'503':
|
|
846
911
|
$ref: '#/components/responses/Unavailable'
|
|
847
|
-
|
|
912
|
+
requestBody:
|
|
913
|
+
required: true
|
|
914
|
+
content:
|
|
915
|
+
application/json:
|
|
916
|
+
schema:
|
|
917
|
+
$ref: '#/components/schemas/ReviewRequest'
|
|
918
|
+
/operations/{operation_id}:
|
|
848
919
|
parameters:
|
|
849
|
-
- $ref: '#/components/parameters/
|
|
920
|
+
- $ref: '#/components/parameters/operation_id'
|
|
850
921
|
get:
|
|
851
|
-
operationId:
|
|
852
|
-
summary:
|
|
922
|
+
operationId: getOperation
|
|
923
|
+
summary: Inspect an operation without repeating it
|
|
853
924
|
tags:
|
|
854
|
-
-
|
|
855
|
-
x-required-scope:
|
|
925
|
+
- Operations
|
|
926
|
+
x-required-scope: operations:read
|
|
856
927
|
description: ''
|
|
857
928
|
parameters: []
|
|
858
929
|
responses:
|
|
@@ -866,7 +937,7 @@ paths:
|
|
|
866
937
|
content:
|
|
867
938
|
application/json:
|
|
868
939
|
schema:
|
|
869
|
-
$ref: '#/components/schemas/
|
|
940
|
+
$ref: '#/components/schemas/Operation'
|
|
870
941
|
'400':
|
|
871
942
|
$ref: '#/components/responses/BadRequest'
|
|
872
943
|
'401':
|
|
@@ -881,26 +952,20 @@ paths:
|
|
|
881
952
|
$ref: '#/components/responses/RateLimited'
|
|
882
953
|
'503':
|
|
883
954
|
$ref: '#/components/responses/Unavailable'
|
|
884
|
-
/connections
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
888
|
-
operationId: validateConnection
|
|
889
|
-
summary: Validate actual account/environment and permissions
|
|
955
|
+
/connections:
|
|
956
|
+
get:
|
|
957
|
+
operationId: listConnections
|
|
958
|
+
summary: List chain connections and historical connection records
|
|
890
959
|
tags:
|
|
891
960
|
- Connections
|
|
892
|
-
x-required-scope: connections:
|
|
893
|
-
description:
|
|
894
|
-
PayPal Order/Capture retrieved with these credentials. Verify authoritative payee against expected identity
|
|
895
|
-
and these credentials seller context/default payee or independently established provider authority; a caller
|
|
896
|
-
string or arbitrary readable order is insufficient. Reserve canonical provider account only after verified
|
|
897
|
-
identity, under uniqueness/ownership transaction. No automatic real payment/capture is made for validation.
|
|
898
|
-
Unavailable/insufficient evidence leaves identity_verified=false and no canonical reservation.
|
|
961
|
+
x-required-scope: connections:read
|
|
962
|
+
description: ''
|
|
899
963
|
parameters:
|
|
900
|
-
- $ref: '#/components/parameters/
|
|
964
|
+
- $ref: '#/components/parameters/Cursor'
|
|
965
|
+
- $ref: '#/components/parameters/Limit'
|
|
901
966
|
responses:
|
|
902
|
-
'
|
|
903
|
-
description:
|
|
967
|
+
'200':
|
|
968
|
+
description: Success
|
|
904
969
|
headers:
|
|
905
970
|
X-Request-Id:
|
|
906
971
|
schema:
|
|
@@ -909,7 +974,7 @@ paths:
|
|
|
909
974
|
content:
|
|
910
975
|
application/json:
|
|
911
976
|
schema:
|
|
912
|
-
$ref: '#/components/schemas/
|
|
977
|
+
$ref: '#/components/schemas/ConnectionList'
|
|
913
978
|
'400':
|
|
914
979
|
$ref: '#/components/responses/BadRequest'
|
|
915
980
|
'401':
|
|
@@ -921,31 +986,23 @@ paths:
|
|
|
921
986
|
'409':
|
|
922
987
|
$ref: '#/components/responses/Conflict'
|
|
923
988
|
'429':
|
|
924
|
-
$ref: '#/components/responses/
|
|
989
|
+
$ref: '#/components/responses/RequestBudgetExhausted'
|
|
925
990
|
'503':
|
|
926
991
|
$ref: '#/components/responses/Unavailable'
|
|
927
|
-
|
|
928
|
-
required: true
|
|
929
|
-
content:
|
|
930
|
-
application/json:
|
|
931
|
-
schema:
|
|
932
|
-
$ref: '#/components/schemas/ConnectionValidation'
|
|
933
|
-
/connections/{connection_id}/credentials:
|
|
992
|
+
/connections/{connection_id}:
|
|
934
993
|
parameters:
|
|
935
994
|
- $ref: '#/components/parameters/connection_id'
|
|
936
|
-
|
|
937
|
-
operationId:
|
|
938
|
-
summary:
|
|
995
|
+
get:
|
|
996
|
+
operationId: getConnection
|
|
997
|
+
summary: Get metadata and capabilities, never secrets
|
|
939
998
|
tags:
|
|
940
999
|
- Connections
|
|
941
|
-
x-required-scope: connections:
|
|
942
|
-
description:
|
|
943
|
-
|
|
944
|
-
parameters:
|
|
945
|
-
- $ref: '#/components/parameters/IdempotencyKey'
|
|
1000
|
+
x-required-scope: connections:read
|
|
1001
|
+
description: ''
|
|
1002
|
+
parameters: []
|
|
946
1003
|
responses:
|
|
947
1004
|
'200':
|
|
948
|
-
description:
|
|
1005
|
+
description: Success
|
|
949
1006
|
headers:
|
|
950
1007
|
X-Request-Id:
|
|
951
1008
|
schema:
|
|
@@ -966,15 +1023,9 @@ paths:
|
|
|
966
1023
|
'409':
|
|
967
1024
|
$ref: '#/components/responses/Conflict'
|
|
968
1025
|
'429':
|
|
969
|
-
$ref: '#/components/responses/
|
|
1026
|
+
$ref: '#/components/responses/RequestBudgetExhausted'
|
|
970
1027
|
'503':
|
|
971
1028
|
$ref: '#/components/responses/Unavailable'
|
|
972
|
-
requestBody:
|
|
973
|
-
required: true
|
|
974
|
-
content:
|
|
975
|
-
application/json:
|
|
976
|
-
schema:
|
|
977
|
-
$ref: '#/components/schemas/RotateConnectionCredentials'
|
|
978
1029
|
/connections/{connection_id}/disable:
|
|
979
1030
|
parameters:
|
|
980
1031
|
- $ref: '#/components/parameters/connection_id'
|
|
@@ -1009,8 +1060,6 @@ paths:
|
|
|
1009
1060
|
$ref: '#/components/responses/NotFound'
|
|
1010
1061
|
'409':
|
|
1011
1062
|
$ref: '#/components/responses/Conflict'
|
|
1012
|
-
'429':
|
|
1013
|
-
$ref: '#/components/responses/RateLimited'
|
|
1014
1063
|
'503':
|
|
1015
1064
|
$ref: '#/components/responses/Unavailable'
|
|
1016
1065
|
requestBody:
|
|
@@ -1053,8 +1102,6 @@ paths:
|
|
|
1053
1102
|
$ref: '#/components/responses/NotFound'
|
|
1054
1103
|
'409':
|
|
1055
1104
|
$ref: '#/components/responses/Conflict'
|
|
1056
|
-
'429':
|
|
1057
|
-
$ref: '#/components/responses/RateLimited'
|
|
1058
1105
|
'503':
|
|
1059
1106
|
$ref: '#/components/responses/Unavailable'
|
|
1060
1107
|
requestBody:
|
|
@@ -1097,7 +1144,7 @@ paths:
|
|
|
1097
1144
|
'409':
|
|
1098
1145
|
$ref: '#/components/responses/Conflict'
|
|
1099
1146
|
'429':
|
|
1100
|
-
$ref: '#/components/responses/
|
|
1147
|
+
$ref: '#/components/responses/RequestBudgetExhausted'
|
|
1101
1148
|
'503':
|
|
1102
1149
|
$ref: '#/components/responses/Unavailable'
|
|
1103
1150
|
/webhook-endpoints/{endpoint_id}/rotate-secret:
|
|
@@ -1135,8 +1182,6 @@ paths:
|
|
|
1135
1182
|
$ref: '#/components/responses/NotFound'
|
|
1136
1183
|
'409':
|
|
1137
1184
|
$ref: '#/components/responses/Conflict'
|
|
1138
|
-
'429':
|
|
1139
|
-
$ref: '#/components/responses/RateLimited'
|
|
1140
1185
|
'503':
|
|
1141
1186
|
$ref: '#/components/responses/Unavailable'
|
|
1142
1187
|
requestBody:
|
|
@@ -1145,40 +1190,6 @@ paths:
|
|
|
1145
1190
|
application/json:
|
|
1146
1191
|
schema:
|
|
1147
1192
|
$ref: '#/components/schemas/RotateWebhookSecret'
|
|
1148
|
-
/webhooks/providers/{connection_id}:
|
|
1149
|
-
parameters:
|
|
1150
|
-
- $ref: '#/components/parameters/connection_id'
|
|
1151
|
-
post:
|
|
1152
|
-
operationId: ingestProviderWebhook
|
|
1153
|
-
summary: Receive original provider webhook bytes
|
|
1154
|
-
tags:
|
|
1155
|
-
- Webhooks
|
|
1156
|
-
security: []
|
|
1157
|
-
description: Provider-specific cryptographic authentication is mandatory despite no bearer scheme. Preserve
|
|
1158
|
-
exact raw body; validate signature, canonical account and environment. Stripe-Signature or the PayPal transmission
|
|
1159
|
-
headers are interpreted by the selected adapter. No 0to1Pay Idempotency-Key is required. Return 2xx only
|
|
1160
|
-
after authenticated inbox persistence (including dedup). Do not synchronously fulfill. Never proxy arbitrary
|
|
1161
|
-
certificate URLs.
|
|
1162
|
-
requestBody:
|
|
1163
|
-
required: true
|
|
1164
|
-
description: Schema differs by pinned provider event version. Raw bytes, not parsed/re-serialized JSON,
|
|
1165
|
-
feed signature verification.
|
|
1166
|
-
content:
|
|
1167
|
-
application/json:
|
|
1168
|
-
schema:
|
|
1169
|
-
type: object
|
|
1170
|
-
additionalProperties: true
|
|
1171
|
-
responses:
|
|
1172
|
-
'202':
|
|
1173
|
-
description: Authenticated event persisted or already present; not payment/fulfillment approval.
|
|
1174
|
-
'400':
|
|
1175
|
-
$ref: '#/components/responses/BadRequest'
|
|
1176
|
-
'401':
|
|
1177
|
-
$ref: '#/components/responses/Unauthorized'
|
|
1178
|
-
'403':
|
|
1179
|
-
$ref: '#/components/responses/Forbidden'
|
|
1180
|
-
'503':
|
|
1181
|
-
$ref: '#/components/responses/Unavailable'
|
|
1182
1193
|
/events:
|
|
1183
1194
|
get:
|
|
1184
1195
|
operationId: listEvents
|
|
@@ -1214,7 +1225,7 @@ paths:
|
|
|
1214
1225
|
'409':
|
|
1215
1226
|
$ref: '#/components/responses/Conflict'
|
|
1216
1227
|
'429':
|
|
1217
|
-
$ref: '#/components/responses/
|
|
1228
|
+
$ref: '#/components/responses/RequestBudgetExhausted'
|
|
1218
1229
|
'503':
|
|
1219
1230
|
$ref: '#/components/responses/Unavailable'
|
|
1220
1231
|
/fulfillments/{command_id}:
|
|
@@ -1265,7 +1276,7 @@ paths:
|
|
|
1265
1276
|
x-required-scope: fulfillment:execute
|
|
1266
1277
|
description: Idempotency binds request/claim identity but bypasses generic cached-success replay. Always recheck
|
|
1267
1278
|
claim expiry/revocation, current decision and same grant desired_version. claim validity is time-of-check;
|
|
1268
|
-
|
|
1279
|
+
a chain reorganization can require compensation. Same key cannot create a new lease after expiry.
|
|
1269
1280
|
parameters:
|
|
1270
1281
|
- $ref: '#/components/parameters/IdempotencyKey'
|
|
1271
1282
|
responses:
|
|
@@ -1462,8 +1473,7 @@ components:
|
|
|
1462
1473
|
in: header
|
|
1463
1474
|
required: true
|
|
1464
1475
|
description: Stable per logical caller mutation, scoped to bound merchant/project/environment + operation.
|
|
1465
|
-
Same key with different canonical request -> 409. Claim responses dynamically revalidate validity.
|
|
1466
|
-
required on provider webhook ingress.
|
|
1476
|
+
Same key with different canonical request -> 409. Claim responses dynamically revalidate validity.
|
|
1467
1477
|
schema:
|
|
1468
1478
|
type: string
|
|
1469
1479
|
minLength: 16
|
|
@@ -1506,6 +1516,20 @@ components:
|
|
|
1506
1516
|
schema:
|
|
1507
1517
|
type: string
|
|
1508
1518
|
format: uuid
|
|
1519
|
+
invoice_id:
|
|
1520
|
+
name: invoice_id
|
|
1521
|
+
in: path
|
|
1522
|
+
required: true
|
|
1523
|
+
schema:
|
|
1524
|
+
type: string
|
|
1525
|
+
format: uuid
|
|
1526
|
+
intent_id:
|
|
1527
|
+
name: intent_id
|
|
1528
|
+
in: path
|
|
1529
|
+
required: true
|
|
1530
|
+
schema:
|
|
1531
|
+
type: string
|
|
1532
|
+
format: uuid
|
|
1509
1533
|
connection_id:
|
|
1510
1534
|
name: connection_id
|
|
1511
1535
|
in: path
|
|
@@ -1542,13 +1566,13 @@ components:
|
|
|
1542
1566
|
schema:
|
|
1543
1567
|
$ref: '#/components/schemas/Error'
|
|
1544
1568
|
Unauthorized:
|
|
1545
|
-
description: Missing
|
|
1569
|
+
description: Missing or invalid server credential.
|
|
1546
1570
|
content:
|
|
1547
1571
|
application/json:
|
|
1548
1572
|
schema:
|
|
1549
1573
|
$ref: '#/components/schemas/Error'
|
|
1550
1574
|
Forbidden:
|
|
1551
|
-
description: Scope, environment, account or resource ownership denied.
|
|
1575
|
+
description: Scope, environment, account or resource ownership denied, or an active subscription is required.
|
|
1552
1576
|
content:
|
|
1553
1577
|
application/json:
|
|
1554
1578
|
schema:
|
|
@@ -1576,6 +1600,24 @@ components:
|
|
|
1576
1600
|
application/json:
|
|
1577
1601
|
schema:
|
|
1578
1602
|
$ref: '#/components/schemas/Error'
|
|
1603
|
+
BillingForbidden:
|
|
1604
|
+
description: BILLING_KEY_REQUIRED for a non-billing credential or SUBSCRIPTION_REQUIRED when key issuance requires an active paid period.
|
|
1605
|
+
content:
|
|
1606
|
+
application/json:
|
|
1607
|
+
schema:
|
|
1608
|
+
$ref: '#/components/schemas/Error'
|
|
1609
|
+
BillingInvoiceConflict:
|
|
1610
|
+
description: Idempotency payload mismatch, another pending or reconciling invoice (BILLING_INVOICE_IN_PROGRESS), an already scheduled renewal (BILLING_RENEWAL_SCHEDULED), or unavailable recipient capacity.
|
|
1611
|
+
content:
|
|
1612
|
+
application/json:
|
|
1613
|
+
schema:
|
|
1614
|
+
$ref: '#/components/schemas/Error'
|
|
1615
|
+
RequestBudgetExhausted:
|
|
1616
|
+
description: API_REQUEST_LIMIT_REACHED. The current request budget is exhausted.
|
|
1617
|
+
content:
|
|
1618
|
+
application/json:
|
|
1619
|
+
schema:
|
|
1620
|
+
$ref: '#/components/schemas/Error'
|
|
1579
1621
|
Unavailable:
|
|
1580
1622
|
description: Required service unavailable. An external mutation may still have executed; retain/poll operation
|
|
1581
1623
|
ID instead of creating a new payment.
|
|
@@ -1597,7 +1639,7 @@ components:
|
|
|
1597
1639
|
pattern: '^0x[0-9a-fA-F]{64}$'
|
|
1598
1640
|
ChainSelectorId:
|
|
1599
1641
|
type: integer
|
|
1600
|
-
enum: [1, 999, 8453, 42161,
|
|
1642
|
+
enum: [1, 999, 8453, 42161, 31337, 31338, 31339, 31340, 900001, 900002, 728126428, 900003]
|
|
1601
1643
|
description: EVM or TRON chain ID, or a local or Solana selector. Use network_id for the network reference.
|
|
1602
1644
|
ChainNetworkId:
|
|
1603
1645
|
type: string
|
|
@@ -1617,7 +1659,7 @@ components:
|
|
|
1617
1659
|
ChainAssetRepresentation:
|
|
1618
1660
|
type: string
|
|
1619
1661
|
enum: [native, usdt0, standard_bridge, fixture]
|
|
1620
|
-
description: Token deployment type. USDT0
|
|
1662
|
+
description: Token deployment type. Historical quotes can include USDT0 or a Standard Bridge token. New live quotes use native tokens.
|
|
1621
1663
|
ChainAddress:
|
|
1622
1664
|
oneOf:
|
|
1623
1665
|
- $ref: '#/components/schemas/EvmAddress'
|
|
@@ -1653,7 +1695,7 @@ components:
|
|
|
1653
1695
|
starts_at_epoch:
|
|
1654
1696
|
type: integer
|
|
1655
1697
|
minimum: 1
|
|
1656
|
-
description: Earliest eligible
|
|
1698
|
+
description: Earliest eligible transfer time, as a UTC Unix timestamp in seconds.
|
|
1657
1699
|
ChainAssets:
|
|
1658
1700
|
type: object
|
|
1659
1701
|
additionalProperties: false
|
|
@@ -1661,7 +1703,7 @@ components:
|
|
|
1661
1703
|
properties:
|
|
1662
1704
|
data:
|
|
1663
1705
|
type: array
|
|
1664
|
-
maxItems:
|
|
1706
|
+
maxItems: 11
|
|
1665
1707
|
items:
|
|
1666
1708
|
type: object
|
|
1667
1709
|
additionalProperties: false
|
|
@@ -1759,7 +1801,7 @@ components:
|
|
|
1759
1801
|
properties:
|
|
1760
1802
|
asset:
|
|
1761
1803
|
type: string
|
|
1762
|
-
description:
|
|
1804
|
+
description: A stablecoin denomination or exact registered chain asset. Historical responses may contain fiat prices.
|
|
1763
1805
|
minLength: 1
|
|
1764
1806
|
maxLength: 160
|
|
1765
1807
|
amount_atomic:
|
|
@@ -1775,8 +1817,7 @@ components:
|
|
|
1775
1817
|
- amount_atomic
|
|
1776
1818
|
- scale
|
|
1777
1819
|
additionalProperties: false
|
|
1778
|
-
description: The asset registry
|
|
1779
|
-
not net payout. R1 rejects unconfigured assets.
|
|
1820
|
+
description: The asset registry confirms scale. USDC 10.00 is amount_atomic="10000000", scale=6.
|
|
1780
1821
|
NonNegativeMoney:
|
|
1781
1822
|
type: object
|
|
1782
1823
|
properties:
|
|
@@ -1874,7 +1915,14 @@ components:
|
|
|
1874
1915
|
minLength: 1
|
|
1875
1916
|
maxLength: 256
|
|
1876
1917
|
price:
|
|
1877
|
-
|
|
1918
|
+
allOf:
|
|
1919
|
+
- $ref: '#/components/schemas/Money'
|
|
1920
|
+
- type: object
|
|
1921
|
+
properties:
|
|
1922
|
+
asset:
|
|
1923
|
+
enum: ['stable:USDC', 'stable:USDT']
|
|
1924
|
+
scale:
|
|
1925
|
+
const: 6
|
|
1878
1926
|
allowed_connections:
|
|
1879
1927
|
type: array
|
|
1880
1928
|
items:
|
|
@@ -2189,7 +2237,7 @@ components:
|
|
|
2189
2237
|
format: uuid
|
|
2190
2238
|
presentment_asset:
|
|
2191
2239
|
type: string
|
|
2192
|
-
description:
|
|
2240
|
+
description: Use the payment’s stablecoin denomination or the exact registered asset for the selected network.
|
|
2193
2241
|
minLength: 1
|
|
2194
2242
|
maxLength: 160
|
|
2195
2243
|
expires_in_seconds:
|
|
@@ -2266,126 +2314,29 @@ components:
|
|
|
2266
2314
|
- checkout_session
|
|
2267
2315
|
- payment_intent
|
|
2268
2316
|
- paypal_order
|
|
2269
|
-
- paypal_capture
|
|
2270
|
-
- chain_transaction
|
|
2271
|
-
id:
|
|
2272
|
-
type: string
|
|
2273
|
-
minLength: 1
|
|
2274
|
-
maxLength: 256
|
|
2275
|
-
required:
|
|
2276
|
-
- type
|
|
2277
|
-
- id
|
|
2278
|
-
additionalProperties: false
|
|
2279
|
-
CreateAttempt:
|
|
2280
|
-
type: object
|
|
2281
|
-
properties:
|
|
2282
|
-
connection_id:
|
|
2283
|
-
type: string
|
|
2284
|
-
format: uuid
|
|
2285
|
-
quote_id:
|
|
2286
|
-
type: string
|
|
2287
|
-
format: uuid
|
|
2288
|
-
return_url:
|
|
2289
|
-
description: Required for Stripe and PayPal. Omit for an EVM transfer instruction.
|
|
2290
|
-
type: string
|
|
2291
|
-
format: uri
|
|
2292
|
-
maxLength: 2048
|
|
2293
|
-
cancel_url:
|
|
2294
|
-
type: string
|
|
2295
|
-
format: uri
|
|
2296
|
-
maxLength: 2048
|
|
2297
|
-
required:
|
|
2298
|
-
- connection_id
|
|
2299
|
-
- quote_id
|
|
2300
|
-
additionalProperties: false
|
|
2301
|
-
AttachExternalAttempt:
|
|
2302
|
-
type: object
|
|
2303
|
-
properties:
|
|
2304
|
-
connection_id:
|
|
2305
|
-
type: string
|
|
2306
|
-
format: uuid
|
|
2307
|
-
quote_id:
|
|
2308
|
-
type: string
|
|
2309
|
-
format: uuid
|
|
2310
|
-
resource:
|
|
2311
|
-
$ref: '#/components/schemas/ExternalResource'
|
|
2312
|
-
binding_ref:
|
|
2313
|
-
type: string
|
|
2314
|
-
description: Merchant backend creation-operation reference; never a standalone proof.
|
|
2315
|
-
minLength: 1
|
|
2316
|
-
maxLength: 256
|
|
2317
|
-
import_mode:
|
|
2318
|
-
type: string
|
|
2319
|
-
description: Historical imports never emit a grant in R1.
|
|
2320
|
-
enum:
|
|
2321
|
-
- current
|
|
2322
|
-
- historical_observe_only
|
|
2323
|
-
required:
|
|
2324
|
-
- connection_id
|
|
2325
|
-
- quote_id
|
|
2326
|
-
- resource
|
|
2327
|
-
- binding_ref
|
|
2328
|
-
- import_mode
|
|
2329
|
-
additionalProperties: false
|
|
2330
|
-
RedirectAction:
|
|
2331
|
-
type: object
|
|
2332
|
-
properties:
|
|
2333
|
-
type:
|
|
2334
|
-
const: redirect
|
|
2335
|
-
url:
|
|
2336
|
-
type: string
|
|
2337
|
-
format: uri
|
|
2338
|
-
expires_at:
|
|
2339
|
-
anyOf:
|
|
2340
|
-
- type: string
|
|
2341
|
-
format: date-time
|
|
2342
|
-
- type: 'null'
|
|
2343
|
-
required:
|
|
2344
|
-
- type
|
|
2345
|
-
- url
|
|
2346
|
-
- expires_at
|
|
2347
|
-
additionalProperties: false
|
|
2348
|
-
ProviderClientAction:
|
|
2349
|
-
type: object
|
|
2350
|
-
properties:
|
|
2351
|
-
type:
|
|
2352
|
-
const: provider_client
|
|
2353
|
-
provider:
|
|
2354
|
-
type: string
|
|
2355
|
-
enum:
|
|
2356
|
-
- stripe
|
|
2357
|
-
- paypal
|
|
2358
|
-
client_capability:
|
|
2359
|
-
type: string
|
|
2360
|
-
description: Scoped provider client secret. Never a server API credential.
|
|
2361
|
-
writeOnly: false
|
|
2362
|
-
expires_at:
|
|
2363
|
-
anyOf:
|
|
2364
|
-
- type: string
|
|
2365
|
-
format: date-time
|
|
2366
|
-
- type: 'null'
|
|
2317
|
+
- paypal_capture
|
|
2318
|
+
- chain_transaction
|
|
2319
|
+
id:
|
|
2320
|
+
type: string
|
|
2321
|
+
minLength: 1
|
|
2322
|
+
maxLength: 256
|
|
2367
2323
|
required:
|
|
2368
2324
|
- type
|
|
2369
|
-
-
|
|
2370
|
-
- client_capability
|
|
2371
|
-
- expires_at
|
|
2325
|
+
- id
|
|
2372
2326
|
additionalProperties: false
|
|
2373
|
-
|
|
2327
|
+
CreateAttempt:
|
|
2374
2328
|
type: object
|
|
2375
2329
|
properties:
|
|
2376
|
-
|
|
2377
|
-
const: wallet_request
|
|
2378
|
-
chain_id:
|
|
2330
|
+
connection_id:
|
|
2379
2331
|
type: string
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2332
|
+
format: uuid
|
|
2333
|
+
quote_id:
|
|
2334
|
+
type: string
|
|
2335
|
+
format: uuid
|
|
2383
2336
|
required:
|
|
2384
|
-
-
|
|
2385
|
-
-
|
|
2386
|
-
- request
|
|
2337
|
+
- connection_id
|
|
2338
|
+
- quote_id
|
|
2387
2339
|
additionalProperties: false
|
|
2388
|
-
description: Reserved for Release 2; R1 adapters must not emit.
|
|
2389
2340
|
TransferInstructionAction:
|
|
2390
2341
|
type: object
|
|
2391
2342
|
properties:
|
|
@@ -2413,7 +2364,7 @@ components:
|
|
|
2413
2364
|
starts_at_epoch:
|
|
2414
2365
|
type: integer
|
|
2415
2366
|
minimum: 1
|
|
2416
|
-
description: Earliest eligible
|
|
2367
|
+
description: Earliest eligible transfer time, as a UTC Unix timestamp in seconds.
|
|
2417
2368
|
expires_at:
|
|
2418
2369
|
type: string
|
|
2419
2370
|
format: date-time
|
|
@@ -2447,17 +2398,11 @@ components:
|
|
|
2447
2398
|
additionalProperties: false
|
|
2448
2399
|
NextAction:
|
|
2449
2400
|
oneOf:
|
|
2450
|
-
- $ref: '#/components/schemas/RedirectAction'
|
|
2451
|
-
- $ref: '#/components/schemas/ProviderClientAction'
|
|
2452
|
-
- $ref: '#/components/schemas/WalletRequestAction'
|
|
2453
2401
|
- $ref: '#/components/schemas/TransferInstructionAction'
|
|
2454
2402
|
- $ref: '#/components/schemas/NoAction'
|
|
2455
2403
|
discriminator:
|
|
2456
2404
|
propertyName: type
|
|
2457
2405
|
mapping:
|
|
2458
|
-
redirect: '#/components/schemas/RedirectAction'
|
|
2459
|
-
provider_client: '#/components/schemas/ProviderClientAction'
|
|
2460
|
-
wallet_request: '#/components/schemas/WalletRequestAction'
|
|
2461
2406
|
transfer_instruction: '#/components/schemas/TransferInstructionAction'
|
|
2462
2407
|
none: '#/components/schemas/NoAction'
|
|
2463
2408
|
Binding:
|
|
@@ -2575,8 +2520,8 @@ components:
|
|
|
2575
2520
|
- updated_at
|
|
2576
2521
|
- resource_version
|
|
2577
2522
|
additionalProperties: false
|
|
2578
|
-
description:
|
|
2579
|
-
|
|
2523
|
+
description: A transfer instruction identifies the registered asset and assigned recipient for an unfinished quote.
|
|
2524
|
+
The Worker verifies funds from finalized chain evidence. Historical fiat attempts return no action.
|
|
2580
2525
|
allOf:
|
|
2581
2526
|
- if:
|
|
2582
2527
|
properties:
|
|
@@ -2679,18 +2624,233 @@ components:
|
|
|
2679
2624
|
- attempt
|
|
2680
2625
|
- operation
|
|
2681
2626
|
additionalProperties: false
|
|
2682
|
-
|
|
2627
|
+
BillingPlanId:
|
|
2628
|
+
type: string
|
|
2629
|
+
enum: [sandbox, starter, growth, scale]
|
|
2630
|
+
PaidBillingPlanId:
|
|
2631
|
+
type: string
|
|
2632
|
+
enum: [starter, growth, scale]
|
|
2633
|
+
BillingPrice:
|
|
2683
2634
|
type: object
|
|
2684
2635
|
properties:
|
|
2685
|
-
|
|
2636
|
+
asset:
|
|
2637
|
+
const: stable:USDC
|
|
2638
|
+
amount_atomic:
|
|
2639
|
+
type: string
|
|
2640
|
+
pattern: '^(0|[1-9][0-9]{0,19})$'
|
|
2641
|
+
scale:
|
|
2642
|
+
const: 6
|
|
2643
|
+
required: [asset, amount_atomic, scale]
|
|
2644
|
+
additionalProperties: false
|
|
2645
|
+
BillingPlan:
|
|
2646
|
+
type: object
|
|
2647
|
+
properties:
|
|
2648
|
+
plan_id:
|
|
2649
|
+
$ref: '#/components/schemas/BillingPlanId'
|
|
2650
|
+
environment:
|
|
2651
|
+
$ref: '#/components/schemas/Environment'
|
|
2652
|
+
price:
|
|
2653
|
+
$ref: '#/components/schemas/BillingPrice'
|
|
2654
|
+
request_limit:
|
|
2686
2655
|
type: integer
|
|
2687
2656
|
minimum: 1
|
|
2688
|
-
|
|
2689
|
-
|
|
2690
|
-
|
|
2657
|
+
period_days:
|
|
2658
|
+
type: [integer, 'null']
|
|
2659
|
+
enum: [30, null]
|
|
2660
|
+
description: The free test plan uses UTC calendar months.
|
|
2661
|
+
required: [plan_id, environment, price, request_limit, period_days]
|
|
2662
|
+
additionalProperties: false
|
|
2663
|
+
BillingPlans:
|
|
2664
|
+
type: object
|
|
2665
|
+
properties:
|
|
2666
|
+
plans:
|
|
2667
|
+
type: array
|
|
2668
|
+
items:
|
|
2669
|
+
$ref: '#/components/schemas/BillingPlan'
|
|
2670
|
+
collection_options:
|
|
2671
|
+
type: array
|
|
2672
|
+
description: Currently offered USDC networks. Existing servers may omit this field.
|
|
2673
|
+
items:
|
|
2674
|
+
$ref: '#/components/schemas/BillingCollectionOption'
|
|
2675
|
+
required: [plans]
|
|
2676
|
+
additionalProperties: false
|
|
2677
|
+
BillingCollectionOption:
|
|
2678
|
+
type: object
|
|
2679
|
+
properties:
|
|
2680
|
+
network_id:
|
|
2681
|
+
$ref: '#/components/schemas/ChainNetworkId'
|
|
2682
|
+
network_name:
|
|
2683
|
+
type: string
|
|
2684
|
+
family:
|
|
2685
|
+
type: string
|
|
2686
|
+
enum: [evm, solana]
|
|
2687
|
+
is_default:
|
|
2688
|
+
type: boolean
|
|
2689
|
+
required: [network_id, network_name, family, is_default]
|
|
2690
|
+
additionalProperties: false
|
|
2691
|
+
BillingSubscription:
|
|
2692
|
+
type: object
|
|
2693
|
+
properties:
|
|
2694
|
+
environment:
|
|
2695
|
+
$ref: '#/components/schemas/Environment'
|
|
2696
|
+
status:
|
|
2697
|
+
type: string
|
|
2698
|
+
enum: [active, inactive]
|
|
2699
|
+
plan_id:
|
|
2700
|
+
anyOf:
|
|
2701
|
+
- $ref: '#/components/schemas/BillingPlanId'
|
|
2702
|
+
- type: 'null'
|
|
2703
|
+
period_start:
|
|
2704
|
+
type: [string, 'null']
|
|
2705
|
+
format: date-time
|
|
2706
|
+
period_end:
|
|
2707
|
+
type: [string, 'null']
|
|
2708
|
+
format: date-time
|
|
2709
|
+
request_limit:
|
|
2710
|
+
type: integer
|
|
2711
|
+
minimum: 0
|
|
2712
|
+
requests_used:
|
|
2713
|
+
type: integer
|
|
2714
|
+
minimum: 0
|
|
2715
|
+
required: [environment, status, plan_id, period_start, period_end, request_limit, requests_used]
|
|
2716
|
+
additionalProperties: false
|
|
2717
|
+
CreateBillingInvoice:
|
|
2718
|
+
type: object
|
|
2719
|
+
properties:
|
|
2720
|
+
plan_id:
|
|
2721
|
+
$ref: '#/components/schemas/PaidBillingPlanId'
|
|
2722
|
+
payer_address:
|
|
2723
|
+
$ref: '#/components/schemas/ChainAddress'
|
|
2724
|
+
checkout_session_ref:
|
|
2725
|
+
$ref: '#/components/schemas/ChainCheckoutSessionRef'
|
|
2726
|
+
network_id:
|
|
2727
|
+
$ref: '#/components/schemas/ChainNetworkId'
|
|
2728
|
+
description: USDC collection network offered in BillingPlans. The deployment's default connection is used when omitted.
|
|
2729
|
+
required: [plan_id, payer_address, checkout_session_ref]
|
|
2730
|
+
additionalProperties: false
|
|
2731
|
+
BillingInvoice:
|
|
2732
|
+
type: object
|
|
2733
|
+
properties:
|
|
2734
|
+
invoice_id:
|
|
2735
|
+
type: string
|
|
2736
|
+
format: uuid
|
|
2737
|
+
plan_id:
|
|
2738
|
+
$ref: '#/components/schemas/PaidBillingPlanId'
|
|
2739
|
+
environment:
|
|
2740
|
+
$ref: '#/components/schemas/Environment'
|
|
2741
|
+
status:
|
|
2742
|
+
type: string
|
|
2743
|
+
enum: [pending, reconciling, active, scheduled, expired, revoked]
|
|
2744
|
+
description: Reconciling means a wallet-authorized invoice still awaits final reconciliation after transaction submission or quote expiry. Resume that invoice and wait before paying another one.
|
|
2745
|
+
quote:
|
|
2746
|
+
$ref: '#/components/schemas/Quote'
|
|
2747
|
+
intent:
|
|
2748
|
+
$ref: '#/components/schemas/ChainIntent'
|
|
2749
|
+
period_start:
|
|
2750
|
+
type: [string, 'null']
|
|
2751
|
+
format: date-time
|
|
2752
|
+
period_end:
|
|
2753
|
+
type: [string, 'null']
|
|
2754
|
+
format: date-time
|
|
2755
|
+
required: [invoice_id, plan_id, environment, status, quote, intent, period_start, period_end]
|
|
2756
|
+
additionalProperties: false
|
|
2757
|
+
BillingInvoiceList:
|
|
2758
|
+
type: object
|
|
2759
|
+
properties:
|
|
2760
|
+
invoices:
|
|
2761
|
+
type: array
|
|
2762
|
+
maxItems: 20
|
|
2763
|
+
items:
|
|
2764
|
+
$ref: '#/components/schemas/BillingInvoice'
|
|
2765
|
+
required: [invoices]
|
|
2766
|
+
additionalProperties: false
|
|
2767
|
+
BillingKeyRequest:
|
|
2768
|
+
type: object
|
|
2769
|
+
additionalProperties: false
|
|
2770
|
+
BillingKey:
|
|
2771
|
+
type: object
|
|
2772
|
+
properties:
|
|
2773
|
+
key_id:
|
|
2774
|
+
type: string
|
|
2775
|
+
format: uuid
|
|
2776
|
+
token:
|
|
2777
|
+
type: string
|
|
2778
|
+
pattern: '^sp_(test|live)_[0-9a-f]{16}\.[A-Za-z0-9_-]{43}$'
|
|
2779
|
+
environment:
|
|
2780
|
+
$ref: '#/components/schemas/Environment'
|
|
2781
|
+
required: [key_id, token, environment]
|
|
2782
|
+
additionalProperties: false
|
|
2783
|
+
ChainCheckoutSessionRef:
|
|
2784
|
+
type: string
|
|
2785
|
+
pattern: '^[A-Za-z0-9_-]{16,128}$'
|
|
2786
|
+
description: Stable opaque reference assigned by the merchant server to the authenticated buyer checkout.
|
|
2787
|
+
ChainIntentSignature:
|
|
2788
|
+
type: string
|
|
2789
|
+
pattern: '^0x(?:[0-9A-Fa-f]{128}|[0-9A-Fa-f]{130})$'
|
|
2790
|
+
description: Use a 0x-prefixed wallet signature. Encode raw Solana Ed25519 signature bytes as hex.
|
|
2791
|
+
ChainIntentTransactionId:
|
|
2792
|
+
type: string
|
|
2793
|
+
pattern: '^(0x[0-9A-Fa-f]{64}|[0-9A-Fa-f]{64}|[1-9A-HJ-NP-Za-km-z]{64,88})$'
|
|
2794
|
+
description: EVM and TRON IDs are canonicalized to lowercase 0x-prefixed hex. TRON accepts bare hex. Solana signatures remain case-sensitive base58.
|
|
2795
|
+
CreateChainIntent:
|
|
2796
|
+
type: object
|
|
2797
|
+
properties:
|
|
2798
|
+
checkout_session_ref:
|
|
2799
|
+
$ref: '#/components/schemas/ChainCheckoutSessionRef'
|
|
2800
|
+
payer_address:
|
|
2801
|
+
$ref: '#/components/schemas/ChainAddress'
|
|
2802
|
+
required: [checkout_session_ref, payer_address]
|
|
2803
|
+
additionalProperties: false
|
|
2804
|
+
AuthorizeChainIntent:
|
|
2805
|
+
type: object
|
|
2806
|
+
properties:
|
|
2807
|
+
checkout_session_ref:
|
|
2808
|
+
$ref: '#/components/schemas/ChainCheckoutSessionRef'
|
|
2809
|
+
signature:
|
|
2810
|
+
$ref: '#/components/schemas/ChainIntentSignature'
|
|
2811
|
+
required: [checkout_session_ref, signature]
|
|
2812
|
+
additionalProperties: false
|
|
2813
|
+
SubmitChainIntent:
|
|
2814
|
+
type: object
|
|
2815
|
+
properties:
|
|
2816
|
+
checkout_session_ref:
|
|
2817
|
+
$ref: '#/components/schemas/ChainCheckoutSessionRef'
|
|
2818
|
+
transaction_id:
|
|
2819
|
+
$ref: '#/components/schemas/ChainIntentTransactionId'
|
|
2820
|
+
signature:
|
|
2821
|
+
$ref: '#/components/schemas/ChainIntentSignature'
|
|
2822
|
+
required: [checkout_session_ref, transaction_id, signature]
|
|
2823
|
+
additionalProperties: false
|
|
2824
|
+
ChainIntent:
|
|
2825
|
+
type: object
|
|
2826
|
+
properties:
|
|
2827
|
+
intent_id:
|
|
2828
|
+
type: string
|
|
2829
|
+
format: uuid
|
|
2830
|
+
quote_id:
|
|
2831
|
+
type: string
|
|
2832
|
+
format: uuid
|
|
2833
|
+
family:
|
|
2834
|
+
$ref: '#/components/schemas/ChainFamily'
|
|
2835
|
+
payer_address:
|
|
2836
|
+
$ref: '#/components/schemas/ChainAddress'
|
|
2837
|
+
expires_at:
|
|
2838
|
+
type: string
|
|
2839
|
+
format: date-time
|
|
2840
|
+
signing_message:
|
|
2841
|
+
type: string
|
|
2842
|
+
minLength: 1
|
|
2843
|
+
maxLength: 2048
|
|
2844
|
+
description: Exact UTF-8 message to sign for this checkout and payer. Preserve line endings and spacing.
|
|
2845
|
+
status:
|
|
2846
|
+
type: string
|
|
2847
|
+
enum: [pending, authorized, submitted]
|
|
2848
|
+
transaction_id:
|
|
2849
|
+
anyOf:
|
|
2850
|
+
- $ref: '#/components/schemas/ChainIntentTransactionId'
|
|
2851
|
+
- type: 'null'
|
|
2852
|
+
required: [intent_id, quote_id, family, payer_address, expires_at, signing_message, status, transaction_id]
|
|
2691
2853
|
additionalProperties: false
|
|
2692
|
-
description: Server-only action; the stored provider order and immutable quote determine capture amount/payee.
|
|
2693
|
-
Browser approval callback is only a hint. No arbitrary resource ID or amount is accepted.
|
|
2694
2854
|
VerifyRequest:
|
|
2695
2855
|
type: object
|
|
2696
2856
|
properties:
|
|
@@ -2722,20 +2882,7 @@ components:
|
|
|
2722
2882
|
- expected_resource_version
|
|
2723
2883
|
- reason
|
|
2724
2884
|
additionalProperties: false
|
|
2725
|
-
description: Stops new attempts immediately.
|
|
2726
|
-
erase money already sent or guarantee in-flight remote payment cancellation.
|
|
2727
|
-
RecoverOperation:
|
|
2728
|
-
type: object
|
|
2729
|
-
properties:
|
|
2730
|
-
reason:
|
|
2731
|
-
type: string
|
|
2732
|
-
minLength: 1
|
|
2733
|
-
maxLength: 500
|
|
2734
|
-
required:
|
|
2735
|
-
- reason
|
|
2736
|
-
additionalProperties: false
|
|
2737
|
-
description: Queries/retries the same logical provider operation only when supported idempotency rules prove
|
|
2738
|
-
that safe. Never issues a new logical payment after an ambiguous result.
|
|
2885
|
+
description: Stops new transfer attempts immediately. Previously sent or in-flight transfers can still settle on-chain.
|
|
2739
2886
|
ReviewRequest:
|
|
2740
2887
|
type: object
|
|
2741
2888
|
properties:
|
|
@@ -2747,8 +2894,16 @@ components:
|
|
|
2747
2894
|
type: string
|
|
2748
2895
|
enum:
|
|
2749
2896
|
- accept_late_payment
|
|
2897
|
+
- accept_unattributed_chain_payment
|
|
2750
2898
|
- keep_on_hold
|
|
2751
2899
|
- reject_fulfillment
|
|
2900
|
+
movement_id:
|
|
2901
|
+
type: string
|
|
2902
|
+
format: uuid
|
|
2903
|
+
description: Verified on-chain receipt to apply when accepting an unattributed payment.
|
|
2904
|
+
allow_late_payment:
|
|
2905
|
+
type: boolean
|
|
2906
|
+
description: Explicit operator approval for the specified movement after expiry.
|
|
2752
2907
|
reason:
|
|
2753
2908
|
type: string
|
|
2754
2909
|
description: Required human/business justification; not a replacement payment proof.
|
|
@@ -2759,9 +2914,22 @@ components:
|
|
|
2759
2914
|
- action
|
|
2760
2915
|
- reason
|
|
2761
2916
|
additionalProperties: false
|
|
2917
|
+
allOf:
|
|
2918
|
+
- if:
|
|
2919
|
+
properties:
|
|
2920
|
+
action:
|
|
2921
|
+
const: accept_unattributed_chain_payment
|
|
2922
|
+
then:
|
|
2923
|
+
required: [movement_id]
|
|
2924
|
+
else:
|
|
2925
|
+
not:
|
|
2926
|
+
anyOf:
|
|
2927
|
+
- required: [movement_id]
|
|
2928
|
+
- required: [allow_late_payment]
|
|
2762
2929
|
description: Narrow audited business exception. accept_late_payment only accepts independently valid, bound,
|
|
2763
|
-
correctly funded evidence held for timing
|
|
2764
|
-
|
|
2930
|
+
correctly funded evidence held for timing. accept_unattributed_chain_payment can override missing wallet
|
|
2931
|
+
approval only for the named verified movement. Neither action overrides amount, payee, account, asset,
|
|
2932
|
+
evidence integrity or duplicate allocation.
|
|
2765
2933
|
ReviewResult:
|
|
2766
2934
|
type: object
|
|
2767
2935
|
properties:
|
|
@@ -2775,6 +2943,7 @@ components:
|
|
|
2775
2943
|
type: string
|
|
2776
2944
|
enum:
|
|
2777
2945
|
- accept_late_payment
|
|
2946
|
+
- accept_unattributed_chain_payment
|
|
2778
2947
|
- keep_on_hold
|
|
2779
2948
|
- reject_fulfillment
|
|
2780
2949
|
previous_decision_id:
|
|
@@ -2839,117 +3008,6 @@ components:
|
|
|
2839
3008
|
- enforce_expiry
|
|
2840
3009
|
- binding_methods
|
|
2841
3010
|
additionalProperties: false
|
|
2842
|
-
StripeCredentials:
|
|
2843
|
-
type: object
|
|
2844
|
-
properties:
|
|
2845
|
-
kind:
|
|
2846
|
-
const: stripe_secret
|
|
2847
|
-
restricted_api_key:
|
|
2848
|
-
type: string
|
|
2849
|
-
description: Validated and encrypted before persistence; never logged.
|
|
2850
|
-
minLength: 1
|
|
2851
|
-
maxLength: 4096
|
|
2852
|
-
writeOnly: true
|
|
2853
|
-
webhook_signing_secret:
|
|
2854
|
-
type: string
|
|
2855
|
-
description: For the exact registered 0to1Pay ingress endpoint. May be omitted only at unvalidated bootstrap;
|
|
2856
|
-
ready validation requires it.
|
|
2857
|
-
minLength: 1
|
|
2858
|
-
maxLength: 4096
|
|
2859
|
-
writeOnly: true
|
|
2860
|
-
required:
|
|
2861
|
-
- kind
|
|
2862
|
-
- restricted_api_key
|
|
2863
|
-
additionalProperties: false
|
|
2864
|
-
PayPalCredentials:
|
|
2865
|
-
type: object
|
|
2866
|
-
properties:
|
|
2867
|
-
kind:
|
|
2868
|
-
const: paypal_secret
|
|
2869
|
-
client_id:
|
|
2870
|
-
type: string
|
|
2871
|
-
description: PayPal application client ID; returned Connection omits it.
|
|
2872
|
-
minLength: 1
|
|
2873
|
-
maxLength: 4096
|
|
2874
|
-
writeOnly: true
|
|
2875
|
-
client_secret:
|
|
2876
|
-
type: string
|
|
2877
|
-
description: Encrypted before persistence.
|
|
2878
|
-
minLength: 1
|
|
2879
|
-
maxLength: 4096
|
|
2880
|
-
writeOnly: true
|
|
2881
|
-
webhook_id:
|
|
2882
|
-
type: string
|
|
2883
|
-
description: Registered PayPal webhook ID. Not a signing key; may be omitted only at unvalidated bootstrap.
|
|
2884
|
-
Ready validation requires it.
|
|
2885
|
-
minLength: 1
|
|
2886
|
-
maxLength: 4096
|
|
2887
|
-
writeOnly: true
|
|
2888
|
-
required:
|
|
2889
|
-
- kind
|
|
2890
|
-
- client_id
|
|
2891
|
-
- client_secret
|
|
2892
|
-
additionalProperties: false
|
|
2893
|
-
SecretReference:
|
|
2894
|
-
type: object
|
|
2895
|
-
properties:
|
|
2896
|
-
kind:
|
|
2897
|
-
const: preprovisioned_secret_ref
|
|
2898
|
-
credential_ref:
|
|
2899
|
-
type: string
|
|
2900
|
-
description: Operator-only preallocated reference bound to this tenant/project/environment. No arbitrary
|
|
2901
|
-
filesystem or URL lookup.
|
|
2902
|
-
minLength: 1
|
|
2903
|
-
maxLength: 256
|
|
2904
|
-
required:
|
|
2905
|
-
- kind
|
|
2906
|
-
- credential_ref
|
|
2907
|
-
additionalProperties: false
|
|
2908
|
-
CreateConnection:
|
|
2909
|
-
type: object
|
|
2910
|
-
properties:
|
|
2911
|
-
provider:
|
|
2912
|
-
type: string
|
|
2913
|
-
enum:
|
|
2914
|
-
- stripe
|
|
2915
|
-
- paypal
|
|
2916
|
-
display_name:
|
|
2917
|
-
type: string
|
|
2918
|
-
minLength: 1
|
|
2919
|
-
maxLength: 128
|
|
2920
|
-
mode:
|
|
2921
|
-
type: string
|
|
2922
|
-
enum:
|
|
2923
|
-
- observe
|
|
2924
|
-
- initiate
|
|
2925
|
-
expected_provider_account_id:
|
|
2926
|
-
type: string
|
|
2927
|
-
minLength: 1
|
|
2928
|
-
maxLength: 256
|
|
2929
|
-
credentials:
|
|
2930
|
-
oneOf:
|
|
2931
|
-
- $ref: '#/components/schemas/StripeCredentials'
|
|
2932
|
-
- $ref: '#/components/schemas/PayPalCredentials'
|
|
2933
|
-
- $ref: '#/components/schemas/SecretReference'
|
|
2934
|
-
writeOnly: true
|
|
2935
|
-
return_origins:
|
|
2936
|
-
type: array
|
|
2937
|
-
items:
|
|
2938
|
-
type: string
|
|
2939
|
-
format: uri
|
|
2940
|
-
minItems: 1
|
|
2941
|
-
maxItems: 32
|
|
2942
|
-
required:
|
|
2943
|
-
- provider
|
|
2944
|
-
- display_name
|
|
2945
|
-
- mode
|
|
2946
|
-
- expected_provider_account_id
|
|
2947
|
-
- credentials
|
|
2948
|
-
- return_origins
|
|
2949
|
-
additionalProperties: false
|
|
2950
|
-
description: Provider/credential kind must agree. Auth key determines tenant/environment. Validation compares
|
|
2951
|
-
actual resource/account/env against expected identity. Preprovisioned reference requires operator permission;
|
|
2952
|
-
regular tenants supply writeOnly credentials.
|
|
2953
3011
|
Connection:
|
|
2954
3012
|
type: object
|
|
2955
3013
|
properties:
|
|
@@ -3010,10 +3068,8 @@ components:
|
|
|
3010
3068
|
minItems: 0
|
|
3011
3069
|
maxItems: 1000
|
|
3012
3070
|
webhook_url:
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
format: uri
|
|
3016
|
-
- type: 'null'
|
|
3071
|
+
description: Retained for historical reads.
|
|
3072
|
+
type: 'null'
|
|
3017
3073
|
validated_at:
|
|
3018
3074
|
anyOf:
|
|
3019
3075
|
- type: string
|
|
@@ -3049,9 +3105,7 @@ components:
|
|
|
3049
3105
|
- updated_at
|
|
3050
3106
|
- resource_version
|
|
3051
3107
|
additionalProperties: false
|
|
3052
|
-
description:
|
|
3053
|
-
no canonical account. No credentials, webhook secrets or credential references are returned. Only identity-verified
|
|
3054
|
-
and otherwise-ready connections may create/attach attempts.
|
|
3108
|
+
description: Ready chain connections can be used for new payments. Historical connection records remain available for reads.
|
|
3055
3109
|
allOf:
|
|
3056
3110
|
- if:
|
|
3057
3111
|
properties:
|
|
@@ -3073,56 +3127,6 @@ components:
|
|
|
3073
3127
|
provider_account_id:
|
|
3074
3128
|
type: string
|
|
3075
3129
|
minLength: 1
|
|
3076
|
-
IdentityEvidence:
|
|
3077
|
-
type: object
|
|
3078
|
-
properties:
|
|
3079
|
-
type:
|
|
3080
|
-
type: string
|
|
3081
|
-
enum:
|
|
3082
|
-
- paypal_order
|
|
3083
|
-
- paypal_capture
|
|
3084
|
-
id:
|
|
3085
|
-
type: string
|
|
3086
|
-
minLength: 1
|
|
3087
|
-
maxLength: 256
|
|
3088
|
-
required:
|
|
3089
|
-
- type
|
|
3090
|
-
- id
|
|
3091
|
-
additionalProperties: false
|
|
3092
|
-
description: Optional controlled merchant-created resource, retrieved with supplied credentials. Must establish
|
|
3093
|
-
these credentials seller context/default payee or independently verified provider authorization; a matching
|
|
3094
|
-
caller string/arbitrary readable order alone is insufficient. No automatic real charge/capture is performed
|
|
3095
|
-
for identity validation.
|
|
3096
|
-
ConnectionValidation:
|
|
3097
|
-
type: object
|
|
3098
|
-
properties:
|
|
3099
|
-
reason:
|
|
3100
|
-
type: string
|
|
3101
|
-
maxLength: 500
|
|
3102
|
-
identity_evidence:
|
|
3103
|
-
$ref: '#/components/schemas/IdentityEvidence'
|
|
3104
|
-
required: []
|
|
3105
|
-
additionalProperties: false
|
|
3106
|
-
description: Optional PayPal order/capture evidence enables provisional bootstrap. Retrieve authoritative
|
|
3107
|
-
resource and payee with these credentials, compare expected identity and verified seller context before
|
|
3108
|
-
canonical account reservation. Unsupported evidence/provider combinations are rejected.
|
|
3109
|
-
RotateConnectionCredentials:
|
|
3110
|
-
type: object
|
|
3111
|
-
properties:
|
|
3112
|
-
credentials:
|
|
3113
|
-
oneOf:
|
|
3114
|
-
- $ref: '#/components/schemas/StripeCredentials'
|
|
3115
|
-
- $ref: '#/components/schemas/PayPalCredentials'
|
|
3116
|
-
- $ref: '#/components/schemas/SecretReference'
|
|
3117
|
-
writeOnly: true
|
|
3118
|
-
expected_resource_version:
|
|
3119
|
-
type: integer
|
|
3120
|
-
minimum: 1
|
|
3121
|
-
maximum: 9007199254740991
|
|
3122
|
-
required:
|
|
3123
|
-
- credentials
|
|
3124
|
-
- expected_resource_version
|
|
3125
|
-
additionalProperties: false
|
|
3126
3130
|
ConnectionDisable:
|
|
3127
3131
|
type: object
|
|
3128
3132
|
properties:
|