# Which endpoint to to use using REST API?

**URL:** <https://integration.keap.com/t/which-endpoint-to-to-use-using-rest-api/79561>\
**Category:** API Q&A\
**Tags:** api\
**Created:** [September 10, 2020, 1:52pm UTC](https://integration.keap.com/t/which-endpoint-to-to-use-using-rest-api/79561 "2020-09-10T13:52:00Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alain\_Pilon](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/alain_pilon/32/12216_2.png) [@Alain\_Pilon](https://integration.keap.com/u/Alain_Pilon)\
**Post date:** [September 10, 2020, 1:52pm UTC](https://integration.keap.com/t/which-endpoint-to-to-use-using-rest-api/79561/1 "2020-09-10T13:52:00Z")

</div>

Hello,

Which endpoints using the REST API do I use to do the following:

1. create the invoice
2. add an line item for the plan our users choose
3. charge the credit
4. make it a recurring payment.
5. retrieve the invoice.

Is this possible? We’re using Keap Pro.

Thanks,  
Alain

---

<div class="post-metadata">

**Author:** ![TomScott](https://sea1.discourse-cdn.com/flex019/user_avatar/integration.keap.com/tomscott/32/67_2.png) [@TomScott](https://integration.keap.com/u/TomScott)\
**Post date:** [September 10, 2020, 5:24pm UTC](https://integration.keap.com/t/which-endpoint-to-to-use-using-rest-api/79561/2 "2020-09-10T17:24:28Z")

</div>

It looks like you’ll be wanting to create a Subscription, which will then generate Orders per cycle. Billing is done automatically when each Order is created.

[https://developer.infusionsoft.com/docs/rest/#!/E-Commerce/createSubscriptionUsingPOST](https://developer.infusionsoft.com/docs/rest/#!/E-Commerce/createSubscriptionUsingPOST)
