PayPal REST API - Amount is null while retrieving the Authorization











up vote
0
down vote

favorite












This issue happened yesterday. While retrieving Authorization via API it seems Amount is not being included (as show below on Postman). I am not sure if I have missed anything or if anything has changed with Paypal API as this was working fine for over a year without any issue.



 {
"id": "AUTH0R1ZAT1ON1D",
"create_time": "2018-11-02T15:00:00Z",
"state": "pending",
"valid_until": "2018-12-01T15:00:00Z",
"links": [
{
"href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D",
"rel": "self",
"method": "GET"
},
{
"href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/capture",
"rel": "capture",
"method": "POST"
},
{
"href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/void",
"rel": "void",
"method": "POST"
},
{
"href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/reauthorize",
"rel": "reauthorize",
"method": "POST"
}
]
}


But if I were to use retrieve already 'captured' authorization from while back, the Amount is included as expected.



Update: If I retrieve Payment using payment_id, it seems to Amount is included in the Authorization object. Also just today one of the Authorization created is including the Amount as expected. These are all for the same Payer.










share|improve this question




























    up vote
    0
    down vote

    favorite












    This issue happened yesterday. While retrieving Authorization via API it seems Amount is not being included (as show below on Postman). I am not sure if I have missed anything or if anything has changed with Paypal API as this was working fine for over a year without any issue.



     {
    "id": "AUTH0R1ZAT1ON1D",
    "create_time": "2018-11-02T15:00:00Z",
    "state": "pending",
    "valid_until": "2018-12-01T15:00:00Z",
    "links": [
    {
    "href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D",
    "rel": "self",
    "method": "GET"
    },
    {
    "href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/capture",
    "rel": "capture",
    "method": "POST"
    },
    {
    "href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/void",
    "rel": "void",
    "method": "POST"
    },
    {
    "href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/reauthorize",
    "rel": "reauthorize",
    "method": "POST"
    }
    ]
    }


    But if I were to use retrieve already 'captured' authorization from while back, the Amount is included as expected.



    Update: If I retrieve Payment using payment_id, it seems to Amount is included in the Authorization object. Also just today one of the Authorization created is including the Amount as expected. These are all for the same Payer.










    share|improve this question


























      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      This issue happened yesterday. While retrieving Authorization via API it seems Amount is not being included (as show below on Postman). I am not sure if I have missed anything or if anything has changed with Paypal API as this was working fine for over a year without any issue.



       {
      "id": "AUTH0R1ZAT1ON1D",
      "create_time": "2018-11-02T15:00:00Z",
      "state": "pending",
      "valid_until": "2018-12-01T15:00:00Z",
      "links": [
      {
      "href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D",
      "rel": "self",
      "method": "GET"
      },
      {
      "href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/capture",
      "rel": "capture",
      "method": "POST"
      },
      {
      "href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/void",
      "rel": "void",
      "method": "POST"
      },
      {
      "href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/reauthorize",
      "rel": "reauthorize",
      "method": "POST"
      }
      ]
      }


      But if I were to use retrieve already 'captured' authorization from while back, the Amount is included as expected.



      Update: If I retrieve Payment using payment_id, it seems to Amount is included in the Authorization object. Also just today one of the Authorization created is including the Amount as expected. These are all for the same Payer.










      share|improve this question















      This issue happened yesterday. While retrieving Authorization via API it seems Amount is not being included (as show below on Postman). I am not sure if I have missed anything or if anything has changed with Paypal API as this was working fine for over a year without any issue.



       {
      "id": "AUTH0R1ZAT1ON1D",
      "create_time": "2018-11-02T15:00:00Z",
      "state": "pending",
      "valid_until": "2018-12-01T15:00:00Z",
      "links": [
      {
      "href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D",
      "rel": "self",
      "method": "GET"
      },
      {
      "href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/capture",
      "rel": "capture",
      "method": "POST"
      },
      {
      "href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/void",
      "rel": "void",
      "method": "POST"
      },
      {
      "href": "https://api.paypal.com/v1/payments/authorization/AUTH0R1ZAT1ON1D/reauthorize",
      "rel": "reauthorize",
      "method": "POST"
      }
      ]
      }


      But if I were to use retrieve already 'captured' authorization from while back, the Amount is included as expected.



      Update: If I retrieve Payment using payment_id, it seems to Amount is included in the Authorization object. Also just today one of the Authorization created is including the Amount as expected. These are all for the same Payer.







      c# paypal paypal-rest-sdk






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 8 at 12:37

























      asked Nov 7 at 15:03









      user5481980

      85




      85





























          active

          oldest

          votes











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53192106%2fpaypal-rest-api-amount-is-null-while-retrieving-the-authorization%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown






























          active

          oldest

          votes













          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes
















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53192106%2fpaypal-rest-api-amount-is-null-while-retrieving-the-authorization%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          Academy of Television Arts & Sciences

          L'Équipe

          1995 France bombings