Skip to content

Instantly share code, notes, and snippets.

@award28
Created February 19, 2020 19:52
Show Gist options
  • Save award28/efd8dad1a3b687f463cbef11c63c043e to your computer and use it in GitHub Desktop.
Save award28/efd8dad1a3b687f463cbef11c63c043e to your computer and use it in GitHub Desktop.
import requests
import json
customerId = 'your customerId here'
apiKey = 'your apiKey here'
url = 'http://api.reimaginebanking.com/customers/{}/accounts?key={}'.format(customerId,apiKey)
payload = {
"type": "Savings",
"nickname": "test",
"rewards": 10000,
"balance": 10000,
}
# Create a Savings Account
response = requests.post(
url,
data=json.dumps(payload),
headers={'content-type':'application/json'},
)
if response.status_code == 201:
print('account created')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment