invoicing

Mark Invoice as Paid

If a customer pays an invoice through paypal.com, PayPal automatically records the invoice as paid. To record a non-PayPal payment such as a check or cash:

  1. Call payments. If no payment is due, the invoice is marked as PAID. Otherwise, the invoice is marked PARTIALLY PAID. You must set the invoice_id path parameter.
  2. Set the required method in the JSON request body.

This sample request marks an invoice as paid:

curl -v -X POST \
  https://api.sandbox.paypal.com/v2/invoicing/invoices/INV2-Z56S-5LLA-Q52L-CPZ5/payments \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer Access-Token" \
  -d '{
  "method": "CASH",
  "date": "2017-11-06 03:30:00",
  "note": "I received a cash payment.",
  "amount":
  {
    "currency": "USD",
    "value": "20.00"
  }
}'

A successful request returns the HTTP 200 OK status code with no JSON response body.

Next

Continue to Delete Draft Invoice.

Feedback