Invoicing API - Get info about marked payment

Denzel27
New Community Member

Hi there

 

I have developed an integration of the PayPal Invoicing API for personal use and overall, i am pretty satisfied with the functionalities the API provides. However, I could not find any way of getting information about when an invoice was marked as paid. I know that we can find out whether it was paid, that we can send a POST-request to mark it as paid and that we can set up a webhook that will send us the information I am talking about.

But is there any way for me to fetch an invoice's payment information like method, date and note without using a webhook?

 

Thanks in advance
Denzel

Login to Me Too
1 REPLY 1

MTS_Chiranjeevi
Moderator
Moderator

Good day @Denzel27,

 

Thank you for posting to the PayPal community.

 

Yes, you can use "Show invoice details" API which returns the status of the invoice.

 

status enum : The status of the invoice.

 

The possible values are: 

  • DRAFT. The invoice is in draft state. It is not yet sent to the payer.
  • SENT. The invoice has been sent to the payer. The payment is awaited from the payer.
  • SCHEDULED. The invoice is scheduled on a future date. It is not yet sent to the payer.
  • PAID. The payer has paid for the invoice.
  • MARKED_AS_PAID. The invoice is marked as paid by the invoicer.
  • CANCELLED. The invoice has been cancelled by the invoicer.
  • REFUNDED. The invoice has been refunded by the invoicer.
  • PARTIALLY_PAID. The payer has partially paid for the invoice.
  • PARTIALLY_REFUNDED. The invoice has been partially refunded by the invoicer.
  • MARKED_AS_REFUNDED. The invoice is marked as refunded by the invoicer.
  • UNPAID. The invoicer is yet to receive the payment from the payer for the invoice.
  • PAYMENT_PENDING. The invoicer is yet to receive the payment for the invoice. It is under pending review.

Please refer below integration guide links :

 

https://developer.paypal.com/docs/api/invoicing/v2/#invoices_get 

 

https://developer.paypal.com/docs/api/invoicing/v2/#invoices-get-response 

 

Note : Merchant can also use the Webhook event notifications. 

 

Invoicinghttps://developer.paypal.com/api/rest/webhooks/event-names/#link-invoicing 

 

https://developer.paypal.com/api/rest/webhooks/event-names/ 

 

Sincerely,

Chiranjeevi

PayPal/Braintree MTS

 

If this post or any other was helpful, please enrich the community by giving kudos or accepting it as a solution.

Login to Me Too

Haven't Found your Answer?

It happens. Hit the "Login to Ask the community" button to create a question for the PayPal community.