GET
/
api
/
v1
/
template
/
{template_uuid}
Template Get Api
curl --request GET \
  --url https://api.justpaid.io/api/v1/template/{template_uuid} \
  --header 'Authorization: Bearer <token>'
{
  "uuid": "123e4567-e89b-12d3-a456-426614174000",
  "name": "Enterprise Plan",
  "description": "Complete solution for large organizations",
  "is_active": true,
  "options": [
    {
      "uuid": "456e4567-e89b-12d3-a456-426614174000",
      "name": "Basic Option",
      "description": "Basic features package",
      "annual_discount": 10,
      "trial_period": 30,
      "services": [
        {
          "uuid": "789e4567-e89b-12d3-a456-426614174000",
          "service_type": "fixed fee",
          "billing_cycle": "monthly",
          "unit_price": 100,
          "default_quantity": 1,
          "plan_item_uuid": "abc-123",
          "plan_item_name": "Basic Service",
          "plan_item_description": "Basic service description"
        }
      ]
    }
  ],
  "plan_uuid": "def-456",
  "created_at": "2024-03-21T10:00:00Z",
  "updated_at": "2024-03-21T10:00:00Z"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

template_uuid
string
required

Response

200
application/json

Template retrieved successfully

Schema for retrieving template information.

Attributes: uuid (UUID): The unique identifier for the template. name (str): The name of the template. description (str): The description of the template. is_active (bool): Whether the template is active. options (List[OptionOut]): List of options associated with this template. plan_uuid (str): The UUID of the associated plan.