aCuotaz flow
- Check the complete flow in the next public link
Integration
1. Create your account in Apurata
Apurata will provide:
- Client ID: Alphanumeric string that identifies each application uniquely. e.g.
yourecommerce
- Secret Token: Alphanumeric string (uuid4) used to transfer data securely between Apurata and your application. You should never reveal this token on your frontend. e.g.
a76c63052c654b6cb331444b261523bc
You must provide:
- Your choosen webhook URL for Apurata. e.g.
http://yourecommerce.com/api/v1/webhooks/apurata/
2. API to create aCuotaz order
You will POST all the information required to create the order, then you will receive a URL to redirect your customer to aCuotaz where he will select the number of installments for his loan.
To see how to send the POST and its response, see our create_order API.
3. Manage order states
Create webhooks on your page to receive updates on orders processed by Apurata.
You can get the order information anytime. It includes the order status and a magic link to easily continue, see our order_information API.
4. API to collect the downpayment in the ecommerce (not implemented yet)
- The customer selects aCuotaz in your checkout.
- The customer is redirected to apurata.com including an
order_id
. - The customer completes the aCuotaz credit assestment process.
- In the downpayment stage, we only show the option to pay in Bitel's website.
- Once the customer clicks that option, we redirect him to Bitel's website.
- The store system makes a query to the endpoint Check order_id to check whether the
order_id
is valid and whether the downpayment is pending - Once the payment is received, the store system calls the endpoint Receive downpayment and billing
- If everything is ok, we will inform you in the response so you can deliver the product to the customer.
5. Add aCuotaz snippets
Check our snippets that you can add to your website.
Testing
Check our testing section.