How can I get which payment plan is associated with particular Order / Invoice

I would like to know the payment plan associated with the order / invoice based on order Id / Invoice id.
Is there any way I can achieve this?

Hi @kapil_jagtap, I believe the only way to currently look up the payment plan id would be to use XML-RPC and something like DataService.findByField. Here’s an example request that will return the payment plan id:

<?xml version='1.0' encoding='UTF-8'?>
<methodCall>
  <methodName>DataService.findByField</methodName>
  <params>
    <param>
      <value><string>{{privateKey}}</string></value>
    </param>
    <param>
      <value><string>PayPlan</string></value>
    </param>
    <param>
      <value><int>1</int></value>
    </param>
    <param>
      <value><int>0</int></value>
    </param>
    <param>
      <value><string>InvoiceId</string></value>
    </param>
    <param>
      <value><int>{{invoiceId}}</int></value>
    </param>
    <param>
      <value>
        <array>
          <data>
            <value><string>Id</string></value>
          </data>
        </array>
      </value>
    </param>
  </params>
</methodCall>

Thank you @Nicholas_Trecina.