Skip to content

Schedule & Payment App

POST https://sandbox.reggora.io/lender/consumer/payment

ParameterDescriptionRequired
consumer_emailEmail of consumer you are sending payment app to.True
order_idThe ID of the order you want to send the payment app in relation to.True
user_typeEither consumer or manual. The consumer option being automatically sent by saved consumer, the manual option being the payment app being sent to a certain custom consumer you specify with the following values.True
payment_typeEither manual or stripe. The manual option being a manual payment where you set when the payment has been paid. This option should be used when you are adding a payment that has already been completed. The stripe option being a payment done through our Stripe Plaid integration.True
amountThe amount of money you are requesting with the payment app.True
firstnameFirst name of consumer you are sending payment app to.True if user_type = manual
lastnameLast name of consumer you are sending payment app to.True if user_type = manual
paidBoolean describing if payment has been paid already or not.True if payment_type = manual
import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
# For manual payment_type and manual user_type
body = {
'consumer_email': 'example@consumer.com',
'order_id': '5c33c6b1681f110034effc72',
'user_type': 'manual',
'payment_type': 'manual',
'amount': 100,
'firstname': 'Example',
'lastname': 'Consumer',
'paid': False
}
# For stripe payment_type and consumer user_type
body = {
'consumer_email': 'example@consumer.com',
'order_id': '5c33c6b1681f110034effc72',
'user_type': 'consumer',
'payment_type': 'stripe',
'amount': 100,
}
response = requests.post('https://sandbox.reggora.io/lender/consumer/payment', json=body, headers=headers)
{
"data": "Payment app sent.",
"status": 200
}

POST https://sandbox.reggora.io/lender/consumer/scheduling

ParameterDescriptionRequired
consumer_emailsList of emails of the consumers you are sending scheduling app to.True
order_idThe ID of the order you want to send the scheduling app in relation to.True
import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
body = {
'consumer_emails': ['example@consumer.com'],
'order_id': '5c33c6b1681f110034effc72',
}
response = requests.post('https://sandbox.reggora.io/lender/consumer/scheduling', json=body, headers=headers)
{
"data": "Scheduling app sent.",
"status": 200
}

GET https://sandbox.reggora.io/lender/<order_id>/<consumer_id>/<link_type>

ParameterDescriptionRequired
order_idThe ID of the order.True
consumer_idThe ID of the consumer who is accessing the application.True
link_typeThe section of the consumer application you want to show the consumer. This argument can be, payment, scheduling, or bothTrue
import requests
headers = {
'Authorization': 'Bearer {}'.format(REGGORA_AUTH_TOKEN),
'integration': '{}'.format(REGGORA_INTEGRATION_KEY)
}
order_id = '5c33c6b1681f110034effc72'
consumer_id = '5c33c716681f110034effc73'
link_type = 'payment' # payment/schedule/both
response = requests.get('https://sandbox.reggora.io/{}/{}/{}'.format(order_id, consumer_id, link_type), headers=headers)
{
"data": "https://devconnect.reggora.com/schedule/{signed-token}?iframe=true&override=payment",
"status": 200
}