Discussions

Ask a Question
Back to All

server-side API. Grant subscription and create user profile.

We are setting up our payment system on our website and I have a question about the API.

Do I need to create a user profile in Adapty before granting the subscription?

Does the user need to exist before calling this endpoint?: https://docs.adapty.io/docs/server-side-api-specs#prolonggrant-a-subscription-for-a-user

Do I need to check if the user already exists in Adapty, then call this endpoint https://docs.adapty.io/docs/server-side-api-specs#create-a-user, then update the subscription?