---
title: "POST /Widget/Setup"
method: POST
path: "/Widget/Setup"
tags: ["Widget / Eligibility and Estimates / CGX"]
---

# POST /Widget/Setup

`POST /Widget/Setup`

Step 1 - Generate setupId to load widget in iframe

SetupId will be required to load the widget in iframe. SetupId can be generated using Client ID and Client Secret. To generate SetupId, pass Client ID and Client Secret to following endpoint [POST] https://premium.pverify.com/Widget/Setup e.g.

json
{
"clientApiId":"xxxx-xxxx-xxxx-xxxx-xxxx-xxxx-xxxx",
"clientSecret":"xxxxxxxxxxxxxxx"
}
It will generate a SetupId something like this XXXXxxXX-XXXX-XxXX-XxXX-XXxxXXXXxXX.

Step 2 - Load iframe with following URL with setupId If you want to integrate Estimation widget, then set URL of iframe as shown below https://premium.pverify.com/Component/EstimateInquiry?SetupId=setupId

If you want to integrate Eligibility widget, then set URL of iframe as shown below https://premium.pverify.com/Component/ElgInquiry?SetupId=setupId

Details about SetupId
1.Need to generate SetupId for each transaction
2.SetupId is valid for 10 mins

## Headers

- `Authorization` string, required
- `Client-Api-Id` string, required

## Request body

- PVerifyBusinessObjectsPboExternalTransactionSetupRequest
  - `clientApiId` string
  - `clientSecret` string

## Response `200`

Successful response

---

[API](https://skmtc.net/pverify/apis/pverify-apiservices.md) · [All operations](https://skmtc.net/pverify/apis/pverify-apiservices/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/pverify/pverify-apiservices/revisions/9e1d4f09d0b2/schema)
