Create Plans

Create a new plan(s).

Handling Plan Types

Nayya has a finite, static set of plan types that are supported, and each of them has a different set of required data in order to make the experience great for our users.

For each type, there is a metadata attribute with required fields. For example: requests to create plans of type medical should be sent with a medical_metadata attribute. Plans of type accident_insurance should include the accident_insurance_metadata attribute.

You may post multiple plans of varying plan types in the same request.

If multiple plans are created at once, there is no partial success of the request. Either the request succeeds and all plans are created, or the request fails and no plans are created.

We suggest that you map each supported type to a request parameter that is optionally included with the request.

Language
Credentials
Bearer
URL
Click Try It! to start a request and see the response here!