-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenable-banking-payment-schema.json
More file actions
103 lines (103 loc) · 3.65 KB
/
Copy pathenable-banking-payment-schema.json
File metadata and controls
103 lines (103 loc) · 3.65 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/api-evangelist/enable-banking/main/json-schema/enable-banking-payment-schema.json",
"title": "Enable Banking Payment",
"description": "Payment initiation resource accepted by POST /payments and returned by GET /payments/{payment_id}. Models PSD2 PIS create-payment payloads across SEPA, instant SEPA, domestic, and bulk schemes.",
"type": "object",
"required": ["access", "aspsp", "payment_request"],
"properties": {
"access": {
"type": "object",
"description": "Requested access scope (typically payments).",
"properties": {
"valid_until": { "type": "string", "format": "date-time" }
}
},
"aspsp": {
"type": "object",
"required": ["name", "country"],
"properties": {
"name": { "type": "string", "description": "ASPSP name (e.g. Nordea, OP, Handelsbanken)." },
"country": { "type": "string", "description": "ISO 3166-1 alpha-2 country code." }
}
},
"payment_request": {
"type": "object",
"required": ["payment_type", "credit_transfer_transaction"],
"properties": {
"payment_type": {
"type": "string",
"enum": ["SEPA_CREDIT_TRANSFER", "INSTANT_SEPA_CREDIT_TRANSFER", "DOMESTIC_CREDIT_TRANSFER", "TARGET2_PAYMENT", "BULK_SEPA_CREDIT_TRANSFER", "INSTANT_DOMESTIC_CREDIT_TRANSFER", "FOREIGN_CREDIT_TRANSFER", "PERIODIC_SEPA_CREDIT_TRANSFER", "PERIODIC_DOMESTIC_CREDIT_TRANSFER"],
"description": "Payment scheme as exposed by Enable Banking."
},
"instructed_amount": {
"type": "object",
"properties": {
"currency": { "type": "string" },
"amount": { "type": "string" }
}
},
"creditor": {
"type": "object",
"properties": {
"name": { "type": "string" }
}
},
"creditor_account": {
"type": "object",
"properties": {
"iban": { "type": "string" },
"bban": { "type": "string" }
}
},
"creditor_agent": {
"type": "object",
"properties": {
"bic_fi": { "type": "string" }
}
},
"debtor_account": {
"type": "object",
"properties": {
"iban": { "type": "string" }
}
},
"remittance_information": {
"type": "array",
"items": { "type": "string" }
},
"reference_number": {
"type": "object",
"properties": {
"scheme": {
"type": "string",
"enum": ["RF", "OCR", "KID", "FI", "STRUCTURED"]
},
"reference": { "type": "string" }
}
},
"requested_execution_date": { "type": "string", "format": "date" },
"priority_code": {
"type": "string",
"enum": ["NORM", "HIGH", "URGT"]
},
"charge_bearer_code": {
"type": "string",
"enum": ["DEBT", "CRED", "SHAR", "SLEV"]
}
}
},
"psu_type": {
"type": "string",
"enum": ["personal", "business"]
},
"redirect_url": { "type": "string", "format": "uri" },
"state": { "type": "string", "description": "Opaque caller-supplied state echoed on redirect." },
"payment_id": { "type": "string", "description": "Assigned by Enable Banking after POST /payments." },
"payment_status": {
"type": "string",
"enum": ["RCVD", "PDNG", "PATC", "ACTC", "ACSP", "ACCP", "ACSC", "ACWC", "ACFC", "ACWP", "PART", "RJCT", "CANC"],
"description": "ISO 20022 payment status."
}
}
}