# Set up VNPT eContract

How an administrator registers VNPT eContract credentials, pastes the callback URL and maps signers, and how members connect.

Source: https://support.rework.com/article/esign-econtract-vnpt-setup

> **In plain words:** **VNPT eContract** is a partner platform that hosts contracts and runs the signing. Setting it up has two halves. An administrator registers your organization with VNPT, saves the credentials VNPT issues, pastes a **callback URL** into VNPT's portal, and optionally maps members to VNPT signing accounts. Then each sender connects their own VNPT login. A **callback URL** is the address VNPT uses to tell E-Sign that something happened to a contract, such as a signature. To compare VNPT with FPT first, see [eContract: sign on a partner platform](https://support.rework.com/article/esign-econtract-overview).

**Where to find it:** In E-Sign, open **Settings** at the bottom of the left sidebar. Administrators use **eContract** under Integrations (tab **VNPT eContract**). Members use **Accounts** under Integrations (tab **eContract Accounts**). **Who can use it:** Administrators configure the connection. Any member can connect their own login afterwards.

## Before you start

- Your organization must be registered with VNPT eContract. You register directly with VNPT: contact them to have your organization set up. E-Sign cannot do the registration for you.
  
- Create an **External Contract** service for your contracts. See [eContract services and parties](https://support.rework.com/article/esign-econtract-services-parties).
  

## Step 1 (administrator): register with VNPT and read the guideline

E-Sign includes a short guide to the VNPT registration form. It is for reference: VNPT's own form is the source of truth.

1. In E-Sign, open **Settings** at the bottom of the left sidebar, then **eContract** under Integrations. This page is visible to administrators only.
   
2. Select the tab **VNPT eContract**. The section **VNPT eContract** opens ("System-wide VNPT eContract integration. Members who link a VNPT account connect with these app credentials automatically.").
   
3. Under **Connection model**, read the notice **Dedicated account**. VNPT eContract always connects this way: your organization contracts directly with VNPT and receives its own integration credentials, and contracts are stored under your own VNPT account.
   
4. Select **View guideline** (a link in that notice, and a button under **Callback**). A dialog **How to register with VNPT eContract** opens. Its steps are:
   
   1. Sign in to the VNPT partner portal at https://doitac-smartca.vnpt.vn/ and open the eContract integration registration form.
      
   2. Fill in your organization and administrator details, then tick the API integration option.
      
   3. Paste the callback URL into the **URL Callback** field. Paste it whole, including the part that starts with `?token=`.
      
   4. Submit the registration. VNPT sends the `client_id` and `client_secret` to the administrator's email.
      
5. Select **Close** when you are done.
   

![The \*\*How to register with VNPT eContract\*\* dialog with the four steps and the registration form picture, callout](https://storage.googleapis.com/reworkv3-public/success/261015/plyp1BOnFxR9ncYvnSvdCFvF0AVprKd67mFBeC3l1bMZGu0gQy81isepLvjBz2HX/img.KPtCdrfTnNI5VY5c8PtY87nm4GpU0Tt9GnG1eDgUdvK4P1sBHn2wcFNVlwBh6rR4.png)

## Step 2 (administrator): copy the callback URL into VNPT's portal

The callback URL is how VNPT tells E-Sign about signing progress. It is unique to your organization. It ends with `?token=` followed by a code, and that code is what tells E-Sign which workspace the message belongs to.

1. On the **VNPT eContract** tab, find the sub-heading **Callback** ("Configure this once in the VNPT eContract portal so signing callbacks reach this system.").
   
2. Next to **Callback URL**, select **Copy**. The button changes to **Copied**.
   
3. In VNPT's registration form, paste the URL into **URL Callback**. Paste the **whole** URL. Shortening it to the path removes the code and breaks the connection.
   
4. Leave **Callback Key** and **Callback Key Secret** empty in VNPT's portal. E-Sign does not use them.
   

![The \*\*Callback\*\* section, callouts](https://storage.googleapis.com/reworkv3-public/success/261015/M235UbvuVMhLZoAKMU6CI9NORIsI0Ts8ja9TwzYrQAn91mcN7fIZ8ljBMRid7CCv/img.FJ6zqqTbevK71Wy3gDgsBBGVqqr8aKe8yyySsGqIrU0MAwkczSMSlI2syOdi23oY.png)

> **Important:** Paste the full URL with the `?token=` part. Without it E-Sign cannot match a VNPT message to your workspace, and contract status can lag until someone selects **Sync eContract status**. See [eContract status, sync and cancelling](https://support.rework.com/article/esign-econtract-status).

## Step 3 (administrator): save the credentials VNPT issues

When VNPT approves the registration, it emails you a **Client ID** and a **Client secret**. These identify your organization's integration to VNPT.

1. On the **VNPT eContract** tab, find **Your own VNPT eContract credentials** ("Issued by VNPT for this system's eContract application. Ask VNPT eContract for these after registering your organisation."). The guideline calls this part "App credentials".
   
2. In **Client ID**, enter the value (placeholder "VNPT-issued client\_id").
   
3. In **Client secret**, enter the secret. Once one is saved the placeholder reads "Leave blank to keep current secret". Before the first save it reads "No client secret set yet".
   
4. Select **Save credentials**. A toast says "VNPT eContract credentials saved". If it fails you see "Could not save credentials" with a reason.
   

![The \*\*VNPT eContract\*\* tab with the connection model notice and the credentials section, fake values typed in, callouts](https://storage.googleapis.com/reworkv3-public/success/261015/xgdZcVW44ALda31ouJaM5aGfR57uT6IAsUUQLbsZgx7yDTPaqOgOwYON4Eqf6D5a/img.iwWprla1sAwtgR8QF4cejBz2ggKaPi9CTm6CjoIiL32tt3wbKfRUIQjlMNAOll7Z.png)

## Step 4 (each member): connect your VNPT eContract login

A member who sends contracts connects the organization login they use at VNPT.

1. In E-Sign, open **Settings** at the bottom of the left sidebar, then **Accounts** under Integrations.
   
2. Select the tab **eContract Accounts**.
   
3. Select **Connect** at the top right (or **Connect eContract account** when the list is empty).
   
4. In the dialog **Connect eContract account**, set **Provider** to **VNPT eContract**. A box under it names the model, **Dedicated account**.
   
5. In **Account name**, type a label, for example "Northwind VNPT contracts". The hint reads "A label for this VNPT eContract organization account."
   
6. In **Tài khoản**, type your VNPT eContract organization login. **Tài khoản** is Vietnamese for "account". The hint reads "VNPT eContract organization login."
   
7. In **Mật khẩu**, type your password. **Mật khẩu** is Vietnamese for "password".
   
8. Select **Connect**. A toast says "VNPT eContract account connected." and the account appears in the list.
   

Connecting the same login again refreshes the account instead of creating a copy.

![The \*\*Connect eContract account\*\* dialog with \*\*VNPT eContract\*\* selected, callouts](https://storage.googleapis.com/reworkv3-public/success/261015/JSlLKgRvSxnTa0PsrqF0FmuZd4lzbFEqpA8MRtwYKPPuqYGEuKHShNEh3rcVqFs8/img.qr0G7z1U9jboXbkjOEk1rT8zqlQGTg5IU9UfQ4MSB6nmM37qJr5EQ2dtukrJ3mPT.png)

## Step 5 (administrator, optional): map signers to VNPT signing accounts

VNPT organizations have **internal signing accounts**: individual signer identities under the organization's VNPT account. When a signer is tied to an internal account and has linked it in E-Sign, they can sign inside E-Sign instead of from VNPT's email. See [Sign an eContract contract](https://support.rework.com/article/esign-econtract-sign).

The **Signer mapping** sub-heading lets you set this up once for each member, so it fills in automatically when someone prepares a contract. It reads: "Map each member to a VNPT internal signing account and default sign methods. At propose time an internal signer's account auto-fills from here (still editable). Without a mapping, a member's own linked account is used."

1. Make sure at least one VNPT eContract account is connected (Step 4). The rows appear once E-Sign can read that account's internal signing accounts. Otherwise the section says "Connect a VNPT eContract account first: the account you send contracts from populates the picker with its internal signing accounts."
   
2. On the **VNPT eContract** tab, under **Signer mapping**, select **Add member**. A row appears.
   
3. In **Signer**, search by name or @username ("Search name or @username…") and pick the member. A member can appear in one row only.
   
4. In **Internal account**, pick the VNPT signing account for that member (the empty choice reads "Select account").
   
5. In **Default methods**, tick the sign methods this member may use (placeholder "Select methods"). New rows start with all methods ticked. See the table below.
   
6. Repeat for each member. Use the bin icon to remove a row.
   
7. Select **Save mapping**. A toast says "Signer mapping saved" followed by the number of rows saved. Rows missing a signer or an account are left out.
   

![The \*\*Signer mapping\*\* section with two members mapped, callouts](https://storage.googleapis.com/reworkv3-public/success/261015/kGckOtWViAjuCLkH2fAlqx0060e48nXfLQmaXvkfq2vBjCP92UnBVl2HUjLDa1s8/img.z5Ik2yAJL2sDiyodEZo8lIxcQmpQny4CV1iEqfbtwonEHZFmzoeECmUtKKK75Gj8.png)

| 
Sign method

 | 

Where it happens

 | 

What the signer does

 |
| --- | --- | --- |
| 

Image sign

 | 

Inside E-Sign

 | 

Applies their signature image

 |
| 

SMS OTP

 | 

Inside E-Sign

 | 

Enters a code sent by SMS

 |
| 

Email OTP

 | 

Inside E-Sign

 | 

Enters a code sent by email

 |
| 

Smart CA

 | 

Inside E-Sign

 | 

Signs in to SmartCA and approves in the SmartCA app

 |
| 

USB Token

 | 

On VNPT's portal

 | 

Finishes from VNPT's email

 |
| 

Email OTP + eKYC

 | 

On VNPT's portal

 | 

Finishes from VNPT's email

 |
| 

SMS OTP + eKYC

 | 

On VNPT's portal

 | 

Finishes from VNPT's email

 |
| 

VNeID

 | 

On VNPT's portal

 | 

Finishes from VNPT's email

 |

An **OTP** is a one-time password: a short code that proves the person has the phone or mailbox. **eKYC** is an identity check done on screen, usually with a photo of an ID and a face. **SmartCA** is VNPT's remote certificate service.

If the section instead says the account is connected but its internal signing accounts could not be loaded, reopen the page to retry. The account refreshes its VNPT identity when the page loads.

Without a mapping, E-Sign uses the member's own linked VNPT account. A mapping wins when both exist.

## Troubleshooting

| 
Message you see

 | 

What it means

 | 

Who fixes it

 | 

What to do

 |
| --- | --- | --- | --- |
| 

"Please configure your own eContract credentials in Settings first"

 | 

You connected before Step 3

 | 

Administrator

 | 

Save the Client ID and secret, then connect again

 |
| 

"This VNPT eContract account is already connected by another user (#id)"

 | 

A colleague already connected this login

 | 

You

 | 

Ask that colleague to share the contract work, or use a different VNPT login

 |
| 

"This account is missing its stored connection credentials, please remove it and connect again"

 | 

The saved login on this account is incomplete

 | 

You

 | 

Remove the account in **Accounts**, then connect it again

 |
| 

"Connect failed"

 | 

The connection did not complete. The reason is shown with the message

 | 

You or VNPT

 | 

Read the reason, check **Tài khoản** and **Mật khẩu**, and try again. If it persists, contact VNPT

 |
| 

"Could not save credentials"

 | 

Saving the Client ID or secret failed

 | 

Administrator

 | 

Check both values and try again

 |
| 

"Could not save mapping"

 | 

Saving the mapping failed

 | 

Administrator

 | 

Reload the page and save again

 |
| 

"No members mapped yet."

 | 

No rows exist

 | 

Administrator

 | 

Select **Add member**

 |
| 

"No members found."

 | 

Your search matches nobody, or everyone is already mapped

 | 

Administrator

 | 

Change the search

 |
| 

"You need admin permission to configure eContract providers."

 | 

You are not an administrator

 | 

Administrator

 | 

Ask an administrator

 |

For more, see [Connecting and account errors](https://support.rework.com/article/esign-account-errors).
