简体   繁体   English

DocuSign Api在生产中创建信封

[英]DocuSign Api creating envelope in Production

I have a problem with creating Envelope through the Api. 我在通过Api创建信封时遇到问题。

The authorization is performed without errors. 授权执行没有错误。

$options = new \\DocuSign\\eSign\\Api\\AuthenticationApi\\LoginOptions(); $ options = new \\ DocuSign \\ eSign \\ Api \\ AuthenticationApi \\ LoginOptions(); $loginInformation = $authenticationApi->login($options); $ loginInformation = $ authenticationApi-> login($ options);

I get this in response: 我得到这个回应:

LoginInformation {
    #container: array:2 [
        "api_password" => null
        "login_accounts" => array:1 [
            0 => LoginAccount {
                #container: array:11 [
                    "account_id" => "xxxxx"
                    "account_id_guid" => null
                    "base_url" => "https://na2.docusign.net/restapi/v2/accounts/xxxxx"
                    "email" => "xxxxx@xxxxxx.com"
                    "is_default" => "true"
                    "login_account_settings" => null
                    "login_user_settings" => null
                    "name" => "xxxxxxx, LLC"
                    "site_description" => ""
                    "user_id" => "xxxxxxxxxxxxxxxxxxx"
                    "user_name" => "xxxxxx Contracts Team"
                ]
            }
        ]
    ]
}

But when I'm trying to create the Envelope this way: 但是,当我尝试以这种方式创建信封时:

$envelopeApi->createEnvelope($this->config->getAccountId(), $envelop_definition, $options); $ envelopeApi-> createEnvelope($ this-> config-> getAccountId(),$ envelop_definition,$ options);

I get this error: «[401] Error connecting to the API ( https://www.docusign.net/restapi/v2/accounts/xxxxx/envelopes )” 我收到此错误:«[401]连接到API时出错( https://www.docusign.net/restapi/v2/accounts/xxxxx/envelopes )”

This error notifies me that I'm not authorized. 此错误通知我我无权。 This code works properly in Sandbox. 此代码在沙盒中正常运行。

I think that the problem is in settings of account - maybe there is a lack of special rights... 我认为问题出在帐户设置上-也许缺少特殊权限...

You need to use the right production platform. 您需要使用正确的生产平台。 The right production platform is determined by the DocuSign Account ID. 正确的生产平台由DocuSign帐户ID决定。

See step 1 in the Post Go Live document. 请参阅发布上线文档中的步骤1。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM