-
What is the suggested API to created multiple subscriptions in swell? I could find https://developers.swell.is/backend-api/orders/create-an-order Is this correct API? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @Anurag870 , with the Backend API you can certainly use the We also do have a Frontend API that you can use as well if you prefer doing this client-side: https://developers.swell.is/frontend-api/introduction |
Beta Was this translation helpful? Give feedback.
Hi @Anurag870 , with the Backend API you can certainly use the
/orders
endpoint to create multiple subscriptions. You would need to specify thepurchase_option
details liketype
andplan_id
for each item. Most would use a cart instead of outright creating an order however, this would look quite similar but you would convert the cart instead of creating an order.We also do have a Frontend API that you can use as well if you prefer doing this client-side: https://developers.swell.is/frontend-api/introduction