【问题标题】:Close AccountingPeriod in Zuora via SOAP通过 SOAP 在 Zuora 中关闭 AccountingPeriod
【发布时间】:2016-03-05 02:36:47
【问题描述】:

我正在尝试调用 Zuora Soap API 的更新方法以“CloseAccountingPeriod”。这样做的正确方法是什么

    require 'savon'
    message = {'username' => 'username','password' => 'password'  }
   client = Savon.client(wsdl: 'zuora.a.75.0.wsdl')
   response = client.call(:login, message: message)
    @response = client.call :update do
    soap.header = {
    }

    soap.body = {
                 :Status=> "closed", 
                 :ids=>"4028e699235ea4de0123777131fd5d68"
                }
     end    

Zuora 香皂如下所示:

    <?xml version='1.0' encoding='UTF-8'?>
    <soapenv:Envelope xmlns:soapenv=
    "http://schemas.xmlsoap.org/soap/envelope/">
    <soapenv:Header>
    <ns1:SessionHeader xmlns:ns1=
    "http://api.zuora.com/"  soapenv:mustUnderstand="0">
    <ns1:session>[replace with your session]</ns1:session>
    </ns1:SessionHeader>
  </soapenv:Header>
  <soapenv:Body>
    <ns1:update xmlns:ns1="http://api.zuora.com/">
     <ns1:zObjects xmlns:ns2="http://object.api.zuora.com/"
     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"   
     xsi:type="ns2:AccountingPeriod">
   <ns2:Id>402892a83711418b01371142cc5801a9</ns2:Id>
   <ns2:Status>Closed</ns2:Status>
   </ns1:zObjects>
   </ns1:update>
   </soapenv:Body>
   </soapenv:Envelope>

【问题讨论】:

    标签: ruby savon zuora


    【解决方案1】:

    这个例子是正确的

    最少需要的数据是

    • 会话密钥
    • AccountingPeriod 的 32 个字符 id
    • 状态“关闭”

    【讨论】:

    • 如果您的示例无法正常工作,您可以尝试将其发布到他们的api forum
    • 抱歉链接不好我认为这是正确的地方Zuora API Forums
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2023-03-09
    • 2023-03-03
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-04-07
    • 1970-01-01
    相关资源
    最近更新 更多