Discussions
Payments
last month by Skyler Clooney
Hey, I’m testing the Speed API
[code]
import requests
url = "https://api.tryspeed.com/v1/payments"
headers = {"Authorization": "Bearer sk_test_12345", "Content-Type": "application/json"}
data = {"amount_usd": 10.00, "currency": "USD"}
r = requests.post(url, json=data, headers=headers)
print(r.text)
[/code]
Error:
[code]{"error":"invalid_request","message":"Required field 'amount_usd' is missing or invalid"}[/code]
Anyone know what field I’m supposed to use instead of amount_usd?