title: Create Paypal Billing Agreement using API
body: <p><strong>I tried to create Paypal Billing Agreement using API.</strong></p>
  <p><strong>Method1:</strong>-
  I followed below link <a href="https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#billing-agreements_post" rel="nofollow noreferrer">https://developer.paypal.com/docs/api/payments.billing-agreements/v1/#billing-agreements_post</a></p>
  <p>Here, we found response successfully as mentioned in Doc but in customer Sandbox Account, I could not find any new billing agreement created. (<a href="https://www.sandbox.paypal.com/" rel="nofollow noreferrer">https://www.sandbox.paypal.com/</a>)</p>
  <p><strong>Method2:</strong>-
  I followed below link</p>
  <p>To fetch agreement token.
  <a href="https://verifone.cloud/docs/apm/paypal-show-token-details" rel="nofollow noreferrer">https://verifone.cloud/docs/apm/paypal-show-token-details</a></p>
  <p>To creating billing agreement token.
  <a href="https://verifone.cloud/docs/apm/paypal-initiate-billing-agreement" rel="nofollow noreferrer">https://verifone.cloud/docs/apm/paypal-initiate-billing-agreement</a></p>
  <p>To creating billing agreement
  <a href="https://verifone.cloud/docs/apm/paypal-first-billing-agreement-transaction" rel="nofollow noreferrer">https://verifone.cloud/docs/apm/paypal-first-billing-agreement-transaction</a></p>
  <p>Here, we are not able to identity “ppcUid” parameter.
  I tried to set the value of “ppcUid” by ‘Paypal merchant Id’ and ‘email Id’ but not getting response as mentioned in Doc.</p>
  <p><strong>Note:-</strong> When I am trying to create Billing Agreement <strong>manually</strong> in <strong>Magento</strong>, then it is rendering successfully in Magento and in Paypal Sandbox Account.</p>
  <p><a href="https://i.stack.imgur.com/Rzt5l.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Rzt5l.png" alt="enter image description here" /></a></p>
  <p><a href="https://i.stack.imgur.com/ITkpi.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ITkpi.png" alt="enter image description here" /></a></p>