• Create an envelope

    import {Envelopes, ICreateEnvelopeRole, ICreateEnvelopeRequest} from '@verdocs/js-sdk/Envelopes';

    const role1: ICreateEnvelopeRole = {
    type: 'signer',
    name: 'Seller',
    full_name: 'Paige Turner',
    email: 'paige.turner@nomail.com',
    phone: '',
    sequence: 1,
    delegator: false,
    message: '',
    };

    const role2: ICreateEnvelopeRole = {
    type: 'signer',
    name: 'Buyer',
    full_name: 'Will Power',
    email: 'will.power@nomail.com',
    phone: '',
    sequence: 2,
    delegator: false,
    message: '',
    };

    const request: ICreateEnvelopeRequest = {template_id: 'd2338742-f3a1-465b-8592-806587413cc1', name: 'Bill of Sale', roles: [role1, role2]};
    const {id, recipients} = await Envelopes.createEnvelope(VerdocsEndpoint.getDefault(), request);

    Parameters

    Returns Promise<IEnvelope>