@facto-to/card 0.0.0-stage → 0.0.1-beta.1
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/CHANGELOG.md +12 -0
- package/LICENSE +202 -0
- package/NOTICE +5 -0
- package/README.md +63 -2
- package/dist/card-inbox-DzsHFRPT.d.cts +312 -0
- package/dist/card-inbox-DzsHFRPT.d.ts +312 -0
- package/dist/chunk-52SWPAJL.js +2 -0
- package/dist/cli/index.js +6 -0
- package/dist/docs/README.md +9 -0
- package/dist/docs/authentication.md +96 -0
- package/dist/docs/authorizations.md +182 -0
- package/dist/docs/concepts.md +35 -0
- package/dist/docs/deliveries.md +170 -0
- package/dist/docs/errors.md +100 -0
- package/dist/docs/getting-access.md +56 -0
- package/dist/docs/idempotency.md +78 -0
- package/dist/docs/integration-checklist.md +15 -0
- package/dist/docs/integration.zh.md +59 -0
- package/dist/docs/interlace-adapter-v1.md +87 -0
- package/dist/docs/interlace-adapter-v1.zh.md +87 -0
- package/dist/docs/not-yet-available.md +13 -0
- package/dist/docs/quickstart.md +126 -0
- package/dist/docs/reconciliation.md +86 -0
- package/dist/docs/reference/api.md +1728 -0
- package/dist/docs/reference/events.md +639 -0
- package/dist/docs/reference/schemas.json +5000 -0
- package/dist/docs/reference/schemas.md +865 -0
- package/dist/docs/simulator.md +235 -0
- package/dist/docs/versioning.md +9 -0
- package/dist/index.cjs +3 -0
- package/dist/index.d.cts +840 -0
- package/dist/index.d.ts +840 -0
- package/dist/index.js +2 -0
- package/dist/source/build.mjs +5 -0
- package/dist/source/package.json +16 -0
- package/dist/source/src/connect/cli/deliveries.ts +48 -0
- package/dist/source/src/connect/cli/index.ts +57 -0
- package/dist/source/src/connect/server/card-client.ts +834 -0
- package/dist/source/src/connect/server/card-delivery.ts +301 -0
- package/dist/source/src/connect/server/card-events.ts +473 -0
- package/dist/source/src/connect/server/card-idempotency.ts +27 -0
- package/dist/source/src/connect/server/card-inbox.ts +82 -0
- package/dist/source/src/connect/server/card-intent-token.ts +588 -0
- package/dist/source/src/connect/server/card-polling.ts +69 -0
- package/dist/source/src/connect/server/card-signing.ts +115 -0
- package/dist/source/src/connect/server/card-transport.ts +282 -0
- package/dist/source/src/connect/server/errors.ts +280 -0
- package/dist/source/src/connect/server/fixtures/engine/card-events.synthetic.ts +84 -0
- package/dist/source/src/connect/server/retry-after.ts +12 -0
- package/dist/source/src/connect/testing/card-inbox.ts +124 -0
- package/dist/source/src/connect/testing/card-scenarios.ts +243 -0
- package/dist/source/src/connect/testing/card-simulator-vectors.ts +262 -0
- package/dist/source/src/connect/testing/card-simulator.ts +531 -0
- package/dist/source/src/connect/testing/interlace-card-transactions.ts +704 -0
- package/dist/source/src/connect/testing/pure-sha256.ts +123 -0
- package/dist/source/src/connect/wire.d.ts +472 -0
- package/dist/source/src/index.ts +135 -0
- package/dist/source/src/testing-browser.ts +24 -0
- package/dist/source/src/testing.ts +26 -0
- package/dist/source/tsconfig.json +20 -0
- package/dist/testing-browser.d.ts +220 -0
- package/dist/testing-browser.js +5 -0
- package/dist/testing.cjs +6 -0
- package/dist/testing.d.cts +199 -0
- package/dist/testing.d.ts +199 -0
- package/dist/testing.js +5 -0
- package/package.json +60 -4
|
@@ -0,0 +1,1728 @@
|
|
|
1
|
+
# Card API reference
|
|
2
|
+
|
|
3
|
+
Find each provider operation, its request fields and response shapes below. See the [schema appendix](schemas.md) for nested types and conditional rules; the [machine-readable schemas](schemas.json) retain structural constraints.
|
|
4
|
+
|
|
5
|
+
All requests require the four authentication headers described in [authentication](../authentication.md). The SDK supplies `program_id` from its configured scope. Credentials, effective grants and any approved coverage must all match the environment and connection.
|
|
6
|
+
|
|
7
|
+
## Operation capabilities
|
|
8
|
+
|
|
9
|
+
| Operation | Capability and purpose |
|
|
10
|
+
| --- | --- |
|
|
11
|
+
| `POST /api/card/authorizations` | `authorization_event.write` |
|
|
12
|
+
| `POST /api/card/authorizations/lookup` | `authorization_status.read`; approved authorization-read purpose |
|
|
13
|
+
| `POST /api/card/authorizations/{external_id}/facts` | `authorization_event.write` |
|
|
14
|
+
| `POST /api/card/bindings/lookup` | `binding_status.read` |
|
|
15
|
+
| `POST /api/card/connect/intents/{id}/cancel` | `subject_assertion.write` |
|
|
16
|
+
| `GET /api/card/connect/intents/{id}/cards` | `subject_assertion.write` |
|
|
17
|
+
| `PUT /api/card/connect/intents/{id}/cards` | `subject_assertion.write` |
|
|
18
|
+
| `GET /api/card/deliveries/dead-letters` | `binding_status.read` |
|
|
19
|
+
| `POST /api/card/deliveries/dead-letters/{id}/replay` | `binding_status.read` |
|
|
20
|
+
| `POST /api/card/deliveries/reconciliations/list` | `event_delivery.read`; approved delivery-read purpose and coverage |
|
|
21
|
+
| `POST /api/card/deliveries/replays` | `event_delivery.read`; separately approved history-replay purpose and selection |
|
|
22
|
+
| `POST /api/card/events` | `card_lifecycle_event.write` |
|
|
23
|
+
|
|
24
|
+
## POST /api/card/authorizations
|
|
25
|
+
|
|
26
|
+
Submit an initial card swipe authorization for admission and settlement execution.
|
|
27
|
+
|
|
28
|
+
### Request headers and path parameters
|
|
29
|
+
|
|
30
|
+
| Name | Location | Required | Constraints |
|
|
31
|
+
| --- | --- | --- | --- |
|
|
32
|
+
| `x-api-key` | header | Yes | See authentication |
|
|
33
|
+
| `x-api-timestamp` | header | Yes | See authentication |
|
|
34
|
+
| `x-api-nonce` | header | Yes | See authentication |
|
|
35
|
+
| `x-api-signature` | header | Yes | See authentication |
|
|
36
|
+
| `Content-Type` | header | When sending JSON | `application/json` |
|
|
37
|
+
| `Idempotency-Key` | header | Yes | min length 16; max length 255 |
|
|
38
|
+
|
|
39
|
+
### Request body
|
|
40
|
+
|
|
41
|
+
Body required.
|
|
42
|
+
|
|
43
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
44
|
+
| --- | --- | --- | --- | --- |
|
|
45
|
+
| `amount` | string | Yes | min length 1; max length 64 | Decimal amount for the operation. |
|
|
46
|
+
| `cardholder_verification` | [`CardholderVerification`](schemas.md#cardholderverification) | Yes | — | Cardholder verification evidence. |
|
|
47
|
+
| `client_transaction_id` | string | No | min length 1; max length 256 | Caller-provided transaction correlation identifier. |
|
|
48
|
+
| `currency` | string | Yes | one of `USD`, `USDC` | ISO or token currency code. |
|
|
49
|
+
| `deadline_at` | string | No | format date-time | Effective decision deadline. |
|
|
50
|
+
| `decision_mode` | string | No | one of `asynchronous`, `synchronous` | Requested asynchronous or synchronous decision mode. |
|
|
51
|
+
| `decision_timeout_ms` | integer | No | min 50; max 5000 | Requested synchronous decision time limit in milliseconds. |
|
|
52
|
+
| `external_authorization_id` | string | Yes | min length 1; max length 256 | Stable identifier for the authorization lineage. |
|
|
53
|
+
| `external_card_id` | string | Yes | min length 1; max length 512 | Opaque card identifier assigned by the partner. |
|
|
54
|
+
| `mapping_revision` | string | Yes | min length 1; max length 255 | Original mapping revision. |
|
|
55
|
+
| `merchant_country` | string | No | min length 1; max length 8 | ISO country code reported for this transaction. |
|
|
56
|
+
| `merchant_mcc` | string | No | min length 0; max length 16 | Merchant category code reported for this transaction. |
|
|
57
|
+
| `merchant_name` | string | No | min length 0; max length 256 | Merchant name reported for this transaction. |
|
|
58
|
+
| `occurred_at` | string | No | format date-time | Time when the event or authorization occurred. |
|
|
59
|
+
| `program_id` | string | Yes | min length 1; max length 512 | Program identifier assigned for this environment. |
|
|
60
|
+
| `resource_version` | string | Yes | min length 1; max length 255 | Version identifying this operation within its lineage. |
|
|
61
|
+
| `supplier_transaction_id` | string | No | min length 1; max length 256 | Partner transaction identifier for this operation. |
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
Conditional rules:
|
|
65
|
+
|
|
66
|
+
- `decision_timeout_ms` and `deadline_at` are allowed only for synchronous original authorizations; synchronous approval is currently closed.
|
|
67
|
+
|
|
68
|
+
### Responses
|
|
69
|
+
|
|
70
|
+
#### HTTP 200
|
|
71
|
+
|
|
72
|
+
#### Variant 1: AuthorizationAccepted
|
|
73
|
+
|
|
74
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
75
|
+
| --- | --- | --- | --- | --- |
|
|
76
|
+
| `charge_id` | string | Yes | min length 1; max length 255 | Public charge identifier. |
|
|
77
|
+
| `status` | string | Yes | equals `processing` | Reported status; interpret in the context of this response. |
|
|
78
|
+
|
|
79
|
+
|
|
80
|
+
#### Variant 2: SynchronousAuthorizationApproved
|
|
81
|
+
|
|
82
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
83
|
+
| --- | --- | --- | --- | --- |
|
|
84
|
+
| `charge_id` | string | Yes | — | Public charge identifier. |
|
|
85
|
+
| `deadline_at` | string | Yes | format date-time | Effective decision deadline. |
|
|
86
|
+
| `decided_at` | string | Yes | format date-time | Time at which a decision was recorded. |
|
|
87
|
+
| `decision` | string | Yes | equals `approved` | Synchronous decision. |
|
|
88
|
+
| `decision_id` | string | Yes | format uuid | Synchronous decision identifier. |
|
|
89
|
+
| `status` | string | Yes | equals `approved` | Reported status; interpret in the context of this response. |
|
|
90
|
+
|
|
91
|
+
#### HTTP 400
|
|
92
|
+
|
|
93
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
94
|
+
| --- | --- | --- | --- | --- |
|
|
95
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
96
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
97
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
98
|
+
|
|
99
|
+
#### HTTP 401
|
|
100
|
+
|
|
101
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
102
|
+
| --- | --- | --- | --- | --- |
|
|
103
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
104
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
105
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
106
|
+
|
|
107
|
+
#### HTTP 402
|
|
108
|
+
|
|
109
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
110
|
+
| --- | --- | --- | --- | --- |
|
|
111
|
+
| `error` | string | Yes | min length 1; max length 128; pattern `^[a-z][a-z0-9_]*$` | Machine-readable error code. |
|
|
112
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
113
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
114
|
+
|
|
115
|
+
#### HTTP 403
|
|
116
|
+
|
|
117
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
118
|
+
| --- | --- | --- | --- | --- |
|
|
119
|
+
| `error` | string | Yes | min length 1; max length 128; pattern `^[a-z][a-z0-9_]*$` | Machine-readable error code. |
|
|
120
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
121
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
122
|
+
|
|
123
|
+
#### HTTP 404
|
|
124
|
+
|
|
125
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
126
|
+
| --- | --- | --- | --- | --- |
|
|
127
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
128
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
129
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
130
|
+
|
|
131
|
+
#### HTTP 408
|
|
132
|
+
|
|
133
|
+
#### Variant 1: SynchronousAuthorizationDeclined
|
|
134
|
+
|
|
135
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
136
|
+
| --- | --- | --- | --- | --- |
|
|
137
|
+
| `deadline_at` | string | Yes | format date-time | Effective decision deadline. |
|
|
138
|
+
| `decided_at` | string | Yes | format date-time | Time at which a decision was recorded. |
|
|
139
|
+
| `decision` | string | Yes | one of `declined`, `self_reversed_timeout` | Synchronous decision. |
|
|
140
|
+
| `decision_id` | string | Yes | format uuid | Synchronous decision identifier. |
|
|
141
|
+
| `error` | string | Yes | — | Machine-readable error code. |
|
|
142
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
143
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
#### Variant 2: AuthorizationDeadlineExceeded
|
|
147
|
+
|
|
148
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
149
|
+
| --- | --- | --- | --- | --- |
|
|
150
|
+
| `deadline_at` | string | Yes | format date-time | Effective decision deadline. |
|
|
151
|
+
| `decision_id` | string | Yes | format uuid | Synchronous decision identifier. |
|
|
152
|
+
| `error` | string | Yes | equals `decision_deadline_exceeded` | Machine-readable error code. |
|
|
153
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
154
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
155
|
+
|
|
156
|
+
#### HTTP 409
|
|
157
|
+
|
|
158
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
159
|
+
| --- | --- | --- | --- | --- |
|
|
160
|
+
| `error` | string | Yes | min length 1; max length 128; pattern `^[a-z][a-z0-9_]*$` | Machine-readable error code. |
|
|
161
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
162
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
163
|
+
|
|
164
|
+
#### HTTP 422
|
|
165
|
+
|
|
166
|
+
#### Variant 1: AuthorizationError
|
|
167
|
+
|
|
168
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
169
|
+
| --- | --- | --- | --- | --- |
|
|
170
|
+
| `error` | string | Yes | min length 1; max length 128; pattern `^[a-z][a-z0-9_]*$` | Machine-readable error code. |
|
|
171
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
172
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
#### Variant 2: SynchronousAuthorizationDeclined
|
|
176
|
+
|
|
177
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
178
|
+
| --- | --- | --- | --- | --- |
|
|
179
|
+
| `deadline_at` | string | Yes | format date-time | Effective decision deadline. |
|
|
180
|
+
| `decided_at` | string | Yes | format date-time | Time at which a decision was recorded. |
|
|
181
|
+
| `decision` | string | Yes | one of `declined`, `self_reversed_timeout` | Synchronous decision. |
|
|
182
|
+
| `decision_id` | string | Yes | format uuid | Synchronous decision identifier. |
|
|
183
|
+
| `error` | string | Yes | — | Machine-readable error code. |
|
|
184
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
185
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
186
|
+
|
|
187
|
+
#### HTTP 423
|
|
188
|
+
|
|
189
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
190
|
+
| --- | --- | --- | --- | --- |
|
|
191
|
+
| `error` | string | Yes | min length 1; max length 128; pattern `^[a-z][a-z0-9_]*$` | Machine-readable error code. |
|
|
192
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
193
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
194
|
+
|
|
195
|
+
#### HTTP 429
|
|
196
|
+
|
|
197
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
198
|
+
| --- | --- | --- | --- | --- |
|
|
199
|
+
| `error` | string | Yes | min length 1; max length 128; pattern `^[a-z][a-z0-9_]*$` | Machine-readable error code. |
|
|
200
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
201
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
202
|
+
|
|
203
|
+
#### HTTP 500
|
|
204
|
+
|
|
205
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
206
|
+
| --- | --- | --- | --- | --- |
|
|
207
|
+
| `error` | string | Yes | min length 1; max length 128; pattern `^[a-z][a-z0-9_]*$` | Machine-readable error code. |
|
|
208
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
209
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
210
|
+
|
|
211
|
+
#### HTTP 503
|
|
212
|
+
|
|
213
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
214
|
+
| --- | --- | --- | --- | --- |
|
|
215
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
216
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
217
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
218
|
+
|
|
219
|
+
### Known error codes
|
|
220
|
+
|
|
221
|
+
`authentication_failed`, `program_grant_denied`, `invalid_request`, `not_found`, `integrity_conflict`, `idempotency_payload_mismatch`, `version_already_recorded`, `mapping_revision_not_approved`, `fact_type_not_allowed`, `managed_route_refused`, `ambiguous_lookup_selector`, `precondition_failed`, `stale_revision`, `intent_token_rejected`, `intent_expired`, `too_many_requests`, `rate_limited`, `authorization_admission_closed`, `route_not_payable`, `consent_scope_not_payable`, `spending_limit_exceeded`, `onchain_insufficient_balance`, `yield_source_underfunded`, `sync_approval_admission_closed`, `decision_deadline_exceeded`, `internal_error`
|
|
222
|
+
|
|
223
|
+
Unknown codes may also occur.
|
|
224
|
+
|
|
225
|
+
## POST /api/card/authorizations/lookup
|
|
226
|
+
|
|
227
|
+
Look up the current authorization projection by external authorization ID, supplier transaction ID, idempotency key, or charge ID.
|
|
228
|
+
|
|
229
|
+
### Request headers and path parameters
|
|
230
|
+
|
|
231
|
+
| Name | Location | Required | Constraints |
|
|
232
|
+
| --- | --- | --- | --- |
|
|
233
|
+
| `x-api-key` | header | Yes | See authentication |
|
|
234
|
+
| `x-api-timestamp` | header | Yes | See authentication |
|
|
235
|
+
| `x-api-nonce` | header | Yes | See authentication |
|
|
236
|
+
| `x-api-signature` | header | Yes | See authentication |
|
|
237
|
+
| `Content-Type` | header | When sending JSON | `application/json` |
|
|
238
|
+
|
|
239
|
+
### Request body
|
|
240
|
+
|
|
241
|
+
Body required.
|
|
242
|
+
|
|
243
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
244
|
+
| --- | --- | --- | --- | --- |
|
|
245
|
+
| `criteria` | one of the variants below | Yes | — | Exactly one authorization lookup selector. |
|
|
246
|
+
| `program_id` | string | Yes | min length 1; max length 512 | Program identifier assigned for this environment. |
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
**criteria variants**
|
|
250
|
+
|
|
251
|
+
#### Variant 1: AuthorizationRefLookup
|
|
252
|
+
|
|
253
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
254
|
+
| --- | --- | --- | --- | --- |
|
|
255
|
+
| `by` | string | Yes | equals `external_authorization_id` | Selects the lookup identity. |
|
|
256
|
+
| `external_authorization_id` | string | Yes | min length 1; max length 256 | Stable identifier for the authorization lineage. |
|
|
257
|
+
| `fact_type` | [`AuthorizationOperationType`](schemas.md#authorizationoperationtype) | No | one of `authorization_requested`, `authorization_updated`, `clearing`, `reversal`, `refund`, `chargeback`, `settlement` | Lifecycle fact kind. |
|
|
258
|
+
| `mapping_revision` | string | Yes | min length 1; max length 255 | Original mapping revision. |
|
|
259
|
+
| `resource_version` | string | Yes | min length 1; max length 255 | Version identifying this operation within its lineage. |
|
|
260
|
+
|
|
261
|
+
|
|
262
|
+
#### Variant 2: SupplierTransactionRefLookup
|
|
263
|
+
|
|
264
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
265
|
+
| --- | --- | --- | --- | --- |
|
|
266
|
+
| `by` | string | Yes | equals `supplier_transaction_id` | Selects the lookup identity. |
|
|
267
|
+
| `fact_type` | [`AuthorizationOperationType`](schemas.md#authorizationoperationtype) | No | one of `authorization_requested`, `authorization_updated`, `clearing`, `reversal`, `refund`, `chargeback`, `settlement` | Lifecycle fact kind. |
|
|
268
|
+
| `mapping_revision` | string | Yes | min length 1; max length 255 | Original mapping revision. |
|
|
269
|
+
| `resource_version` | string | Yes | min length 1; max length 255 | Version identifying this operation within its lineage. |
|
|
270
|
+
| `supplier_transaction_id` | string | Yes | min length 1; max length 256 | Partner transaction identifier for this operation. |
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
#### Variant 3: AuthorizationIdempotencyLookup
|
|
274
|
+
|
|
275
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
276
|
+
| --- | --- | --- | --- | --- |
|
|
277
|
+
| `by` | string | Yes | equals `idempotency_key` | Selects the lookup identity. |
|
|
278
|
+
| `idempotency_key` | string | Yes | min length 16; max length 255 | Original idempotency key used for the authorization. |
|
|
279
|
+
| `operation` | string | No | equals `create_authorization` | Idempotent operation category. |
|
|
280
|
+
| `original_credential_key_id` | string | Yes | min length 1; max length 255 | Key ID that signed the original authorization. |
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
#### Variant 4: AuthorizationChargeIdLookup
|
|
284
|
+
|
|
285
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
286
|
+
| --- | --- | --- | --- | --- |
|
|
287
|
+
| `by` | string | Yes | equals `charge_id` | Selects the lookup identity. |
|
|
288
|
+
| `charge_id` | string | Yes | min length 1; max length 255 | Public charge identifier. |
|
|
289
|
+
|
|
290
|
+
### Responses
|
|
291
|
+
|
|
292
|
+
#### HTTP 200
|
|
293
|
+
|
|
294
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
295
|
+
| --- | --- | --- | --- | --- |
|
|
296
|
+
| `authorization` | [`AuthorizationProjection`](schemas.md#authorizationprojection) | No | — | Authorization projection, when observed. |
|
|
297
|
+
| `observed_at` | [`AuthorizationTimestamp`](schemas.md#authorizationtimestamp) | Yes | format date-time | Time of the returned observation. |
|
|
298
|
+
| `resolution` | string | Yes | one of `resolved`, `pending`, `unknown`, `not_observed` | Lookup resolution. |
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
Conditional rules:
|
|
302
|
+
|
|
303
|
+
- If resolution is `not_observed`, not (`authorization` is present).
|
|
304
|
+
- If resolution is `resolved`, `authorization` is present and authorization.processing_status is one of `succeeded`, `failed`.
|
|
305
|
+
- If resolution is `pending`, `authorization` is present and authorization.processing_status is one of `processing`.
|
|
306
|
+
- If resolution is `unknown`, `authorization` is present and authorization.processing_status is one of `indeterminate`.
|
|
307
|
+
|
|
308
|
+
#### HTTP 400
|
|
309
|
+
|
|
310
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
311
|
+
| --- | --- | --- | --- | --- |
|
|
312
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
313
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
314
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
315
|
+
|
|
316
|
+
#### HTTP 401
|
|
317
|
+
|
|
318
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
319
|
+
| --- | --- | --- | --- | --- |
|
|
320
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
321
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
322
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
323
|
+
|
|
324
|
+
#### HTTP 403
|
|
325
|
+
|
|
326
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
327
|
+
| --- | --- | --- | --- | --- |
|
|
328
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
329
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
330
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
331
|
+
|
|
332
|
+
#### HTTP 404
|
|
333
|
+
|
|
334
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
335
|
+
| --- | --- | --- | --- | --- |
|
|
336
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
337
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
338
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
339
|
+
|
|
340
|
+
#### HTTP 409
|
|
341
|
+
|
|
342
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
343
|
+
| --- | --- | --- | --- | --- |
|
|
344
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
345
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
346
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
347
|
+
|
|
348
|
+
#### HTTP 503
|
|
349
|
+
|
|
350
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
351
|
+
| --- | --- | --- | --- | --- |
|
|
352
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
353
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
354
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
355
|
+
|
|
356
|
+
### Known error codes
|
|
357
|
+
|
|
358
|
+
`authentication_failed`, `program_grant_denied`, `invalid_request`, `not_found`, `integrity_conflict`, `idempotency_payload_mismatch`, `version_already_recorded`, `mapping_revision_not_approved`, `fact_type_not_allowed`, `managed_route_refused`, `ambiguous_lookup_selector`, `precondition_failed`, `stale_revision`, `intent_token_rejected`, `intent_expired`, `too_many_requests`, `rate_limited`, `authorization_admission_closed`, `route_not_payable`, `consent_scope_not_payable`, `spending_limit_exceeded`, `onchain_insufficient_balance`, `yield_source_underfunded`, `sync_approval_admission_closed`, `decision_deadline_exceeded`, `internal_error`
|
|
359
|
+
|
|
360
|
+
Unknown codes may also occur.
|
|
361
|
+
|
|
362
|
+
## POST /api/card/authorizations/{external_id}/facts
|
|
363
|
+
|
|
364
|
+
Record a subsequent clearing, reversal, refund, chargeback, or settlement lifecycle fact.
|
|
365
|
+
|
|
366
|
+
### Request headers and path parameters
|
|
367
|
+
|
|
368
|
+
| Name | Location | Required | Constraints |
|
|
369
|
+
| --- | --- | --- | --- |
|
|
370
|
+
| `x-api-key` | header | Yes | See authentication |
|
|
371
|
+
| `x-api-timestamp` | header | Yes | See authentication |
|
|
372
|
+
| `x-api-nonce` | header | Yes | See authentication |
|
|
373
|
+
| `x-api-signature` | header | Yes | See authentication |
|
|
374
|
+
| `Content-Type` | header | When sending JSON | `application/json` |
|
|
375
|
+
| `external_id` | path | Yes | min length 1; max length 256 |
|
|
376
|
+
| `Idempotency-Key` | header | Yes | min length 16; max length 255 |
|
|
377
|
+
|
|
378
|
+
### Request body
|
|
379
|
+
|
|
380
|
+
Body required.
|
|
381
|
+
|
|
382
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
383
|
+
| --- | --- | --- | --- | --- |
|
|
384
|
+
| `amount` | string | Yes | min length 1; max length 64 | Decimal amount for the operation. |
|
|
385
|
+
| `client_transaction_id` | string | No | min length 1; max length 256 | Caller-provided transaction correlation identifier. |
|
|
386
|
+
| `currency` | string | Yes | one of `USD`, `USDC` | ISO or token currency code. |
|
|
387
|
+
| `fact_type` | string | Yes | one of `authorization_updated`, `clearing`, `reversal`, `refund`, `chargeback`, `settlement` | Lifecycle fact kind. |
|
|
388
|
+
| `mapping_revision` | string | Yes | min length 1; max length 255 | Original mapping revision. |
|
|
389
|
+
| `merchant_country` | string | No | min length 1; max length 8 | ISO country code reported for this transaction. |
|
|
390
|
+
| `merchant_mcc` | string | No | min length 0; max length 16 | Merchant category code reported for this transaction. |
|
|
391
|
+
| `merchant_name` | string | No | min length 0; max length 256 | Merchant name reported for this transaction. |
|
|
392
|
+
| `parent_supplier_transaction_id` | string | No | min length 1; max length 256 | Partner identifier for the preceding transaction. |
|
|
393
|
+
| `predecessor_version` | string | Yes | min length 1; max length 255 | Previous distinct version for a subsequent fact. |
|
|
394
|
+
| `program_id` | string | Yes | min length 1; max length 512 | Program identifier assigned for this environment. |
|
|
395
|
+
| `recorded_at` | string | Yes | format date-time | Time the fact was recorded. |
|
|
396
|
+
| `resource_version` | string | Yes | min length 1; max length 255 | Version identifying this operation within its lineage. |
|
|
397
|
+
| `supplier_transaction_id` | string | No | min length 1; max length 256 | Partner transaction identifier for this operation. |
|
|
398
|
+
|
|
399
|
+
|
|
400
|
+
Conditional rules:
|
|
401
|
+
|
|
402
|
+
- A subsequent fact requires a distinct `predecessor_version` that already exists on the same authorization lineage.
|
|
403
|
+
- Every subsequent fact needs its own stable idempotency key and resource version.
|
|
404
|
+
|
|
405
|
+
### Responses
|
|
406
|
+
|
|
407
|
+
#### HTTP 200
|
|
408
|
+
|
|
409
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
410
|
+
| --- | --- | --- | --- | --- |
|
|
411
|
+
| `operation_id` | string | Yes | format uuid | Recorded operation identifier. |
|
|
412
|
+
| `status` | string | Yes | equals `recorded` | Reported status; interpret in the context of this response. |
|
|
413
|
+
|
|
414
|
+
#### HTTP 400
|
|
415
|
+
|
|
416
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
417
|
+
| --- | --- | --- | --- | --- |
|
|
418
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
419
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
420
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
421
|
+
|
|
422
|
+
#### HTTP 401
|
|
423
|
+
|
|
424
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
425
|
+
| --- | --- | --- | --- | --- |
|
|
426
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
427
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
428
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
429
|
+
|
|
430
|
+
#### HTTP 403
|
|
431
|
+
|
|
432
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
433
|
+
| --- | --- | --- | --- | --- |
|
|
434
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
435
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
436
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
437
|
+
|
|
438
|
+
#### HTTP 404
|
|
439
|
+
|
|
440
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
441
|
+
| --- | --- | --- | --- | --- |
|
|
442
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
443
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
444
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
445
|
+
|
|
446
|
+
#### HTTP 409
|
|
447
|
+
|
|
448
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
449
|
+
| --- | --- | --- | --- | --- |
|
|
450
|
+
| `error` | string | Yes | min length 1; max length 128; pattern `^[a-z][a-z0-9_]*$` | Machine-readable error code. |
|
|
451
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
452
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
453
|
+
|
|
454
|
+
#### HTTP 429
|
|
455
|
+
|
|
456
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
457
|
+
| --- | --- | --- | --- | --- |
|
|
458
|
+
| `error` | string | Yes | min length 1; max length 128; pattern `^[a-z][a-z0-9_]*$` | Machine-readable error code. |
|
|
459
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
460
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
461
|
+
|
|
462
|
+
#### HTTP 500
|
|
463
|
+
|
|
464
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
465
|
+
| --- | --- | --- | --- | --- |
|
|
466
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
467
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
468
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
469
|
+
|
|
470
|
+
#### HTTP 503
|
|
471
|
+
|
|
472
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
473
|
+
| --- | --- | --- | --- | --- |
|
|
474
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
475
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
476
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
477
|
+
|
|
478
|
+
### Known error codes
|
|
479
|
+
|
|
480
|
+
`authentication_failed`, `program_grant_denied`, `invalid_request`, `not_found`, `integrity_conflict`, `idempotency_payload_mismatch`, `version_already_recorded`, `mapping_revision_not_approved`, `fact_type_not_allowed`, `managed_route_refused`, `ambiguous_lookup_selector`, `precondition_failed`, `stale_revision`, `intent_token_rejected`, `intent_expired`, `too_many_requests`, `rate_limited`, `authorization_admission_closed`, `route_not_payable`, `consent_scope_not_payable`, `spending_limit_exceeded`, `onchain_insufficient_balance`, `yield_source_underfunded`, `sync_approval_admission_closed`, `decision_deadline_exceeded`, `internal_error`
|
|
481
|
+
|
|
482
|
+
Unknown codes may also occur.
|
|
483
|
+
|
|
484
|
+
## POST /api/card/bindings/lookup
|
|
485
|
+
|
|
486
|
+
Look up the current Facto card binding projection by opaque external_card_id.
|
|
487
|
+
|
|
488
|
+
### Request headers and path parameters
|
|
489
|
+
|
|
490
|
+
| Name | Location | Required | Constraints |
|
|
491
|
+
| --- | --- | --- | --- |
|
|
492
|
+
| `x-api-key` | header | Yes | See authentication |
|
|
493
|
+
| `x-api-timestamp` | header | Yes | See authentication |
|
|
494
|
+
| `x-api-nonce` | header | Yes | See authentication |
|
|
495
|
+
| `x-api-signature` | header | Yes | See authentication |
|
|
496
|
+
| `Content-Type` | header | When sending JSON | `application/json` |
|
|
497
|
+
|
|
498
|
+
### Request body
|
|
499
|
+
|
|
500
|
+
Body required.
|
|
501
|
+
|
|
502
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
503
|
+
| --- | --- | --- | --- | --- |
|
|
504
|
+
| `external_card_id` | string | Yes | min length 1; max length 255 | Opaque card identifier assigned by the partner. |
|
|
505
|
+
|
|
506
|
+
### Responses
|
|
507
|
+
|
|
508
|
+
#### HTTP 200
|
|
509
|
+
|
|
510
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
511
|
+
| --- | --- | --- | --- | --- |
|
|
512
|
+
| `binding` | one of the variants below | Yes | — | Current binding projection, or null when unbound. |
|
|
513
|
+
| `found` | boolean | Yes | — | Whether an active or revoked binding matched. |
|
|
514
|
+
|
|
515
|
+
|
|
516
|
+
**binding variants**
|
|
517
|
+
|
|
518
|
+
#### Variant 1: BindingSummary
|
|
519
|
+
|
|
520
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
521
|
+
| --- | --- | --- | --- | --- |
|
|
522
|
+
| `card` | [`CardDisplayFacts`](schemas.md#carddisplayfacts) | Yes | — | Card display metadata. |
|
|
523
|
+
| `funding` | [`BindingFundingProjection`](schemas.md#bindingfundingprojection) | No | — | Funding readiness summary, when included. |
|
|
524
|
+
| `id` | [`CardBindingId`](schemas.md#cardbindingid) | Yes | pattern `^cb_[A-Za-z0-9_-]{16,}$` | Resource identifier. |
|
|
525
|
+
| `revision` | integer | Yes | min 1; format int32 | Optimistic concurrency revision. |
|
|
526
|
+
| `status` | string | Yes | one of `active`, `revoked` | Reported status; interpret in the context of this response. |
|
|
527
|
+
|
|
528
|
+
|
|
529
|
+
#### Variant 2
|
|
530
|
+
|
|
531
|
+
Type: null. Constraints: —.
|
|
532
|
+
|
|
533
|
+
#### HTTP 400
|
|
534
|
+
|
|
535
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
536
|
+
| --- | --- | --- | --- | --- |
|
|
537
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
538
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
539
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
540
|
+
|
|
541
|
+
#### HTTP 401
|
|
542
|
+
|
|
543
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
544
|
+
| --- | --- | --- | --- | --- |
|
|
545
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
546
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
547
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
548
|
+
|
|
549
|
+
#### HTTP 403
|
|
550
|
+
|
|
551
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
552
|
+
| --- | --- | --- | --- | --- |
|
|
553
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
554
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
555
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
556
|
+
|
|
557
|
+
#### HTTP 404
|
|
558
|
+
|
|
559
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
560
|
+
| --- | --- | --- | --- | --- |
|
|
561
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
562
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
563
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
564
|
+
|
|
565
|
+
#### HTTP 409
|
|
566
|
+
|
|
567
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
568
|
+
| --- | --- | --- | --- | --- |
|
|
569
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
570
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
571
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
572
|
+
|
|
573
|
+
#### HTTP 410
|
|
574
|
+
|
|
575
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
576
|
+
| --- | --- | --- | --- | --- |
|
|
577
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
578
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
579
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
580
|
+
|
|
581
|
+
#### HTTP 412
|
|
582
|
+
|
|
583
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
584
|
+
| --- | --- | --- | --- | --- |
|
|
585
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
586
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
587
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
588
|
+
|
|
589
|
+
#### HTTP 422
|
|
590
|
+
|
|
591
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
592
|
+
| --- | --- | --- | --- | --- |
|
|
593
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
594
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
595
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
596
|
+
|
|
597
|
+
#### HTTP 423
|
|
598
|
+
|
|
599
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
600
|
+
| --- | --- | --- | --- | --- |
|
|
601
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
602
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
603
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
604
|
+
|
|
605
|
+
#### HTTP 428
|
|
606
|
+
|
|
607
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
608
|
+
| --- | --- | --- | --- | --- |
|
|
609
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
610
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
611
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
612
|
+
|
|
613
|
+
#### HTTP 429
|
|
614
|
+
|
|
615
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
616
|
+
| --- | --- | --- | --- | --- |
|
|
617
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
618
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
619
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
620
|
+
|
|
621
|
+
#### HTTP 500
|
|
622
|
+
|
|
623
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
624
|
+
| --- | --- | --- | --- | --- |
|
|
625
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
626
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
627
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
628
|
+
|
|
629
|
+
### Known error codes
|
|
630
|
+
|
|
631
|
+
`authentication_failed`, `program_grant_denied`, `invalid_request`, `not_found`, `integrity_conflict`, `idempotency_payload_mismatch`, `version_already_recorded`, `mapping_revision_not_approved`, `fact_type_not_allowed`, `managed_route_refused`, `ambiguous_lookup_selector`, `precondition_failed`, `stale_revision`, `intent_token_rejected`, `intent_expired`, `too_many_requests`, `rate_limited`
|
|
632
|
+
|
|
633
|
+
Unknown codes may also occur.
|
|
634
|
+
|
|
635
|
+
## POST /api/card/connect/intents/{id}/cancel
|
|
636
|
+
|
|
637
|
+
Cancel an active connect intent when the cardholder aborts selection.
|
|
638
|
+
|
|
639
|
+
### Request headers and path parameters
|
|
640
|
+
|
|
641
|
+
| Name | Location | Required | Constraints |
|
|
642
|
+
| --- | --- | --- | --- |
|
|
643
|
+
| `x-api-key` | header | Yes | See authentication |
|
|
644
|
+
| `x-api-timestamp` | header | Yes | See authentication |
|
|
645
|
+
| `x-api-nonce` | header | Yes | See authentication |
|
|
646
|
+
| `x-api-signature` | header | Yes | See authentication |
|
|
647
|
+
| `Content-Type` | header | When sending JSON | `application/json` |
|
|
648
|
+
| `id` | path | Yes | pattern `^cint_[A-Za-z0-9_-]{16,}$` |
|
|
649
|
+
|
|
650
|
+
### Request body
|
|
651
|
+
|
|
652
|
+
Body required.
|
|
653
|
+
|
|
654
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
655
|
+
| --- | --- | --- | --- | --- |
|
|
656
|
+
| `intent_token` | string | Yes | — | Signed intent token issued by Facto for this connect intent. |
|
|
657
|
+
|
|
658
|
+
### Responses
|
|
659
|
+
|
|
660
|
+
#### HTTP 200
|
|
661
|
+
|
|
662
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
663
|
+
| --- | --- | --- | --- | --- |
|
|
664
|
+
| `id` | [`ConnectIntentId`](schemas.md#connectintentid) | Yes | pattern `^cint_[A-Za-z0-9_-]{16,}$` | Resource identifier. |
|
|
665
|
+
| `status` | string | Yes | equals `cancelled` | Reported status; interpret in the context of this response. |
|
|
666
|
+
|
|
667
|
+
#### HTTP 400
|
|
668
|
+
|
|
669
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
670
|
+
| --- | --- | --- | --- | --- |
|
|
671
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
672
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
673
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
674
|
+
|
|
675
|
+
#### HTTP 401
|
|
676
|
+
|
|
677
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
678
|
+
| --- | --- | --- | --- | --- |
|
|
679
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
680
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
681
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
682
|
+
|
|
683
|
+
#### HTTP 403
|
|
684
|
+
|
|
685
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
686
|
+
| --- | --- | --- | --- | --- |
|
|
687
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
688
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
689
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
690
|
+
|
|
691
|
+
#### HTTP 404
|
|
692
|
+
|
|
693
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
694
|
+
| --- | --- | --- | --- | --- |
|
|
695
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
696
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
697
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
698
|
+
|
|
699
|
+
#### HTTP 409
|
|
700
|
+
|
|
701
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
702
|
+
| --- | --- | --- | --- | --- |
|
|
703
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
704
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
705
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
706
|
+
|
|
707
|
+
#### HTTP 410
|
|
708
|
+
|
|
709
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
710
|
+
| --- | --- | --- | --- | --- |
|
|
711
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
712
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
713
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
714
|
+
|
|
715
|
+
#### HTTP 412
|
|
716
|
+
|
|
717
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
718
|
+
| --- | --- | --- | --- | --- |
|
|
719
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
720
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
721
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
722
|
+
|
|
723
|
+
#### HTTP 422
|
|
724
|
+
|
|
725
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
726
|
+
| --- | --- | --- | --- | --- |
|
|
727
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
728
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
729
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
730
|
+
|
|
731
|
+
#### HTTP 423
|
|
732
|
+
|
|
733
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
734
|
+
| --- | --- | --- | --- | --- |
|
|
735
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
736
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
737
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
738
|
+
|
|
739
|
+
#### HTTP 428
|
|
740
|
+
|
|
741
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
742
|
+
| --- | --- | --- | --- | --- |
|
|
743
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
744
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
745
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
746
|
+
|
|
747
|
+
#### HTTP 429
|
|
748
|
+
|
|
749
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
750
|
+
| --- | --- | --- | --- | --- |
|
|
751
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
752
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
753
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
754
|
+
|
|
755
|
+
#### HTTP 500
|
|
756
|
+
|
|
757
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
758
|
+
| --- | --- | --- | --- | --- |
|
|
759
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
760
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
761
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
762
|
+
|
|
763
|
+
### Known error codes
|
|
764
|
+
|
|
765
|
+
`authentication_failed`, `program_grant_denied`, `invalid_request`, `not_found`, `integrity_conflict`, `idempotency_payload_mismatch`, `version_already_recorded`, `mapping_revision_not_approved`, `fact_type_not_allowed`, `managed_route_refused`, `ambiguous_lookup_selector`, `precondition_failed`, `stale_revision`, `intent_token_rejected`, `intent_expired`, `too_many_requests`, `rate_limited`
|
|
766
|
+
|
|
767
|
+
Unknown codes may also occur.
|
|
768
|
+
|
|
769
|
+
## GET /api/card/connect/intents/{id}/cards
|
|
770
|
+
|
|
771
|
+
List currently bound cards and the optimistic concurrency revision for an active connect intent.
|
|
772
|
+
|
|
773
|
+
### Request headers and path parameters
|
|
774
|
+
|
|
775
|
+
| Name | Location | Required | Constraints |
|
|
776
|
+
| --- | --- | --- | --- |
|
|
777
|
+
| `x-api-key` | header | Yes | See authentication |
|
|
778
|
+
| `x-api-timestamp` | header | Yes | See authentication |
|
|
779
|
+
| `x-api-nonce` | header | Yes | See authentication |
|
|
780
|
+
| `x-api-signature` | header | Yes | See authentication |
|
|
781
|
+
| `id` | path | Yes | pattern `^cint_[A-Za-z0-9_-]{16,}$` |
|
|
782
|
+
| `x-facto-intent-token` | header | Yes | min length 32; max length 8192 |
|
|
783
|
+
|
|
784
|
+
`x-facto-intent-token` is the signed intent token Facto issues when the user opens this connect intent. Obtain the original token through the user handoff and present it only for that live intent; the partner does not create it.
|
|
785
|
+
|
|
786
|
+
### Request body
|
|
787
|
+
|
|
788
|
+
No structured JSON body is specified.
|
|
789
|
+
|
|
790
|
+
### Responses
|
|
791
|
+
|
|
792
|
+
#### HTTP 200
|
|
793
|
+
|
|
794
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
795
|
+
| --- | --- | --- | --- | --- |
|
|
796
|
+
| `cards` | array | Yes | items: [`IntentCardItem`](schemas.md#intentcarditem) | Card set for this intent. |
|
|
797
|
+
| `id` | [`ConnectIntentId`](schemas.md#connectintentid) | Yes | pattern `^cint_[A-Za-z0-9_-]{16,}$` | Resource identifier. |
|
|
798
|
+
| `revision` | [`ConnectIntentDigest`](schemas.md#connectintentdigest) | Yes | pattern `^sha256:[a-fA-F0-9]{64}$` | Optimistic concurrency revision. |
|
|
799
|
+
|
|
800
|
+
#### HTTP 400
|
|
801
|
+
|
|
802
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
803
|
+
| --- | --- | --- | --- | --- |
|
|
804
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
805
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
806
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
807
|
+
|
|
808
|
+
#### HTTP 401
|
|
809
|
+
|
|
810
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
811
|
+
| --- | --- | --- | --- | --- |
|
|
812
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
813
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
814
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
815
|
+
|
|
816
|
+
#### HTTP 403
|
|
817
|
+
|
|
818
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
819
|
+
| --- | --- | --- | --- | --- |
|
|
820
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
821
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
822
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
823
|
+
|
|
824
|
+
#### HTTP 404
|
|
825
|
+
|
|
826
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
827
|
+
| --- | --- | --- | --- | --- |
|
|
828
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
829
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
830
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
831
|
+
|
|
832
|
+
#### HTTP 409
|
|
833
|
+
|
|
834
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
835
|
+
| --- | --- | --- | --- | --- |
|
|
836
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
837
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
838
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
839
|
+
|
|
840
|
+
#### HTTP 410
|
|
841
|
+
|
|
842
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
843
|
+
| --- | --- | --- | --- | --- |
|
|
844
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
845
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
846
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
847
|
+
|
|
848
|
+
#### HTTP 412
|
|
849
|
+
|
|
850
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
851
|
+
| --- | --- | --- | --- | --- |
|
|
852
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
853
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
854
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
855
|
+
|
|
856
|
+
#### HTTP 422
|
|
857
|
+
|
|
858
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
859
|
+
| --- | --- | --- | --- | --- |
|
|
860
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
861
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
862
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
863
|
+
|
|
864
|
+
#### HTTP 423
|
|
865
|
+
|
|
866
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
867
|
+
| --- | --- | --- | --- | --- |
|
|
868
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
869
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
870
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
871
|
+
|
|
872
|
+
#### HTTP 428
|
|
873
|
+
|
|
874
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
875
|
+
| --- | --- | --- | --- | --- |
|
|
876
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
877
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
878
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
879
|
+
|
|
880
|
+
#### HTTP 429
|
|
881
|
+
|
|
882
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
883
|
+
| --- | --- | --- | --- | --- |
|
|
884
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
885
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
886
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
887
|
+
|
|
888
|
+
#### HTTP 500
|
|
889
|
+
|
|
890
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
891
|
+
| --- | --- | --- | --- | --- |
|
|
892
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
893
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
894
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
895
|
+
|
|
896
|
+
### Known error codes
|
|
897
|
+
|
|
898
|
+
`authentication_failed`, `program_grant_denied`, `invalid_request`, `not_found`, `integrity_conflict`, `idempotency_payload_mismatch`, `version_already_recorded`, `mapping_revision_not_approved`, `fact_type_not_allowed`, `managed_route_refused`, `ambiguous_lookup_selector`, `precondition_failed`, `stale_revision`, `intent_token_rejected`, `intent_expired`, `too_many_requests`, `rate_limited`
|
|
899
|
+
|
|
900
|
+
Unknown codes may also occur.
|
|
901
|
+
|
|
902
|
+
## PUT /api/card/connect/intents/{id}/cards
|
|
903
|
+
|
|
904
|
+
Atomically replace the cardholder-approved target card set for an active connect intent.
|
|
905
|
+
|
|
906
|
+
### Request headers and path parameters
|
|
907
|
+
|
|
908
|
+
| Name | Location | Required | Constraints |
|
|
909
|
+
| --- | --- | --- | --- |
|
|
910
|
+
| `x-api-key` | header | Yes | See authentication |
|
|
911
|
+
| `x-api-timestamp` | header | Yes | See authentication |
|
|
912
|
+
| `x-api-nonce` | header | Yes | See authentication |
|
|
913
|
+
| `x-api-signature` | header | Yes | See authentication |
|
|
914
|
+
| `Content-Type` | header | When sending JSON | `application/json` |
|
|
915
|
+
| `id` | path | Yes | pattern `^cint_[A-Za-z0-9_-]{16,}$` |
|
|
916
|
+
| `Idempotency-Key` | header | Yes | min length 16; max length 255 |
|
|
917
|
+
|
|
918
|
+
### Request body
|
|
919
|
+
|
|
920
|
+
Body required.
|
|
921
|
+
|
|
922
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
923
|
+
| --- | --- | --- | --- | --- |
|
|
924
|
+
| `approval_id` | string | Yes | min length 1; max length 255 | Partner approval identifier for the card replacement. |
|
|
925
|
+
| `approval_sha256` | string | Yes | pattern `^[a-f0-9]{64}$` | Lowercase SHA-256 digest of the approved payload. |
|
|
926
|
+
| `cards` | array | Yes | max items 50; items: [`TargetCardInput`](schemas.md#targetcardinput) | Card set for this intent. |
|
|
927
|
+
| `external_account_id` | one of the variants below | No | — | Opaque partner account identifier. |
|
|
928
|
+
| `intent_token` | string | Yes | — | Signed intent token issued by Facto for this connect intent. |
|
|
929
|
+
| `revision` | [`ConnectIntentDigest`](schemas.md#connectintentdigest) | Yes | pattern `^sha256:[a-fA-F0-9]{64}$` | Optimistic concurrency revision. |
|
|
930
|
+
|
|
931
|
+
|
|
932
|
+
**external_account_id variants**
|
|
933
|
+
|
|
934
|
+
#### Variant 1
|
|
935
|
+
|
|
936
|
+
Type: string. Constraints: min length 1; max length 512.
|
|
937
|
+
|
|
938
|
+
|
|
939
|
+
#### Variant 2
|
|
940
|
+
|
|
941
|
+
Type: null. Constraints: —.
|
|
942
|
+
|
|
943
|
+
### Responses
|
|
944
|
+
|
|
945
|
+
#### HTTP 200
|
|
946
|
+
|
|
947
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
948
|
+
| --- | --- | --- | --- | --- |
|
|
949
|
+
| `added_binding_ids` | array | Yes | items: [`CardBindingId`](schemas.md#cardbindingid) | Binding IDs created by this replacement. |
|
|
950
|
+
| `id` | [`ConnectIntentId`](schemas.md#connectintentid) | Yes | pattern `^cint_[A-Za-z0-9_-]{16,}$` | Resource identifier. |
|
|
951
|
+
| `kept_binding_ids` | array | Yes | items: [`CardBindingId`](schemas.md#cardbindingid) | Binding IDs preserved unchanged. |
|
|
952
|
+
| `removed_binding_ids` | array | Yes | items: [`CardBindingId`](schemas.md#cardbindingid) | Binding IDs revoked by this replacement. |
|
|
953
|
+
| `revision` | [`ConnectIntentDigest`](schemas.md#connectintentdigest) | Yes | pattern `^sha256:[a-fA-F0-9]{64}$` | Optimistic concurrency revision. |
|
|
954
|
+
| `status` | string | Yes | one of `applied`, `no_change` | Reported status; interpret in the context of this response. |
|
|
955
|
+
|
|
956
|
+
#### HTTP 400
|
|
957
|
+
|
|
958
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
959
|
+
| --- | --- | --- | --- | --- |
|
|
960
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
961
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
962
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
963
|
+
|
|
964
|
+
#### HTTP 401
|
|
965
|
+
|
|
966
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
967
|
+
| --- | --- | --- | --- | --- |
|
|
968
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
969
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
970
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
971
|
+
|
|
972
|
+
#### HTTP 403
|
|
973
|
+
|
|
974
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
975
|
+
| --- | --- | --- | --- | --- |
|
|
976
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
977
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
978
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
979
|
+
|
|
980
|
+
#### HTTP 404
|
|
981
|
+
|
|
982
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
983
|
+
| --- | --- | --- | --- | --- |
|
|
984
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
985
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
986
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
987
|
+
|
|
988
|
+
#### HTTP 409
|
|
989
|
+
|
|
990
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
991
|
+
| --- | --- | --- | --- | --- |
|
|
992
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
993
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
994
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
995
|
+
|
|
996
|
+
#### HTTP 410
|
|
997
|
+
|
|
998
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
999
|
+
| --- | --- | --- | --- | --- |
|
|
1000
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1001
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1002
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1003
|
+
|
|
1004
|
+
#### HTTP 412
|
|
1005
|
+
|
|
1006
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1007
|
+
| --- | --- | --- | --- | --- |
|
|
1008
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1009
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1010
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1011
|
+
|
|
1012
|
+
#### HTTP 422
|
|
1013
|
+
|
|
1014
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1015
|
+
| --- | --- | --- | --- | --- |
|
|
1016
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1017
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1018
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1019
|
+
|
|
1020
|
+
#### HTTP 423
|
|
1021
|
+
|
|
1022
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1023
|
+
| --- | --- | --- | --- | --- |
|
|
1024
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1025
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1026
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1027
|
+
|
|
1028
|
+
#### HTTP 428
|
|
1029
|
+
|
|
1030
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1031
|
+
| --- | --- | --- | --- | --- |
|
|
1032
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1033
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1034
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1035
|
+
|
|
1036
|
+
#### HTTP 429
|
|
1037
|
+
|
|
1038
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1039
|
+
| --- | --- | --- | --- | --- |
|
|
1040
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1041
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1042
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1043
|
+
|
|
1044
|
+
#### HTTP 500
|
|
1045
|
+
|
|
1046
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1047
|
+
| --- | --- | --- | --- | --- |
|
|
1048
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1049
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1050
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1051
|
+
|
|
1052
|
+
### Known error codes
|
|
1053
|
+
|
|
1054
|
+
`authentication_failed`, `program_grant_denied`, `invalid_request`, `not_found`, `integrity_conflict`, `idempotency_payload_mismatch`, `version_already_recorded`, `mapping_revision_not_approved`, `fact_type_not_allowed`, `managed_route_refused`, `ambiguous_lookup_selector`, `precondition_failed`, `stale_revision`, `intent_token_rejected`, `intent_expired`, `too_many_requests`, `rate_limited`
|
|
1055
|
+
|
|
1056
|
+
Unknown codes may also occur.
|
|
1057
|
+
|
|
1058
|
+
## GET /api/card/deliveries/dead-letters
|
|
1059
|
+
|
|
1060
|
+
List webhook delivery dead-letter records for the authenticated connection.
|
|
1061
|
+
|
|
1062
|
+
### Request headers and path parameters
|
|
1063
|
+
|
|
1064
|
+
| Name | Location | Required | Constraints |
|
|
1065
|
+
| --- | --- | --- | --- |
|
|
1066
|
+
| `x-api-key` | header | Yes | See authentication |
|
|
1067
|
+
| `x-api-timestamp` | header | Yes | See authentication |
|
|
1068
|
+
| `x-api-nonce` | header | Yes | See authentication |
|
|
1069
|
+
| `x-api-signature` | header | Yes | See authentication |
|
|
1070
|
+
| `limit` | query | No | min 1; max 100 |
|
|
1071
|
+
|
|
1072
|
+
### Request body
|
|
1073
|
+
|
|
1074
|
+
No structured JSON body is specified.
|
|
1075
|
+
|
|
1076
|
+
### Responses
|
|
1077
|
+
|
|
1078
|
+
#### HTTP 200
|
|
1079
|
+
|
|
1080
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1081
|
+
| --- | --- | --- | --- | --- |
|
|
1082
|
+
| `items` | array | Yes | items: [`DeadLetterItem`](schemas.md#deadletteritem) | Items returned on this page. |
|
|
1083
|
+
|
|
1084
|
+
#### HTTP 400
|
|
1085
|
+
|
|
1086
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1087
|
+
| --- | --- | --- | --- | --- |
|
|
1088
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1089
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1090
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1091
|
+
|
|
1092
|
+
#### HTTP 401
|
|
1093
|
+
|
|
1094
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1095
|
+
| --- | --- | --- | --- | --- |
|
|
1096
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1097
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1098
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1099
|
+
|
|
1100
|
+
#### HTTP 403
|
|
1101
|
+
|
|
1102
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1103
|
+
| --- | --- | --- | --- | --- |
|
|
1104
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1105
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1106
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1107
|
+
|
|
1108
|
+
#### HTTP 404
|
|
1109
|
+
|
|
1110
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1111
|
+
| --- | --- | --- | --- | --- |
|
|
1112
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1113
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1114
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1115
|
+
|
|
1116
|
+
#### HTTP 409
|
|
1117
|
+
|
|
1118
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1119
|
+
| --- | --- | --- | --- | --- |
|
|
1120
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1121
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1122
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1123
|
+
|
|
1124
|
+
#### HTTP 410
|
|
1125
|
+
|
|
1126
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1127
|
+
| --- | --- | --- | --- | --- |
|
|
1128
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1129
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1130
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1131
|
+
|
|
1132
|
+
#### HTTP 412
|
|
1133
|
+
|
|
1134
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1135
|
+
| --- | --- | --- | --- | --- |
|
|
1136
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1137
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1138
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1139
|
+
|
|
1140
|
+
#### HTTP 422
|
|
1141
|
+
|
|
1142
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1143
|
+
| --- | --- | --- | --- | --- |
|
|
1144
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1145
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1146
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1147
|
+
|
|
1148
|
+
#### HTTP 423
|
|
1149
|
+
|
|
1150
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1151
|
+
| --- | --- | --- | --- | --- |
|
|
1152
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1153
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1154
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1155
|
+
|
|
1156
|
+
#### HTTP 428
|
|
1157
|
+
|
|
1158
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1159
|
+
| --- | --- | --- | --- | --- |
|
|
1160
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1161
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1162
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1163
|
+
|
|
1164
|
+
#### HTTP 429
|
|
1165
|
+
|
|
1166
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1167
|
+
| --- | --- | --- | --- | --- |
|
|
1168
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1169
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1170
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1171
|
+
|
|
1172
|
+
#### HTTP 500
|
|
1173
|
+
|
|
1174
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1175
|
+
| --- | --- | --- | --- | --- |
|
|
1176
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1177
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1178
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1179
|
+
|
|
1180
|
+
### Known error codes
|
|
1181
|
+
|
|
1182
|
+
`authentication_failed`, `program_grant_denied`, `invalid_request`, `not_found`, `integrity_conflict`, `idempotency_payload_mismatch`, `version_already_recorded`, `mapping_revision_not_approved`, `fact_type_not_allowed`, `managed_route_refused`, `ambiguous_lookup_selector`, `precondition_failed`, `stale_revision`, `intent_token_rejected`, `intent_expired`, `too_many_requests`, `rate_limited`
|
|
1183
|
+
|
|
1184
|
+
Unknown codes may also occur.
|
|
1185
|
+
|
|
1186
|
+
## POST /api/card/deliveries/dead-letters/{id}/replay
|
|
1187
|
+
|
|
1188
|
+
Accept a single dead-lettered webhook delivery for asynchronous redelivery.
|
|
1189
|
+
|
|
1190
|
+
### Request headers and path parameters
|
|
1191
|
+
|
|
1192
|
+
| Name | Location | Required | Constraints |
|
|
1193
|
+
| --- | --- | --- | --- |
|
|
1194
|
+
| `x-api-key` | header | Yes | See authentication |
|
|
1195
|
+
| `x-api-timestamp` | header | Yes | See authentication |
|
|
1196
|
+
| `x-api-nonce` | header | Yes | See authentication |
|
|
1197
|
+
| `x-api-signature` | header | Yes | See authentication |
|
|
1198
|
+
| `id` | path | Yes | format uuid |
|
|
1199
|
+
|
|
1200
|
+
### Request body
|
|
1201
|
+
|
|
1202
|
+
No structured JSON body is specified.
|
|
1203
|
+
|
|
1204
|
+
### Responses
|
|
1205
|
+
|
|
1206
|
+
#### HTTP 202
|
|
1207
|
+
|
|
1208
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1209
|
+
| --- | --- | --- | --- | --- |
|
|
1210
|
+
| `id` | [`CardUuid`](schemas.md#carduuid) | Yes | format uuid | Resource identifier. |
|
|
1211
|
+
| `status` | string | Yes | equals `accepted` | Reported status; interpret in the context of this response. |
|
|
1212
|
+
|
|
1213
|
+
#### HTTP 400
|
|
1214
|
+
|
|
1215
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1216
|
+
| --- | --- | --- | --- | --- |
|
|
1217
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1218
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1219
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1220
|
+
|
|
1221
|
+
#### HTTP 401
|
|
1222
|
+
|
|
1223
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1224
|
+
| --- | --- | --- | --- | --- |
|
|
1225
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1226
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1227
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1228
|
+
|
|
1229
|
+
#### HTTP 403
|
|
1230
|
+
|
|
1231
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1232
|
+
| --- | --- | --- | --- | --- |
|
|
1233
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1234
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1235
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1236
|
+
|
|
1237
|
+
#### HTTP 404
|
|
1238
|
+
|
|
1239
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1240
|
+
| --- | --- | --- | --- | --- |
|
|
1241
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1242
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1243
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1244
|
+
|
|
1245
|
+
#### HTTP 409
|
|
1246
|
+
|
|
1247
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1248
|
+
| --- | --- | --- | --- | --- |
|
|
1249
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1250
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1251
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1252
|
+
|
|
1253
|
+
#### HTTP 410
|
|
1254
|
+
|
|
1255
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1256
|
+
| --- | --- | --- | --- | --- |
|
|
1257
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1258
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1259
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1260
|
+
|
|
1261
|
+
#### HTTP 412
|
|
1262
|
+
|
|
1263
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1264
|
+
| --- | --- | --- | --- | --- |
|
|
1265
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1266
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1267
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1268
|
+
|
|
1269
|
+
#### HTTP 422
|
|
1270
|
+
|
|
1271
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1272
|
+
| --- | --- | --- | --- | --- |
|
|
1273
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1274
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1275
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1276
|
+
|
|
1277
|
+
#### HTTP 423
|
|
1278
|
+
|
|
1279
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1280
|
+
| --- | --- | --- | --- | --- |
|
|
1281
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1282
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1283
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1284
|
+
|
|
1285
|
+
#### HTTP 428
|
|
1286
|
+
|
|
1287
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1288
|
+
| --- | --- | --- | --- | --- |
|
|
1289
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1290
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1291
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1292
|
+
|
|
1293
|
+
#### HTTP 429
|
|
1294
|
+
|
|
1295
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1296
|
+
| --- | --- | --- | --- | --- |
|
|
1297
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1298
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1299
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1300
|
+
|
|
1301
|
+
#### HTTP 500
|
|
1302
|
+
|
|
1303
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1304
|
+
| --- | --- | --- | --- | --- |
|
|
1305
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1306
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1307
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1308
|
+
|
|
1309
|
+
### Known error codes
|
|
1310
|
+
|
|
1311
|
+
`authentication_failed`, `program_grant_denied`, `invalid_request`, `not_found`, `integrity_conflict`, `idempotency_payload_mismatch`, `version_already_recorded`, `mapping_revision_not_approved`, `fact_type_not_allowed`, `managed_route_refused`, `ambiguous_lookup_selector`, `precondition_failed`, `stale_revision`, `intent_token_rejected`, `intent_expired`, `too_many_requests`, `rate_limited`
|
|
1312
|
+
|
|
1313
|
+
Unknown codes may also occur.
|
|
1314
|
+
|
|
1315
|
+
## POST /api/card/deliveries/reconciliations/list
|
|
1316
|
+
|
|
1317
|
+
List paginated webhook delivery reconciliation items within a bounded snapshot.
|
|
1318
|
+
|
|
1319
|
+
### Request headers and path parameters
|
|
1320
|
+
|
|
1321
|
+
| Name | Location | Required | Constraints |
|
|
1322
|
+
| --- | --- | --- | --- |
|
|
1323
|
+
| `x-api-key` | header | Yes | See authentication |
|
|
1324
|
+
| `x-api-timestamp` | header | Yes | See authentication |
|
|
1325
|
+
| `x-api-nonce` | header | Yes | See authentication |
|
|
1326
|
+
| `x-api-signature` | header | Yes | See authentication |
|
|
1327
|
+
| `Content-Type` | header | When sending JSON | `application/json` |
|
|
1328
|
+
|
|
1329
|
+
### Request body
|
|
1330
|
+
|
|
1331
|
+
Body required.
|
|
1332
|
+
|
|
1333
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1334
|
+
| --- | --- | --- | --- | --- |
|
|
1335
|
+
| `cursor` | string | No | min length 16; max length 4096 | Cursor returned by the preceding page. |
|
|
1336
|
+
| `from_at` | [`CardTimestamp`](schemas.md#cardtimestamp) | No | format date-time | Lower boundary of the approved reconciliation time window. |
|
|
1337
|
+
| `page_size` | integer | Yes | min 1; max 100 | Maximum number of items in a page. |
|
|
1338
|
+
| `program_id` | string | Yes | min length 1; max length 512 | Program identifier assigned for this environment. |
|
|
1339
|
+
| `selection_id` | [`CardUuid`](schemas.md#carduuid) | No | format uuid | Previously approved historical selection. |
|
|
1340
|
+
| `snapshot_token` | string | No | min length 16; max length 4096 | Snapshot token returned by the first page. |
|
|
1341
|
+
| `target_revision` | [`CardUuid`](schemas.md#carduuid) | Yes | format uuid | Delivery target revision. |
|
|
1342
|
+
| `to_at` | [`CardTimestamp`](schemas.md#cardtimestamp) | No | format date-time | Upper boundary of the approved reconciliation time window. |
|
|
1343
|
+
|
|
1344
|
+
|
|
1345
|
+
Conditional rules:
|
|
1346
|
+
|
|
1347
|
+
- Choose exactly one: `selection_id` without time fields, or both `from_at` and `to_at` without `selection_id`.
|
|
1348
|
+
|
|
1349
|
+
### Responses
|
|
1350
|
+
|
|
1351
|
+
#### HTTP 200
|
|
1352
|
+
|
|
1353
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1354
|
+
| --- | --- | --- | --- | --- |
|
|
1355
|
+
| `complete` | boolean | Yes | — | Whether this snapshot page is the last page. |
|
|
1356
|
+
| `items` | array | Yes | min items 0; max items 100; items: [`DeliveryItem`](schemas.md#deliveryitem) | Items returned on this page. |
|
|
1357
|
+
| `next_cursor` | string or null | Yes | max length 4096 | Cursor for the next page, or null at the end. |
|
|
1358
|
+
| `snapshot_at` | [`CardTimestamp`](schemas.md#cardtimestamp) | Yes | format date-time | Timestamp at which the snapshot was captured. |
|
|
1359
|
+
| `snapshot_token` | string | Yes | min length 16; max length 4096 | Snapshot token returned by the first page. |
|
|
1360
|
+
| `to_at` | [`CardTimestamp`](schemas.md#cardtimestamp) | Yes | format date-time | Upper boundary of the approved reconciliation time window. |
|
|
1361
|
+
|
|
1362
|
+
#### HTTP 400
|
|
1363
|
+
|
|
1364
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1365
|
+
| --- | --- | --- | --- | --- |
|
|
1366
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
1367
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
1368
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
1369
|
+
|
|
1370
|
+
#### HTTP 401
|
|
1371
|
+
|
|
1372
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1373
|
+
| --- | --- | --- | --- | --- |
|
|
1374
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
1375
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
1376
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
1377
|
+
|
|
1378
|
+
#### HTTP 403
|
|
1379
|
+
|
|
1380
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1381
|
+
| --- | --- | --- | --- | --- |
|
|
1382
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
1383
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
1384
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
1385
|
+
|
|
1386
|
+
#### HTTP 404
|
|
1387
|
+
|
|
1388
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1389
|
+
| --- | --- | --- | --- | --- |
|
|
1390
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
1391
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
1392
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
1393
|
+
|
|
1394
|
+
#### HTTP 409
|
|
1395
|
+
|
|
1396
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1397
|
+
| --- | --- | --- | --- | --- |
|
|
1398
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
1399
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
1400
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
1401
|
+
|
|
1402
|
+
#### HTTP 500
|
|
1403
|
+
|
|
1404
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1405
|
+
| --- | --- | --- | --- | --- |
|
|
1406
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
1407
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
1408
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
1409
|
+
|
|
1410
|
+
#### HTTP 503
|
|
1411
|
+
|
|
1412
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1413
|
+
| --- | --- | --- | --- | --- |
|
|
1414
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
1415
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
1416
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
1417
|
+
|
|
1418
|
+
### Known error codes
|
|
1419
|
+
|
|
1420
|
+
`authentication_failed`, `program_grant_denied`, `invalid_request`, `not_found`, `integrity_conflict`, `idempotency_payload_mismatch`, `version_already_recorded`, `mapping_revision_not_approved`, `fact_type_not_allowed`, `managed_route_refused`, `ambiguous_lookup_selector`, `precondition_failed`, `stale_revision`, `intent_token_rejected`, `intent_expired`, `too_many_requests`, `rate_limited`
|
|
1421
|
+
|
|
1422
|
+
Unknown codes may also occur.
|
|
1423
|
+
|
|
1424
|
+
## POST /api/card/deliveries/replays
|
|
1425
|
+
|
|
1426
|
+
Create an asynchronous replay job for an approved historical event selection.
|
|
1427
|
+
|
|
1428
|
+
### Request headers and path parameters
|
|
1429
|
+
|
|
1430
|
+
| Name | Location | Required | Constraints |
|
|
1431
|
+
| --- | --- | --- | --- |
|
|
1432
|
+
| `x-api-key` | header | Yes | See authentication |
|
|
1433
|
+
| `x-api-timestamp` | header | Yes | See authentication |
|
|
1434
|
+
| `x-api-nonce` | header | Yes | See authentication |
|
|
1435
|
+
| `x-api-signature` | header | Yes | See authentication |
|
|
1436
|
+
| `Content-Type` | header | When sending JSON | `application/json` |
|
|
1437
|
+
| `Idempotency-Key` | header | Yes | min length 16; max length 255 |
|
|
1438
|
+
|
|
1439
|
+
### Request body
|
|
1440
|
+
|
|
1441
|
+
Body required.
|
|
1442
|
+
|
|
1443
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1444
|
+
| --- | --- | --- | --- | --- |
|
|
1445
|
+
| `program_id` | string | Yes | min length 1; max length 512 | Program identifier assigned for this environment. |
|
|
1446
|
+
| `selection_id` | [`CardUuid`](schemas.md#carduuid) | Yes | format uuid | Previously approved historical selection. |
|
|
1447
|
+
|
|
1448
|
+
### Responses
|
|
1449
|
+
|
|
1450
|
+
#### HTTP 202
|
|
1451
|
+
|
|
1452
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1453
|
+
| --- | --- | --- | --- | --- |
|
|
1454
|
+
| `replay_id` | [`CardUuid`](schemas.md#carduuid) | Yes | format uuid | Historical replay job identifier. |
|
|
1455
|
+
| `selection_id` | [`CardUuid`](schemas.md#carduuid) | Yes | format uuid | Previously approved historical selection. |
|
|
1456
|
+
| `status` | string | Yes | equals `accepted` | Reported status; interpret in the context of this response. |
|
|
1457
|
+
| `target_revision` | [`CardUuid`](schemas.md#carduuid) | Yes | format uuid | Delivery target revision. |
|
|
1458
|
+
|
|
1459
|
+
#### HTTP 400
|
|
1460
|
+
|
|
1461
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1462
|
+
| --- | --- | --- | --- | --- |
|
|
1463
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
1464
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
1465
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
1466
|
+
|
|
1467
|
+
#### HTTP 401
|
|
1468
|
+
|
|
1469
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1470
|
+
| --- | --- | --- | --- | --- |
|
|
1471
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
1472
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
1473
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
1474
|
+
|
|
1475
|
+
#### HTTP 403
|
|
1476
|
+
|
|
1477
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1478
|
+
| --- | --- | --- | --- | --- |
|
|
1479
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
1480
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
1481
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
1482
|
+
|
|
1483
|
+
#### HTTP 404
|
|
1484
|
+
|
|
1485
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1486
|
+
| --- | --- | --- | --- | --- |
|
|
1487
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
1488
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
1489
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
1490
|
+
|
|
1491
|
+
#### HTTP 409
|
|
1492
|
+
|
|
1493
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1494
|
+
| --- | --- | --- | --- | --- |
|
|
1495
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
1496
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
1497
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
1498
|
+
|
|
1499
|
+
#### HTTP 500
|
|
1500
|
+
|
|
1501
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1502
|
+
| --- | --- | --- | --- | --- |
|
|
1503
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
1504
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
1505
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
1506
|
+
|
|
1507
|
+
#### HTTP 503
|
|
1508
|
+
|
|
1509
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1510
|
+
| --- | --- | --- | --- | --- |
|
|
1511
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `not_found`, `integrity_conflict`, `query_unavailable`, `history_selection_mismatch`, `read_snapshot_stale`, `read_snapshot_expired`, `internal_error` | Machine-readable error code. |
|
|
1512
|
+
| `message` | string | Yes | min length 1; max length 512 | Human-readable explanation. |
|
|
1513
|
+
| `request_id` | string | Yes | min length 1; max length 128 | Request correlation identifier. |
|
|
1514
|
+
|
|
1515
|
+
### Known error codes
|
|
1516
|
+
|
|
1517
|
+
`authentication_failed`, `program_grant_denied`, `invalid_request`, `not_found`, `integrity_conflict`, `idempotency_payload_mismatch`, `version_already_recorded`, `mapping_revision_not_approved`, `fact_type_not_allowed`, `managed_route_refused`, `ambiguous_lookup_selector`, `precondition_failed`, `stale_revision`, `intent_token_rejected`, `intent_expired`, `too_many_requests`, `rate_limited`
|
|
1518
|
+
|
|
1519
|
+
Unknown codes may also occur.
|
|
1520
|
+
|
|
1521
|
+
## POST /api/card/events
|
|
1522
|
+
|
|
1523
|
+
Record a signed inbound card lifecycle or account release event.
|
|
1524
|
+
|
|
1525
|
+
### Request headers and path parameters
|
|
1526
|
+
|
|
1527
|
+
| Name | Location | Required | Constraints |
|
|
1528
|
+
| --- | --- | --- | --- |
|
|
1529
|
+
| `x-api-key` | header | Yes | See authentication |
|
|
1530
|
+
| `x-api-timestamp` | header | Yes | See authentication |
|
|
1531
|
+
| `x-api-nonce` | header | Yes | See authentication |
|
|
1532
|
+
| `x-api-signature` | header | Yes | See authentication |
|
|
1533
|
+
| `Content-Type` | header | When sending JSON | `application/json` |
|
|
1534
|
+
|
|
1535
|
+
### Request body
|
|
1536
|
+
|
|
1537
|
+
Body required.
|
|
1538
|
+
|
|
1539
|
+
#### Variant 1
|
|
1540
|
+
|
|
1541
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1542
|
+
| --- | --- | --- | --- | --- |
|
|
1543
|
+
| `assertion_jws` | string | Yes | min length 1; pattern `\S` | Certified compact JWS assertion signed by the partner. |
|
|
1544
|
+
| `delivery_id` | string | Yes | min length 1; max length 255 | Partner delivery UUID. |
|
|
1545
|
+
| `external_account_id` | null | No | — | Opaque partner account identifier. |
|
|
1546
|
+
| `external_card_id` | string | Yes | min length 1; max length 255 | Opaque card identifier assigned by the partner. |
|
|
1547
|
+
| `kind` | string | Yes | equals `card.unbound` | Kind of event or fact. |
|
|
1548
|
+
| `lifecycle_status` | null | No | — | Updated card lifecycle status. |
|
|
1549
|
+
|
|
1550
|
+
|
|
1551
|
+
#### Variant 2
|
|
1552
|
+
|
|
1553
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1554
|
+
| --- | --- | --- | --- | --- |
|
|
1555
|
+
| `assertion_jws` | string | Yes | min length 1; pattern `\S` | Certified compact JWS assertion signed by the partner. |
|
|
1556
|
+
| `delivery_id` | string | Yes | min length 1; max length 255 | Partner delivery UUID. |
|
|
1557
|
+
| `external_account_id` | null | No | — | Opaque partner account identifier. |
|
|
1558
|
+
| `external_card_id` | string | Yes | min length 1; max length 255 | Opaque card identifier assigned by the partner. |
|
|
1559
|
+
| `kind` | string | Yes | equals `card.lifecycle_changed` | Kind of event or fact. |
|
|
1560
|
+
| `lifecycle_status` | string | Yes | one of `pending`, `active`, `frozen`, `closed`, `replaced`, `unknown` | Updated card lifecycle status. |
|
|
1561
|
+
|
|
1562
|
+
|
|
1563
|
+
#### Variant 3
|
|
1564
|
+
|
|
1565
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1566
|
+
| --- | --- | --- | --- | --- |
|
|
1567
|
+
| `assertion_jws` | string | Yes | min length 1; pattern `\S` | Certified compact JWS assertion signed by the partner. |
|
|
1568
|
+
| `delivery_id` | string | Yes | min length 1; max length 255 | Partner delivery UUID. |
|
|
1569
|
+
| `external_account_id` | string | Yes | min length 1; max length 512 | Opaque partner account identifier. |
|
|
1570
|
+
| `external_card_id` | null | No | — | Opaque card identifier assigned by the partner. |
|
|
1571
|
+
| `kind` | string | Yes | equals `account.released` | Kind of event or fact. |
|
|
1572
|
+
| `lifecycle_status` | null | No | — | Updated card lifecycle status. |
|
|
1573
|
+
|
|
1574
|
+
### Responses
|
|
1575
|
+
|
|
1576
|
+
#### HTTP 200
|
|
1577
|
+
|
|
1578
|
+
#### Variant 1
|
|
1579
|
+
|
|
1580
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1581
|
+
| --- | --- | --- | --- | --- |
|
|
1582
|
+
| `delivery_id` | string | Yes | min length 1; max length 255 | Partner delivery UUID. |
|
|
1583
|
+
| `disposition` | string | Yes | equals `applied` | Whether the inbound event was applied or deduplicated. |
|
|
1584
|
+
| `effect` | string | Yes | one of `revoked`, `status_updated`, `released`, `none` | Reported lifecycle effect. |
|
|
1585
|
+
|
|
1586
|
+
|
|
1587
|
+
#### Variant 2
|
|
1588
|
+
|
|
1589
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1590
|
+
| --- | --- | --- | --- | --- |
|
|
1591
|
+
| `delivery_id` | string | Yes | min length 1; max length 255 | Partner delivery UUID. |
|
|
1592
|
+
| `disposition` | string | Yes | equals `duplicate` | Whether the inbound event was applied or deduplicated. |
|
|
1593
|
+
| `effect` | null | Yes | — | Reported lifecycle effect. |
|
|
1594
|
+
|
|
1595
|
+
#### HTTP 400
|
|
1596
|
+
|
|
1597
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1598
|
+
| --- | --- | --- | --- | --- |
|
|
1599
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1600
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1601
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1602
|
+
|
|
1603
|
+
#### HTTP 401
|
|
1604
|
+
|
|
1605
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1606
|
+
| --- | --- | --- | --- | --- |
|
|
1607
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1608
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1609
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1610
|
+
|
|
1611
|
+
#### HTTP 403
|
|
1612
|
+
|
|
1613
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1614
|
+
| --- | --- | --- | --- | --- |
|
|
1615
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1616
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1617
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1618
|
+
|
|
1619
|
+
#### HTTP 404
|
|
1620
|
+
|
|
1621
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1622
|
+
| --- | --- | --- | --- | --- |
|
|
1623
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1624
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1625
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1626
|
+
|
|
1627
|
+
#### HTTP 409
|
|
1628
|
+
|
|
1629
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1630
|
+
| --- | --- | --- | --- | --- |
|
|
1631
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1632
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1633
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1634
|
+
|
|
1635
|
+
#### HTTP 410
|
|
1636
|
+
|
|
1637
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1638
|
+
| --- | --- | --- | --- | --- |
|
|
1639
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1640
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1641
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1642
|
+
|
|
1643
|
+
#### HTTP 412
|
|
1644
|
+
|
|
1645
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1646
|
+
| --- | --- | --- | --- | --- |
|
|
1647
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1648
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1649
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1650
|
+
|
|
1651
|
+
#### HTTP 422
|
|
1652
|
+
|
|
1653
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1654
|
+
| --- | --- | --- | --- | --- |
|
|
1655
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1656
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1657
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1658
|
+
|
|
1659
|
+
#### HTTP 423
|
|
1660
|
+
|
|
1661
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1662
|
+
| --- | --- | --- | --- | --- |
|
|
1663
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1664
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1665
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1666
|
+
|
|
1667
|
+
#### HTTP 428
|
|
1668
|
+
|
|
1669
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1670
|
+
| --- | --- | --- | --- | --- |
|
|
1671
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1672
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1673
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1674
|
+
|
|
1675
|
+
#### HTTP 429
|
|
1676
|
+
|
|
1677
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1678
|
+
| --- | --- | --- | --- | --- |
|
|
1679
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1680
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1681
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1682
|
+
|
|
1683
|
+
#### HTTP 500
|
|
1684
|
+
|
|
1685
|
+
| Field | Type | Required | Constraints | Meaning |
|
|
1686
|
+
| --- | --- | --- | --- | --- |
|
|
1687
|
+
| `error` | string | Yes | one of `invalid_request`, `authentication_failed`, `program_grant_denied`, `assertion_rejected`, `assertion_replayed`, `tenant_scope_mismatch`, `integrity_conflict`, `provider_proof_required`, `proof_mode_denied`, `binding_admission_closed`, `prohibited_data`, `return_uri_not_registered`, `not_found`, `rate_limited`, `intent_token_rejected`, `intent_sealed`, `intent_expired`, `stale_revision`, `internal_error` | Machine-readable error code. |
|
|
1688
|
+
| `message` | string | Yes | — | Human-readable explanation. |
|
|
1689
|
+
| `request_id` | string | Yes | — | Request correlation identifier. |
|
|
1690
|
+
|
|
1691
|
+
### Known error codes
|
|
1692
|
+
|
|
1693
|
+
`authentication_failed`, `program_grant_denied`, `invalid_request`, `not_found`, `integrity_conflict`, `idempotency_payload_mismatch`, `version_already_recorded`, `mapping_revision_not_approved`, `fact_type_not_allowed`, `managed_route_refused`, `ambiguous_lookup_selector`, `precondition_failed`, `stale_revision`, `intent_token_rejected`, `intent_expired`, `too_many_requests`, `rate_limited`
|
|
1694
|
+
|
|
1695
|
+
Unknown codes may also occur.
|
|
1696
|
+
|
|
1697
|
+
## Known machine error codes
|
|
1698
|
+
|
|
1699
|
+
The table is not exhaustive. Groups identify source envelopes.
|
|
1700
|
+
|
|
1701
|
+
| Code | Contract group |
|
|
1702
|
+
| --- | --- |
|
|
1703
|
+
| `ambiguous_lookup_selector` | Card machine |
|
|
1704
|
+
| `authentication_failed` | Card machine |
|
|
1705
|
+
| `authorization_admission_closed` | Authorization |
|
|
1706
|
+
| `consent_scope_not_payable` | Authorization |
|
|
1707
|
+
| `decision_deadline_exceeded` | Authorization |
|
|
1708
|
+
| `fact_type_not_allowed` | Card machine |
|
|
1709
|
+
| `idempotency_payload_mismatch` | Card machine |
|
|
1710
|
+
| `integrity_conflict` | Card machine |
|
|
1711
|
+
| `intent_expired` | Card machine |
|
|
1712
|
+
| `intent_token_rejected` | Card machine |
|
|
1713
|
+
| `internal_error` | Authorization |
|
|
1714
|
+
| `invalid_request` | Card machine |
|
|
1715
|
+
| `managed_route_refused` | Card machine |
|
|
1716
|
+
| `mapping_revision_not_approved` | Card machine |
|
|
1717
|
+
| `not_found` | Card machine |
|
|
1718
|
+
| `onchain_insufficient_balance` | Authorization |
|
|
1719
|
+
| `precondition_failed` | Card machine |
|
|
1720
|
+
| `program_grant_denied` | Card machine |
|
|
1721
|
+
| `rate_limited` | Card machine |
|
|
1722
|
+
| `route_not_payable` | Authorization |
|
|
1723
|
+
| `spending_limit_exceeded` | Authorization |
|
|
1724
|
+
| `stale_revision` | Card machine |
|
|
1725
|
+
| `sync_approval_admission_closed` | Authorization |
|
|
1726
|
+
| `too_many_requests` | Card machine |
|
|
1727
|
+
| `version_already_recorded` | Card machine |
|
|
1728
|
+
| `yield_source_underfunded` | Authorization |
|