Update invoice
documentedUpdate invoice fields.
PATCH /v1/invoicing/invoices/{invoice_id}Invoicingno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl 'https://api.paypal.com/v1/invoicing/invoices/{{$invoice_id}}' \
-X PUT \
-H 'Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}' \
-H 'Content-Type: application/json' \
-H 'Accept: application/json' \
-d '{"merchant_info": {"email": "{{$merchant_email}}", "first_name": "{{$merchant_first_name}}", "last_name": "{{$merchant_last_name}}", "business_name": "{{$merchant_business_name}}", "phone": {"country_code": "{{$merchant_phone_country_code}}", "national_number": "{{$merchant_phone_number}}"}, "address": {"line1": "{{$merchant_address_line1}}", "city": "{{$merchant_city}}", "state": "{{$merchant_state}}", "postal_code": "{{$merchant_postal_code}}", "country_code": "US"}}, "billing_info": [{"email": "{{$recipient_email}}", "first_name": "{{$recipient_first_name}}", "last_name": "{{$recipient_last_name}}"}], "shipping_info": {"first_name": "{{$recipient_first_name}}", "last_name": "{{$recipient_last_name}}", "address": {"line1": "{{$recipient_address_line1}}", "city": "{{$recipient_city}}", "state": "{{$recipient_state}}", "postal_code": "{{$recipient_postal_code}}", "country_code": "US"}}, "items": [{"name": "{{$item_name}}", "quantity": {{$item_quantity}}, "unit_price": {"currency": "{{$item_unit_price_currency}}", "value": "{{$item_unit_price_value}}"}}], "reference": "{{$reference}}", "invoice_date": "{{$invoice_date}}", "note": "{{$note}}", "payment_term": {"term_type": "NET_30"}, "logo_url": "{{$logo_url}}", "template_id": "{{$template_id}}", "allow_partial_payment": {{$allow_partial_payment}}, "tax_inclusive": {{$tax_inclusive}}}'"