Pass in a APIContext
object to authenticate
the call and to send a unique request id
(that ensures idempotency). The SDK generates
a request id if you do not pass one explicitly.
See Configuration.cs to know more about APIContext.
For demonstration purposes, we will create a new invoice for this sample.
Information about the merchant who is sending the invoice.
Email address of invoice recipient and optional billing information.
Note: PayPal currently only allows one recipient.
(Required) Email address of the invoice recipient.
List of items to be included in the invoice.
Note: 100 max per invoice.
Note to the payer. Maximum length is 4000 characters.
(Optional) Specifies the payment deadline for the invoice.
Note: Either
term_type
ordue_date
can be sent, but not both.
Shipping information for entities to whom items are being shipped.
Create the invoice
For more information, please visit PayPal Developer REST API Reference.
Create an invoice
Creates an invoice in a draft state. After you create an invoice that includes an
items
array, you can then send the invoice.