Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -18,20 +18,24 @@ endpoint_choice = st.selectbox("Choose API Endpoint", [
|
|
| 18 |
"Returns",
|
| 19 |
"Incoming Payment Details",
|
| 20 |
"Counterparties",
|
| 21 |
-
"Internal Accounts"
|
|
|
|
|
|
|
| 22 |
])
|
| 23 |
|
| 24 |
# Base URL for Modern Treasury API
|
| 25 |
base_url = "https://app.moderntreasury.com/api/"
|
| 26 |
|
| 27 |
-
# Define API endpoints
|
| 28 |
MODERN_TREASURY_ENDPOINTS = {
|
| 29 |
"Payment Orders": "payment_orders",
|
| 30 |
"Expected Payments": "expected_payments",
|
| 31 |
"Returns": "returns",
|
| 32 |
"Incoming Payment Details": "incoming_payment_details",
|
| 33 |
"Counterparties": "counterparties",
|
| 34 |
-
"Internal Accounts": "internal_accounts"
|
|
|
|
|
|
|
| 35 |
}
|
| 36 |
|
| 37 |
# Function to create the Basic Auth header by encoding the Organization ID and API Key
|
|
|
|
| 18 |
"Returns",
|
| 19 |
"Incoming Payment Details",
|
| 20 |
"Counterparties",
|
| 21 |
+
"Internal Accounts",
|
| 22 |
+
"Ledgers",
|
| 23 |
+
"Ledger Accounts"
|
| 24 |
])
|
| 25 |
|
| 26 |
# Base URL for Modern Treasury API
|
| 27 |
base_url = "https://app.moderntreasury.com/api/"
|
| 28 |
|
| 29 |
+
# Define API endpoints including Ledgers and Ledger Accounts
|
| 30 |
MODERN_TREASURY_ENDPOINTS = {
|
| 31 |
"Payment Orders": "payment_orders",
|
| 32 |
"Expected Payments": "expected_payments",
|
| 33 |
"Returns": "returns",
|
| 34 |
"Incoming Payment Details": "incoming_payment_details",
|
| 35 |
"Counterparties": "counterparties",
|
| 36 |
+
"Internal Accounts": "internal_accounts",
|
| 37 |
+
"Ledgers": "ledgers",
|
| 38 |
+
"Ledger Accounts": "ledger_accounts"
|
| 39 |
}
|
| 40 |
|
| 41 |
# Function to create the Basic Auth header by encoding the Organization ID and API Key
|