Deprecation notice: TheUse the Invoicing API to create, send, and manage invoices. You can also use the API or webhooks to track invoice payments. When you send an invoice to a customer, the invoice moves from draft to payable state. PayPal then emails the customer a link to the invoice on the PayPal website. Customers with a PayPal account can log in and pay the invoice with PayPal. Alternatively, customers can pay as a guest with a debit card or credit card. For more information, see Invoicing Overview and the Invoicing Integration Guide./v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
Deprecation notice: TheCreates a draft invoice. To move the invoice from a draft to payable state, you must send the invoice./v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
invoice
object must include an items
array.Note: The merchant that you specify in an invoice must have a PayPal account in good standing..
number | string <= 25 characters The invoice number. If you omit this value, the default is the number that the API automatically increments from the last number. |
Array of objects (billing_info) = 1 items An array of billing information for the invoice recipient. Note: This value is an array with only one element. | |
Array of objects (Participant) An array of email addresses to which PayPal sends a copy of the invoice. | |
Array of objects (invoice_item) <= 100 items An array of invoice line item information. | |
invoice_date | string <date> The invoice date as specified by the sender, in Internet date and time format. |
reference | string <= 60 characters The reference data, such as PO number. |
allow_partial_payment | boolean Default: false Indicates whether the invoice allows a partial payment. If Note: This feature is not available for merchants in |
tax_calculated_after_discount | boolean Default: false Indicates whether the tax is calculated before or after a discount. If |
tax_inclusive | boolean Default: false Indicates whether the unit price includes tax. |
terms | string <= 4000 characters The general terms of the invoice. |
note | string <= 4000 characters A note to the invoice recipient. The note also appears on the invoice notification email. |
merchant_memo | string <= 500 characters A private bookkeeping memo for the merchant. |
logo_url | string <uri> <= 4000 characters The full URL to an external logo image. The logo must not be larger than 250 pixels wide by 90 pixels high. The logo must be stored on a secure server. |
allow_tip | boolean Default: false Indicates whether the invoice enables the customer to enter a tip amount during payment. If Note: This feature is not available for merchants in |
template_id | string Default: "PayPal system template" This value is only used to determine the layout to display on the create or edit invoice experience, such as which fields to show and hide. It does not impact the view of the invoice that the customer receives. Note: If you are just using the Invoicing APIs to create and send invoices, leave this field blank. The
|
required | object (merchant_info) The merchant business information that appears on the invoice. |
object (shipping_info) The shipping information for the invoice recipient. | |
object (payment_term) The payment term of the invoice. If you specify | |
object (Discount) The discount as a percent or an amount value. For example, to specify 10%, enter | |
object (shipping_cost) The shipping cost, as a percent or amount value. | |
object (custom_amount) The custom amount to apply to an invoice. If you include a label, you must include a custom amount. | |
object (Currency) The currency and amount for a financial transaction, such as a balance or payment due. |
A successful request returns the HTTP 201 Created
status code and a JSON response body that shows invoice details.
{- "merchant_info": {
- "email": "merchant@example.com",
- "first_name": "David",
- "last_name": "Larusso",
- "business_name": "Mitchell & Murray",
- "phone": {
- "country_code": "001",
- "national_number": "4085551234"
}, - "address": {
- "line1": "1234 First Street",
- "city": "Anytown",
- "state": "CA",
- "postal_code": "98765",
- "country_code": "US"
}
}, - "billing_info": [
- {
- "email": "bill-me@example.com",
- "first_name": "Stephanie",
- "last_name": "Meyers"
}
], - "shipping_info": {
- "first_name": "Stephanie",
- "last_name": "Meyers",
- "address": {
- "line1": "1234 Main Street",
- "city": "Anytown",
- "state": "CA",
- "postal_code": "98765",
- "country_code": "US"
}
}, - "items": [
- {
- "name": "Zoom System wireless headphones",
- "quantity": 2,
- "unit_price": {
- "currency": "USD",
- "value": "120"
}, - "tax": {
- "name": "Tax",
- "percent": 8
}
}, - {
- "name": "Bluetooth speaker",
- "quantity": 1,
- "unit_price": {
- "currency": "USD",
- "value": "145"
}, - "tax": {
- "name": "Tax",
- "percent": 8
}
}
], - "discount": {
- "percent": 1
}, - "shipping_cost": {
- "amount": {
- "currency": "USD",
- "value": "10"
}
}, - "note": "Thank you for your business.",
- "terms": "No refunds after 30 days."
}
{- "id": "INV2-RUVR-ADWQ-H89Y-ABCD",
- "number": "INV 01256",
- "status": "DRAFT",
- "merchant_info": {
- "email": "merchant@example.com",
- "first_name": "David",
- "last_name": "Larusso",
- "business_name": "Mitchell & Murray",
- "phone": {
- "country_code": "001",
- "national_number": "4085551234"
}, - "address": {
- "line1": "1234 First Street",
- "city": "Anytown",
- "state": "CA",
- "postal_code": "98765",
- "country_code": "US"
}
}, - "billing_info": [
- {
- "email": "bill-me@example.com",
- "first_name": "Stephanie",
- "last_name": "Meyers"
}
], - "shipping_info": {
- "first_name": "Stephanie",
- "last_name": "Meyers",
- "address": {
- "line1": "1234 Main Street",
- "city": "Anytown",
- "state": "CA",
- "postal_code": "98765",
- "country_code": "US"
}
}, - "items": [
- {
- "name": "Zoom System wireless headphones",
- "quantity": 2,
- "unit_price": {
- "currency": "USD",
- "value": "120.00"
}, - "tax": {
- "name": "Tax",
- "percent": 8,
- "amount": {
- "currency": "USD",
- "value": "19.20"
}
}
}, - {
- "name": "Bluetooth speaker",
- "quantity": 1,
- "unit_price": {
- "currency": "USD",
- "value": "145.00"
}, - "tax": {
- "name": "Tax",
- "percent": 8,
- "amount": {
- "currency": "USD",
- "value": "11.60"
}
}
}
], - "invoice_date": "2017-06-22 PDT",
- "discount": {
- "percent": 10,
- "amount": {
- "currency": "USD",
- "value": "38.50"
}
}, - "shipping_cost": {
- "amount": {
- "currency": "USD",
- "value": "10.00"
}
}, - "tax_calculated_after_discount": false,
- "tax_inclusive": false,
- "note": "Thank you for your business.",
- "total_amount": {
- "currency": "USD",
- "value": "387.30"
}, - "metadata": {
- "created_date": "2017-06-22 09:39:04 PDT"
}, - "allow_tip": false,
- "links": [
- {
- "rel": "self",
- "method": "GET"
}, - {
- "rel": "send",
- "method": "POST"
}, - {
- "rel": "update",
- "method": "PUT"
}, - {
- "rel": "delete",
- "method": "DELETE"
}
]
}
Deprecation notice: TheLists invoices. To filter the invoices that appear in the response, you can specify one or more optional query parameters./v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
A successful request returns the HTTP 200 OK
status code and a JSON response body that lists invoices with details.
curl -v -X GET https://api-m.sandbox.paypal.com/v1/invoicing/invoices?page=3&page_size=4&total_count_required=true \
{- "total_count": 589,
- "invoices": [
- {
- "id": "INV2-2NB5-UJ7A-YSUJ-ABCD",
- "number": "9879878979003791",
- "status": "DRAFT",
- "merchant_info": {
- "email": "merchant@example.com"
}, - "billing_info": [
- {
- "email": "bill-me@example.com"
}
], - "shipping_info": {
- "first_name": "Sally",
- "last_name": "Patient",
- "business_name": "Not applicable"
}, - "invoice_date": "2014-02-27 PST",
- "note": "Medical Invoice 16 Jul, 2013 PST",
- "total_amount": {
- "currency": "USD",
- "value": "0.00"
}, - "metadata": {
- "created_date": "2014-02-27 23:55:58 PST"
}
}, - {
- "id": "INV2-5AYC-UE5K-XXEG-ABCD",
- "number": "9879878979003790",
- "status": "DRAFT",
- "merchant_info": {
- "email": "merchant@example.com"
}, - "billing_info": [
- {
- "email": "bill-me@example.com"
}
], - "shipping_info": {
- "first_name": "Sally",
- "last_name": "Patient",
- "business_name": "Not applicable"
}, - "invoice_date": "2014-02-27 PST",
- "note": "Medical Invoice 16 Jul, 2013 PST",
- "total_amount": {
- "currency": "USD",
- "value": "0.00"
}, - "metadata": {
- "created_date": "2014-02-27 19:41:56 PST"
}
}, - {
- "id": "INV2-C4QH-KEKM-C5QE-ABCD",
- "number": "9879878979003789",
- "status": "DRAFT",
- "merchant_info": {
- "email": "merchant@example.com"
}, - "billing_info": [
- {
- "email": "bill-me@example.com"
}
], - "shipping_info": {
- "first_name": "Sally",
- "last_name": "Patient",
- "business_name": "Not applicable"
}, - "invoice_date": "2014-02-27 PST",
- "note": "Medical Invoice 16 Jul, 2013 PST",
- "total_amount": {
- "currency": "USD",
- "value": "0.00"
}, - "metadata": {
- "created_date": "2014-02-27 15:34:11 PST"
}
}, - {
- "id": "INV2-YP6Y-9LJU-9NFS-ABCD",
- "number": "9879878979003788",
- "status": "DRAFT",
- "merchant_info": {
- "email": "merchant@example.com"
}, - "billing_info": [
- {
- "email": "bill-me@example.com"
}
], - "shipping_info": {
- "first_name": "Sally",
- "last_name": "Patient",
- "business_name": "Not applicable"
}, - "invoice_date": "2014-02-27 PST",
- "note": "Medical Invoice 16 Jul, 2013 PST",
- "total_amount": {
- "currency": "USD",
- "value": "12.00"
}, - "metadata": {
- "created_date": "2014-02-27 15:34:01 PST"
}
}
], - "links": [
- {
- "rel": "next",
- "method": "GET"
}, - {
- "rel": "previous",
- "method": "GET"
}
]
}
Deprecation notice: TheSearches for invoices that match search criteria. If you pass multiple criteria, the response lists invoices that match all criteria./v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
string The initial letters of the email address. | |||||||||||||||||||||||||||
recipient_first_name | string The initial letters of the recipient's first name. | ||||||||||||||||||||||||||
recipient_last_name | string The initial letters of the recipient's last name. | ||||||||||||||||||||||||||
recipient_business_name | string The initial letters of the recipient's business name. | ||||||||||||||||||||||||||
number | string Any part of the invoice number. | ||||||||||||||||||||||||||
status | string The invoice status. To search by status, specify this value as an array. For example,
| ||||||||||||||||||||||||||
lower_total_amount | string The lower limit of the total amount. | ||||||||||||||||||||||||||
upper_total_amount | string The upper limit of the total amount. | ||||||||||||||||||||||||||
start_invoice_date | string <date> The start date for the invoice, in Internet date and time format. For example, yyyy-MM-dd z. | ||||||||||||||||||||||||||
end_invoice_date | string <date> The end date for the invoice, in Internet date and time format. For example, yyyy-MM-dd z. | ||||||||||||||||||||||||||
start_due_date | string <date> The start due date for the invoice, in Internet date and time format. For example, yyyy-MM-dd z. | ||||||||||||||||||||||||||
end_due_date | string <date> The end due date for the invoice, in Internet date and time format. For example, yyyy-MM-dd z. | ||||||||||||||||||||||||||
start_payment_date | string <date> The start payment date for the invoice, in Internet date and time format. For example, yyyy-MM-dd z. | ||||||||||||||||||||||||||
end_payment_date | string <date> The end payment date for the invoice, in Internet date and time format. For example, yyyy-MM-dd z. | ||||||||||||||||||||||||||
start_creation_date | string <date> The start creation date for the invoice, in Internet date and time format. For example, yyyy-MM-dd z. | ||||||||||||||||||||||||||
end_creation_date | string <date> The end creation date for the invoice, in Internet date and time format. For example, yyyy-MM-dd z. | ||||||||||||||||||||||||||
page | number The zero-relative start index of the entire list of merchant invoices to return in the response. So, a combination of | ||||||||||||||||||||||||||
page_size | number The page size for the search results. | ||||||||||||||||||||||||||
total_count_required | boolean Default: false Indicates whether the response shows the total count. | ||||||||||||||||||||||||||
archived | boolean Indicates whether to list merchant-archived invoices in the response. If |
A successful request returns the HTTP 200 OK
status code and a JSON response body that lists the invoices that match the search criteria.
{- "start_invoice_date": "2014-01-01 PST",
- "end_invoice_date": "2014-03-26 PST",
- "page": 0,
- "page_size": 3,
- "total_count_required": true
}
{- "invoices": [
- {
- "id": "INV2-KXVU-7Z64-DT6W-MG2X",
- "number": "0001",
- "status": "SENT",
- "merchant_info": {
- "email": "dennis@example.com"
}, - "billing_info": [
- {
- "email": "sally-patient@example.com"
}
], - "invoice_date": "2012-05-09 PST",
- "payment_term": {
- "due_date": "2012-05-24 PST"
}, - "total_amount": {
- "currency": "USD",
- "value": "250"
}, - "metadata": {
- "created_date": "2012-05-09 04:48:57 PST"
}
}
]
}
Deprecation notice: TheSends an invoice, by ID, to a customer. To suppress the merchant's email notification, set the `notify_merchant` query parameter to `false`./v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
Note: After you send an invoice, you cannot resend it.
A successful request returns the HTTP 202 Accepted
status code with no JSON response body.
curl -v -X POST https://api-m.sandbox.paypal.com/v1/invoicing/invoices/INV2-EHNV-LJ5S-A7DZ-V6NJ/send?notify_merchant=true \
Deprecation notice: TheSchedules an invoice, by ID, to send on a future date. At 07:00 on that date in the preferred time zone of the merchant's PayPal account profile, PayPal emails an invoice notification to the merchant and the customer, adds an online payment button to the customer’s view of the invoice, and updates the invoice status to/v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
SENT
.Note: To change the scheduled date, adjust the invoice date and update invoice. To send the invoice immediately, update the invoice date to today or to a date in the past.
A successful request returns the HTTP 202 Accepted
status code and a JSON response body with a link to the invoice .
curl -v -X POST https://api-m.sandbox.paypal.com/v1/invoicing/invoices/INV2-EHNV-LJ5S-A7DZ-V6NJ/schedule \
{- "links": [
- {
- "rel": "self",
- "method": "GET"
}
]
}
Deprecation notice: TheSends a reminder to the payer about an invoice, by ID. In the JSON request body, include a `notification` object that defines the subject of the reminder and other details./v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
A successful request returns the HTTP 202 Accepted
status code with no JSON response body.
{- "subject": "Past due",
- "note": "Please pay soon",
- "send_to_merchant": true,
- "cc_emails": [
- "cc-email@example.com"
]
}
Deprecation notice: TheCancels a sent invoice, by ID, and, optionally, sends a notification about the cancellation to the payer, merchant, and CC: emails./v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
A successful request returns the HTTP 204 No Content
status code with no JSON response body.
{- "subject": "Invoice canceled",
- "note": "Canceling this invoice per your request.",
- "send_to_merchant": true,
- "send_to_payer": true,
- "cc_emails": [
- "cc-email@example.com"
]
}
Deprecation notice: TheMarks the status of an invoice, by ID, as paid./v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
date | string <date-time> The date when the invoice was paid, in Internet date and time format. |
method required | string The payment mode or method. |
note | string A note associated with the payment. |
object (Currency) The currency and amount for a financial transaction, such as a balance or payment due. |
A successful request returns the HTTP 200 OK
status code with no JSON response body.
{- "method": "CASH",
- "date": "2013-11-06 03:30:00 PST",
- "note": "I got the payment by cash!",
- "amount": {
- "currency": "USD",
- "value": "20.00"
}
}
Deprecation notice: TheMarks the status of an invoice, by ID, as refunded./v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
date | string <date-time> The date when the invoice was refunded, in Internet date and time format. For example, |
note | string A note associated with the refund. |
object (Currency) The currency and amount for a financial transaction, such as a balance or payment due. |
A successful request returns the HTTP 200 OK
status code with no JSON response body.
{- "date": "2013-11-10 14:00:00 PST",
- "note": "Refunded by cash!",
- "amount": {
- "currency": "USD",
- "value": "20.00"
}
}
Deprecation notice: TheShows details for an invoice, by ID./v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
A successful request returns the HTTP 200 OK
status code and a JSON response body that shows invoice details.
curl -v -X GET https://api-m.sandbox.paypal.com/v1/invoicing/invoices/INV2-RF6D-L66T-D7H2-CRU7 \
{- "id": "INV2-RF6D-L66T-D7H2-CRU7",
- "number": "0002",
- "status": "DRAFT",
- "template_id": "TEMP-XYZ",
- "merchant_info": {
- "email": "merchant@example.com",
- "first_name": "Dennis",
- "last_name": "Doctor",
- "business_name": "Medical Professionals, LLC",
- "phone": {
- "country_code": "1",
- "national_number": "5032141716"
}, - "address": {
- "line1": "1234 Main St.",
- "city": "Portland",
- "state": "OR",
- "postal_code": "97217",
- "country_code": "US"
}
}, - "billing_info": [
- {
- "email": "bill-me@example.com"
}
], - "shipping_info": {
- "first_name": "Sally",
- "last_name": "Patient",
- "business_name": "Not applicable",
- "address": {
- "line1": "1234 Broad St.",
- "city": "Portland",
- "state": "OR",
- "postal_code": "97216",
- "country_code": "US"
}
}, - "items": [
- {
- "name": "Sutures",
- "quantity": 100,
- "unit_price": {
- "currency": "USD",
- "value": "5.00"
}
}
], - "invoice_date": "2014-03-24 PDT",
- "payment_term": {
- "term_type": "NET_45",
- "due_date": "2014-05-08 PDT"
}, - "tax_calculated_after_discount": false,
- "tax_inclusive": false,
- "note": "Medical Invoice 16 Jul, 2013 PST",
- "total_amount": {
- "currency": "USD",
- "value": "500.00"
}, - "metadata": {
- "created_date": "2014-03-24 12:11:52 PDT"
}, - "links": [
- {
- "rel": "send",
- "method": "POST"
}, - {
- "rel": "delete",
- "method": "DELETE"
}, - {
- "rel": "update",
- "method": "PUT"
}
]
}
Deprecation notice: TheFully updates an invoice, by ID. In the JSON request body, include a complete `invoice` object. This call does not support partial updates./v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
number | string <= 25 characters The invoice number. If you omit this value, the default is the number that the API automatically increments from the last number. |
Array of objects (billing_info) = 1 items An array of billing information for the invoice recipient. Note: This value is an array with only one element. | |
Array of objects (Participant) An array of email addresses to which PayPal sends a copy of the invoice. | |
Array of objects (invoice_item) <= 100 items An array of invoice line item information. | |
invoice_date | string <date> The invoice date as specified by the sender, in Internet date and time format. |
reference | string <= 60 characters The reference data, such as PO number. |
allow_partial_payment | boolean Default: false Indicates whether the invoice allows a partial payment. If Note: This feature is not available for merchants in |
tax_calculated_after_discount | boolean Default: false Indicates whether the tax is calculated before or after a discount. If |
tax_inclusive | boolean Default: false Indicates whether the unit price includes tax. |
terms | string <= 4000 characters The general terms of the invoice. |
note | string <= 4000 characters A note to the invoice recipient. The note also appears on the invoice notification email. |
merchant_memo | string <= 500 characters A private bookkeeping memo for the merchant. |
logo_url | string <uri> <= 4000 characters The full URL to an external logo image. The logo must not be larger than 250 pixels wide by 90 pixels high. The logo must be stored on a secure server. |
allow_tip | boolean Default: false Indicates whether the invoice enables the customer to enter a tip amount during payment. If Note: This feature is not available for merchants in |
template_id | string Default: "PayPal system template" This value is only used to determine the layout to display on the create or edit invoice experience, such as which fields to show and hide. It does not impact the view of the invoice that the customer receives. Note: If you are just using the Invoicing APIs to create and send invoices, leave this field blank. The
|
required | object (merchant_info) The merchant business information that appears on the invoice. |
object (shipping_info) The shipping information for the invoice recipient. | |
object (payment_term) The payment term of the invoice. If you specify | |
object (Discount) The discount as a percent or an amount value. For example, to specify 10%, enter | |
object (shipping_cost) The shipping cost, as a percent or amount value. | |
object (custom_amount) The custom amount to apply to an invoice. If you include a label, you must include a custom amount. | |
object (Currency) The currency and amount for a financial transaction, such as a balance or payment due. |
A successful request returns the HTTP 200 OK
status code and a JSON response body that shows invoice details.
{- "merchant_info": {
- "email": "merchant@example.com",
- "first_name": "Dennis",
- "last_name": "Doctor",
- "business_name": "Medical Professionals, LLC",
- "phone": {
- "country_code": "001",
- "national_number": "5032141716"
}, - "address": {
- "line1": "1234 Main St.",
- "city": "Portland",
- "state": "OR",
- "postal_code": "97217",
- "country_code": "US"
}
}, - "billing_info": [
- {
- "email": "bill-me@example.com"
}
], - "items": [
- {
- "name": "Sutures",
- "quantity": 100,
- "unit_price": {
- "currency": "USD",
- "value": "5"
}
}
], - "note": "Medical Invoice 16 Jul, 2013 PST",
- "payment_term": {
- "term_type": "NET_45"
}, - "shipping_info": {
- "first_name": "Sally",
- "last_name": "Patient",
- "business_name": "Not applicable",
- "address": {
- "line1": "1234 Broad St.",
- "city": "Portland",
- "state": "OR",
- "postal_code": "97216",
- "country_code": "US"
}
}
}
{- "id": "INV2-8UZ6-Q3DK-VZXV-SXQB",
- "number": "0014",
- "status": "DRAFT",
- "merchant_info": {
- "email": "merchant@example.com",
- "first_name": "Dennis",
- "last_name": "Doctor",
- "business_name": "Medical Professionals, LLC",
- "phone": {
- "country_code": "1",
- "national_number": "5032141716"
}, - "address": {
- "line1": "1234 Main St.",
- "city": "Portland",
- "state": "OR",
- "postal_code": "97217",
- "country_code": "US"
}
}, - "billing_info": [
- {
- "email": "bill-me@example.com"
}
], - "shipping_info": {
- "first_name": "Sally",
- "last_name": "Patient",
- "business_name": "Not applicable",
- "address": {
- "line1": "1234 Broad St.",
- "city": "Portland",
- "state": "OR",
- "postal_code": "97216",
- "country_code": "US"
}
}, - "items": [
- {
- "name": "Sutures",
- "quantity": 100,
- "unit_price": {
- "currency": "USD",
- "value": "5.00"
}
}
], - "invoice_date": "2014-03-24 PDT",
- "payment_term": {
- "term_type": "NET_45",
- "due_date": "2014-05-08 PDT"
}, - "tax_calculated_after_discount": false,
- "tax_inclusive": false,
- "note": "Medical Invoice 16 Jul, 2013 PST",
- "total_amount": {
- "currency": "USD",
- "value": "500.00"
}
}
Deprecation notice: TheDeletes invoices in the/v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
DRAFT
or SCHEDULED
state, by ID. For invoices that have already been sent, you can cancel the invoice. After you delete a draft or scheduled invoice, you can no longer use it or show its details. However, you can reuse its invoice number.A successful request returns the HTTP 204 No Content
status code with no JSON response body.
curl -v -X DELETE https://api-m.sandbox.paypal.com/v1/invoicing/invoices/INV2-92MG-CNXV-ND7G-P3D2 \
Deprecation notice: TheDeletes an external payment, by invoice ID and transaction ID./v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
A successful request returns the HTTP 204 No Content
status code with no JSON response body.
curl -v -X DELETE https://api-m.sandbox.paypal.com/v1/invoicing/invoices/INV2-TBRZ-SWBK-7FQ9-AC8F/payment-records/EXTR-86F38350LX4353815 \
Deprecation notice: TheDeletes an external refund, by invoice ID and transaction ID./v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
A successful request returns the HTTP 204 No Content
status code with no JSON response body.
curl -v -X DELETE https://api-m.sandbox.paypal.com/v1/invoicing/invoices/INV2-333R-YUQL-YNNN-D7WF/refund-records/EXTR-2LG703375E477444T \
Deprecation notice: TheGenerates a QR code for an invoice, by ID. The QR code is a PNG image in Base64-encoded format that corresponds to the invoice ID. You can generate a QR code for an invoice and add it to a paper or PDF invoice. When customers use their mobile devices to scan the QR code, they are redirected to the PayPal mobile payment flow where they can view the invoice and pay online with PayPal or a credit card. Before you get a QR code, you must create an invoice and send an invoice to move the invoice from a draft to payable state. Do not include an email address if you do not want the invoice emailed./v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
A successful request returns the HTTP 200 OK
status code and a JSON response body that shows the QR code as a PNG image.
curl -v -X GET https://api-m.sandbox.paypal.com/v1/invoicing/invoices/INV2-S6FG-ZZCK-VXMM-8KKP/qr-code \
{- "image": "iVBORw0KGgoAA......XUDM"
}
Deprecation notice: TheGenerates the next invoice number that is available to the merchant. The next invoice number uses the prefix and suffix from the last invoice number and increments the number by one. For example, the next invoice number after `INVOICE-1234` is `INVOICE-1235`./v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
A successful request returns the HTTP 200 OK
status code and a JSON response body that shows the next invoice number.
curl -v -X POST https://api-m.sandbox.paypal.com/v1/invoicing/invoices/next-invoice-number \
{- "number": "ee0044"
}
Deprecation notice: TheCreates an invoice template. You can use details from this template to create an invoice. You can create up to 50 templates./v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
Note: Every merchant starts with three PayPal system templates that are optimized for the unit type billed. The template includes `Quantity`, `Hours`, and `Amount`.
Created
{- "name": "Hours Template",
- "default": true,
- "unit_of_measure": "HOURS",
- "template_data": {
- "merchant_info": {
- "email": "doctor@example.com",
- "first_name": "Dennis",
- "last_name": "Doctor",
- "business_name": "Medical Professionals, LLC",
- "phone": {
- "country_code": "001",
- "national_number": "5032141716"
}, - "address": {
- "line1": "1234 Main St.",
- "city": "Portland",
- "state": "OR",
- "postal_code": "97217",
- "country_code": "US"
}
}, - "items": [
- {
- "name": "Nutri Bullet",
- "quantity": 1,
- "unit_price": {
- "currency": "USD",
- "value": "50.00"
}
}
], - "tax_calculated_after_discount": false,
- "tax_inclusive": false,
- "note": "Thank you for your business.",
}, - "settings": [
- {
- "field_name": "items.date",
- "display_preference": {
- "hidden": true
}
}, - {
- "field_name": "custom",
- "display_preference": {
- "hidden": true
}
}
]
}
{- "template_id": "TEMP-XYZ",
- "name": "Hours Template",
- "default": true,
- "unit_of_measure": "HOURS",
- "template_data": {
- "merchant_info": {
- "email": "doctor@example.com",
- "first_name": "Dennis",
- "last_name": "Doctor",
- "business_name": "Medical Professionals, LLC",
- "phone": {
- "country_code": "001",
- "national_number": "5032141716"
}, - "address": {
- "line1": "1234 Main St.",
- "city": "Portland",
- "state": "OR",
- "postal_code": "97217",
- "country_code": "US"
}
}, - "items": [
- {
- "name": "Nutri Bullet",
- "quantity": 1,
- "unit_price": {
- "currency": "USD",
- "value": "50.00"
}
}
], - "tax_calculated_after_discount": false,
- "tax_inclusive": false,
- "note": "Thank you for your business.",
}, - "settings": [
- {
- "field_name": "items.date",
- "display_preference": {
- "hidden": true
}
}, - {
- "field_name": "custom",
- "display_preference": {
- "hidden": true
}
}
], - "links": [
- {
- "rel": "self",
- "method": "GET"
}, - {
- "rel": "replace",
- "method": "PUT"
}, - {
- "rel": "delete",
- "method": "DELETE"
}
]
}
Deprecation notice: TheLists merchant-created templates with associated details. The associated details include the email addresses, postal addresses, and phone numbers from the user's PayPal profile./v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
A successful request returns the HTTP 200 OK
status code and a JSON response body that lists invoices.
curl -v -X GET https://api-m.sandbox.paypal.com/v1/invoicing/templates \
{- "addresses": [
- {
- "line1": "2211 N 1st Street",
- "city": "San Jose",
- "postal_code": "95131",
- "state": "CA",
- "country_code": "US"
}
], - "emails": [
- "invoicing-merchant@example.com",
- "invoicing-merch-store2@example.com"
], - "phones": [
- {
- "country_code": "1",
- "national_number": "4085057783"
}, - {
- "country_code": "1",
- "national_number": "4088064703"
}
], - "templates": [
- {
- "template_id": "TEMP-XYZ",
- "name": "Hours Template",
- "default": true,
- "unit_of_measure": "HOURS",
- "template_data": {
- "merchant_info": {
- "email": "doctor@example.com",
- "first_name": "Dennis",
- "last_name": "Doctor",
- "business_name": "Medical Professionals, LLC",
- "phone": {
- "country_code": "001",
- "national_number": "5032141716"
}, - "address": {
- "line1": "1234 Main St.",
- "city": "Portland",
- "state": "OR",
- "postal_code": "97217",
- "country_code": "US"
}
}, - "items": [
- {
- "name": "Nutri Bullet",
- "quantity": 1,
- "unit_price": {
- "currency": "USD",
- "value": "50.00"
}
}
], - "tax_calculated_after_discount": false,
- "tax_inclusive": false,
- "note": "Thank you for your business.",
}, - "settings": [
- {
- "field_name": "items.date",
- "display_preference": {
- "hidden": true
}
}, - {
- "field_name": "custom",
- "display_preference": {
- "hidden": true
}
}
], - "links": [
- {
- "rel": "self",
- "method": "GET"
}, - {
- "rel": "replace",
- "method": "PUT"
}, - {
- "rel": "delete",
- "method": "DELETE"
}
]
}
], - "links": [
- {
- "rel": "collection",
- "method": "GET"
}
]
}
Deprecation notice: TheShows details for a template, by ID./v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
A successful request returns the HTTP 200 OK
status code and a JSON response body that shows template details.
curl -v -X GET https://api-m.sandbox.paypal.com/v1/invoicing/templates/TEMP-0JV3858360943364J \
{- "template_id": "TEMP-XYZ",
- "name": "Hours Template",
- "default": true,
- "unit_of_measure": "HOURS",
- "template_data": {
- "merchant_info": {
- "email": "doctor@example.com",
- "first_name": "Dennis",
- "last_name": "Doctor",
- "business_name": "Medical Professionals, LLC",
- "phone": {
- "country_code": "001",
- "national_number": "5032141716"
}, - "address": {
- "line1": "1234 Main St.",
- "city": "Portland",
- "state": "OR",
- "postal_code": "97217",
- "country_code": "US"
}
}, - "items": [
- {
- "name": "Nutri Bullet",
- "quantity": 1,
- "unit_price": {
- "currency": "USD",
- "value": "50.00"
}
}
], - "tax_calculated_after_discount": false,
- "tax_inclusive": false,
- "note": "Thank you for your business.",
}, - "settings": [
- {
- "field_name": "items.date",
- "display_preference": {
- "hidden": true
}
}, - {
- "field_name": "custom",
- "display_preference": {
- "hidden": true
}
}
], - "links": [
- {
- "rel": "self",
- "method": "GET"
}, - {
- "rel": "replace",
- "method": "PUT"
}, - {
- "rel": "delete",
- "method": "DELETE"
}
]
}
Deletes a template, by ID.
A successful request returns the HTTP 204 No Content
status code with no JSON response body.
curl -v -X DELETE https://api-m.sandbox.paypal.com/v1/invoicing/templates/TEMP-0JV3858360943364J \
Deprecation notice: TheUpdates a template, by ID. In the JSON request body, specify a complete `template` object. The update method does not support partial updates./v1/invoices
endpoint is deprecated. Use the/v2/invoices
endpoint instead. For details, see PayPal Invoicing Basic Integration.
A successful request returns the HTTP 200 OK
status code and a JSON response body that shows template details.
{- "template_id": "TEMP-XYZ",
- "name": "Hours Template",
- "default": true,
- "unit_of_measure": "HOURS",
- "template_data": {
- "merchant_info": {
- "email": "doctor@example.com",
- "first_name": "Dennis",
- "last_name": "Doctor",
- "business_name": "Medical Professionals, LLC",
- "phone": {
- "country_code": "001",
- "national_number": "5032141716"
}, - "address": {
- "line1": "1234 Main St.",
- "city": "Portland",
- "state": "OR",
- "postal_code": "97217",
- "country_code": "US"
}
}, - "items": [
- {
- "name": "Nutri Bullet",
- "quantity": 1,
- "unit_price": {
- "currency": "USD",
- "value": "50.00"
}
}
], - "tax_calculated_after_discount": false,
- "tax_inclusive": false,
- "note": "Thank you for your business.",
}, - "settings": [
- {
- "field_name": "items.date",
- "display_preference": {
- "hidden": true
}
}, - {
- "field_name": "custom",
- "display_preference": {
- "hidden": true
}
}
]
}
{- "template_id": "TEMP-XYZ",
- "name": "Hours Template",
- "default": true,
- "unit_of_measure": "HOURS",
- "template_data": {
- "merchant_info": {
- "email": "doctor@example.com",
- "first_name": "Dennis",
- "last_name": "Doctor",
- "business_name": "Medical Professionals, LLC",
- "phone": {
- "country_code": "001",
- "national_number": "5032141716"
}, - "address": {
- "line1": "1234 Main St.",
- "city": "Portland",
- "state": "OR",
- "postal_code": "97217",
- "country_code": "US"
}
}, - "items": [
- {
- "name": "Nutri Bullet",
- "quantity": 1,
- "unit_price": {
- "currency": "USD",
- "value": "50.00"
}
}
], - "tax_calculated_after_discount": false,
- "tax_inclusive": false,
- "note": "Thank you for your business.",
}, - "settings": [
- {
- "field_name": "items.date",
- "display_preference": {
- "hidden": true
}
}, - {
- "field_name": "custom",
- "display_preference": {
- "hidden": true
}
}
], - "links": [
- {
- "rel": "self",
- "method": "GET"
}, - {
- "rel": "replace",
- "method": "PUT"
}, - {
- "rel": "delete",
- "method": "DELETE"
}
]
}
Message:
Invoicing business error.
Description: See the message for a brief description of the error.
Message:
An internal service error has occurred.
Description: Resend the request at another time. If this error continues, contact PayPal Merchant Technical Support.
Message:
JSON request malformed.
Description: Correct the JSON request body and resend the request.
Message:
Unknown exception occurred.
Description: If this error continues, contact PayPal Merchant Technical Support.
Message:
User business error.
Description: See the message for a brief description of the error.
Message:
Invalid request - see details.
Description: One or more validation errors have occurred. Review the details for specific validation errors.
The address, which is either a billing address or shipping address in a payment.
line1 required | string The first line of the address. For example, number or street. |
line2 | string The second line of the address. For example, suite or apartment number. |
city required | string The city name. |
country_code required | string The two-character ISO 3166-1 code that identifies the country or region. Note: The country code for Great Britain is |
postal_code | string The postal code, which is the zip code or equivalent. Typically required for countries with a postal code or an equivalent. See postal code. |
state | |
phone | string <phone> The phone number, in its canonical international E.164 numbering plan format. |
{- "line1": "string",
- "line2": "string",
- "city": "string",
- "country_code": "string",
- "postal_code": "string",
- "state": "string",
- "phone": "string"
}
The summary of the invoice total and paid and refunded amounts, grouped by currency code.
object (Currency) The currency and amount for a financial transaction, such as a balance or payment due. | |
object (payment_summary) The payment and refund summary. | |
object (payment_summary) The payment and refund summary. |
{- "total_amount": {
- "currency": "string",
- "value": "string"
}, - "paid_amount": {
- "paypal": {
- "currency": "string",
- "value": "string"
}, - "other": {
- "currency": "string",
- "value": "string"
}
}, - "refunded_amount": {
- "paypal": {
- "currency": "string",
- "value": "string"
}, - "other": {
- "currency": "string",
- "value": "string"
}
}
}
The billing information for the invoice recipient.
string <email> <= 260 characters The invoice recipient email address. If you omit this value, the invoice is payable and a notification email is not sent. | |
first_name | string <= 30 characters The invoice recipient's first name. |
last_name | string <= 30 characters The invoice recipient's last name. |
business_name | string <= 100 characters The invoice recipient's business name. |
language | string The language in which the invoice recipient's email appears. Used only when the recipient does not have a PayPal account. |
additional_info | string <= 40 characters Any additional information about the recipient. |
object (Phone) The phone number. | |
object (Address) The address, which is either a billing address or shipping address in a payment. |
{- "email": "user@example.com",
- "first_name": "string",
- "last_name": "string",
- "business_name": "string",
- "language": "da_DK",
- "additional_info": "string",
- "phone": {
- "country_code": "str",
- "national_number": "string"
}, - "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "country_code": "string",
- "postal_code": "string",
- "state": "string",
- "phone": "string"
}
}
Cancels an email or SMS notification.
subject | string The subject of the notification. If left blank we include a generic subject. |
note | string A note to the payer. |
send_to_merchant | boolean Default: true Indicates whether to send the notification to the merchant. |
send_to_payer | boolean Default: true Indicates whether to send the notification to the payer. |
cc_emails | Array of strings <= 100 items An array of one or more CC: emails to which to send notification emails. If you omit this parameter, the API sends notification emails to all CC: email addresses that are part of the invoice. Note: Additional email addresses are not supported. |
{- "subject": "string",
- "note": "string",
- "send_to_merchant": true,
- "send_to_payer": true,
- "cc_emails": [
- "string"
]
}
The currency and amount for a financial transaction, such as a balance or payment due.
currency required | string |
value required | string The value, which might be:
|
{- "currency": "string",
- "value": "string"
}
The custom amount to apply to an invoice. If you include a label, you must include a custom amount.
label | string <= 50 characters The custom amount label. |
object (Currency) The currency and amount for a financial transaction, such as a balance or payment due. |
{- "label": "string",
- "amount": {
- "currency": "string",
- "value": "string"
}
}
The discount as a percent or an amount value. For example, to specify 10%, enter 10
. Alternatively, to specify an amount of 5, enter 5
.
percent | number The discount as a percentage value. Value is from |
object (Currency) The currency and amount for a financial transaction, such as a balance or payment due. |
{- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}
The participant's email address.
The participant's email address.
"user@example.com"
The error information.
name required | string The human-readable, unique name of the error. |
debug_id | string The PayPal internal ID. Used for correlation purposes. |
message required | string The message that describes the error. |
information_link required | string The URI to detailed information related to this error for the developer. |
Array of objects (Error Details) An array of additional details for the error. |
{- "name": "string",
- "debug_id": "string",
- "message": "string",
- "information_link": "string",
- "details": [
- {
- "field": "string",
- "issue": "string"
}
]
}
The error details. Required for client-side 4XX
errors.
field required | string The name of the field that caused the error. |
issue required | string The reason for the error. |
{- "field": "string",
- "issue": "string"
}
The file that is attached to an invoice or template.
name | string The name of the attached file. |
url | string <uri> The URL of the attached file. Use this URL to download the file. |
{- "name": "string",
}
The invoice details.
id | string The ID of the invoice. | ||||||||||||||||||||||||||
number | string <= 25 characters The invoice number. If you omit this value, the default is the number that the API automatically increments from the last number. | ||||||||||||||||||||||||||
status | string The invoice status. When you search for invoices, you must specify this value as an array. For example,
Similarly, an invoice refund can be disconnected from an invoice. The merchant refunds a payment by check, wire transfer, or another method and manually records the refund. This table lists the typical order through which an invoice moves through status values:
| ||||||||||||||||||||||||||
Array of objects (billing_info) = 1 items An array of billing information for the invoice recipient. Note: This value is an array with only one element. | |||||||||||||||||||||||||||
Array of objects (Participant) An array of email addresses to which PayPal sends a copy of the invoice. | |||||||||||||||||||||||||||
Array of objects (invoice_item) <= 100 items An array of invoice line item information. | |||||||||||||||||||||||||||
invoice_date | string <date> The invoice date as specified by the sender, in Internet date and time format. | ||||||||||||||||||||||||||
reference | string <= 60 characters The reference data, such as PO number. | ||||||||||||||||||||||||||
allow_partial_payment | boolean Default: false Indicates whether the invoice allows a partial payment. If Note: This feature is not available for merchants in | ||||||||||||||||||||||||||
tax_calculated_after_discount | boolean Default: false Indicates whether the tax is calculated before or after a discount. If | ||||||||||||||||||||||||||
tax_inclusive | boolean Default: false Indicates whether the unit price includes tax. | ||||||||||||||||||||||||||
terms | string <= 4000 characters The general terms of the invoice. | ||||||||||||||||||||||||||
note | string <= 4000 characters A note to the invoice recipient. The note also appears on the invoice notification email. | ||||||||||||||||||||||||||
merchant_memo | string <= 500 characters A private bookkeeping memo for the merchant. | ||||||||||||||||||||||||||
logo_url | string <uri> <= 4000 characters The full URL to an external logo image. The logo must not be larger than 250 pixels wide by 90 pixels high. The logo must be stored on a secure server. | ||||||||||||||||||||||||||
Array of objects (payment_detail) <= 1 items An array of payment details for the invoice. | |||||||||||||||||||||||||||
Array of objects (refund_detail) <= 1 items An array of refund details for the invoice. | |||||||||||||||||||||||||||
Array of objects (file_attachment) An array of PayPal file IDs for the files that are attached to an invoice. You can attach up to five files. | |||||||||||||||||||||||||||
allow_tip | boolean Default: false Indicates whether the invoice enables the customer to enter a tip amount during payment. If Note: This feature is not available for merchants in | ||||||||||||||||||||||||||
template_id | string Default: "PayPal system template" This value is only used to determine the layout to display on the create or edit invoice experience, such as which fields to show and hide. It does not impact the view of the invoice that the customer receives. Note: If you are just using the Invoicing APIs to create and send invoices, leave this field blank. The
| ||||||||||||||||||||||||||
Array of objects (Link Description) An array of request-related HATEOAS links. | |||||||||||||||||||||||||||
required | object (merchant_info) The merchant business information that appears on the invoice. | ||||||||||||||||||||||||||
object (shipping_info) The shipping information for the invoice recipient. | |||||||||||||||||||||||||||
object (payment_term) The payment term of the invoice. If you specify | |||||||||||||||||||||||||||
object (Discount) The discount as a percent or an amount value. For example, to specify 10%, enter | |||||||||||||||||||||||||||
object (shipping_cost) The shipping cost, as a percent or amount value. | |||||||||||||||||||||||||||
object (custom_amount) The custom amount to apply to an invoice. If you include a label, you must include a custom amount. | |||||||||||||||||||||||||||
object (Currency) The currency and amount for a financial transaction, such as a balance or payment due. | |||||||||||||||||||||||||||
object (Currency) The currency and amount for a financial transaction, such as a balance or payment due. | |||||||||||||||||||||||||||
object (Metadata) The audit metadata. | |||||||||||||||||||||||||||
object (payment_summary) The payment and refund summary. | |||||||||||||||||||||||||||
object (payment_summary) The payment and refund summary. |
{- "id": "string",
- "number": "string",
- "status": "DRAFT",
- "billing_info": [
- {
- "email": "user@example.com",
- "first_name": "string",
- "last_name": "string",
- "business_name": "string",
- "language": "da_DK",
- "additional_info": "string",
- "phone": {
- "country_code": "str",
- "national_number": "string"
}, - "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "country_code": "string",
- "postal_code": "string",
- "state": "string",
- "phone": "string"
}
}
], - "cc_info": [
- {
- "email": "user@example.com"
}
], - "items": [
- {
- "name": "string",
- "description": "string",
- "quantity": 0,
- "date": "2019-08-24",
- "unit_of_measure": "QUANTITY",
- "unit_price": {
- "currency": "string",
- "value": "string"
}, - "tax": {
- "name": "string",
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}, - "discount": {
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}
}
], - "invoice_date": "2019-08-24",
- "reference": "string",
- "allow_partial_payment": false,
- "tax_calculated_after_discount": false,
- "tax_inclusive": false,
- "terms": "string",
- "note": "string",
- "merchant_memo": "string",
- "payments": [
- {
- "type": "PAYPAL",
- "transaction_id": "string",
- "transaction_type": "SALE",
- "date": "2019-08-24T14:15:22Z",
- "method": "BANK_TRANSFER",
- "note": "string",
- "amount": {
- "currency": "string",
- "value": "string"
}
}
], - "refunds": [
- {
- "type": "PAYPAL",
- "transaction_id": "string",
- "date": "2019-08-24T14:15:22Z",
- "note": "string",
- "amount": {
- "currency": "string",
- "value": "string"
}
}
], - "allow_tip": false,
- "template_id": "PayPal system template",
- "links": [
- {
- "href": "string",
- "rel": "string",
- "method": "GET"
}
], - "merchant_info": {
- "email": "user@example.com",
- "business_name": "string",
- "first_name": "string",
- "last_name": "string",
- "tax_id": "string",
- "additional_info": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "country_code": "string",
- "postal_code": "string",
- "state": "string",
- "phone": "string"
}, - "phone": {
- "country_code": "str",
- "national_number": "string"
}, - "fax": {
- "country_code": "str",
- "national_number": "string"
}
}, - "shipping_info": {
- "first_name": "string",
- "last_name": "string",
- "business_name": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "country_code": "string",
- "postal_code": "string",
- "state": "string",
- "phone": "string"
}
}, - "payment_term": {
- "term_type": "DUE_ON_RECEIPT",
- "due_date": "2019-08-24"
}, - "discount": {
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}, - "shipping_cost": {
- "amount": {
- "currency": "string",
- "value": "string"
}, - "tax": {
- "name": "string",
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}
}, - "custom": {
- "label": "string",
- "amount": {
- "currency": "string",
- "value": "string"
}
}, - "minimum_amount_due": {
- "currency": "string",
- "value": "string"
}, - "total_amount": {
- "currency": "string",
- "value": "string"
}, - "metadata": {
- "created_date": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "cancelled_date": "2019-08-24T14:15:22Z",
- "cancelled_by": "string",
- "last_updated_date": "2019-08-24T14:15:22Z",
- "last_updated_by": "string",
- "first_sent_date": "2019-08-24T14:15:22Z",
- "last_sent_date": "2019-08-24T14:15:22Z",
- "last_sent_by": "string",
}, - "paid_amount": {
- "paypal": {
- "currency": "string",
- "value": "string"
}, - "other": {
- "currency": "string",
- "value": "string"
}
}, - "refunded_amount": {
- "paypal": {
- "currency": "string",
- "value": "string"
}, - "other": {
- "currency": "string",
- "value": "string"
}
}
}
The invoice number.
number | string The invoice number. If you omit this value from the request, the default is the number that the API automatically increments from the last number. |
{- "number": "string"
}
The invoice line item information.
name required | string <= 200 characters The item name. |
description | string <= 1000 characters The item description. |
quantity required | number The item quantity. Value is from |
date | string <date> The date when the item or service was provided, in Internet date and time format. For example, yyyy-MM-dd z. |
unit_of_measure | string The unit of measure for the invoiced item. For Note: If your specify different
|
required | object (Currency) The currency and amount for a financial transaction, such as a balance or payment due. |
object (Tax) The tax information. | |
object (Discount) The discount as a percent or an amount value. For example, to specify 10%, enter |
{- "name": "string",
- "description": "string",
- "quantity": 0,
- "date": "2019-08-24",
- "unit_of_measure": "QUANTITY",
- "unit_price": {
- "currency": "string",
- "value": "string"
}, - "tax": {
- "name": "string",
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}, - "discount": {
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}
}
A list of merchant invoices. Can include the total invoices count and HATEOAS links for navigation.
total_count | integer The total number of invoices that match the search criteria. |
Array of objects (Invoice) An array of invoice-level details. Note: This array does not return item details for the invoice. | |
Array of objects (Link Description) An array of request-related HATEOAS links. |
{- "total_count": 0,
- "invoices": [
- {
- "id": "string",
- "number": "string",
- "status": "DRAFT",
- "billing_info": [
- {
- "email": "user@example.com",
- "first_name": "string",
- "last_name": "string",
- "business_name": "string",
- "language": "da_DK",
- "additional_info": "string",
- "phone": {
- "country_code": "str",
- "national_number": "string"
}, - "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "country_code": "string",
- "postal_code": "string",
- "state": "string",
- "phone": "string"
}
}
], - "cc_info": [
- {
- "email": "user@example.com"
}
], - "items": [
- {
- "name": "string",
- "description": "string",
- "quantity": 0,
- "date": "2019-08-24",
- "unit_of_measure": "QUANTITY",
- "unit_price": {
- "currency": "string",
- "value": "string"
}, - "tax": {
- "name": "string",
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}, - "discount": {
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}
}
], - "invoice_date": "2019-08-24",
- "reference": "string",
- "allow_partial_payment": false,
- "tax_calculated_after_discount": false,
- "tax_inclusive": false,
- "terms": "string",
- "note": "string",
- "merchant_memo": "string",
- "payments": [
- {
- "type": "PAYPAL",
- "transaction_id": "string",
- "transaction_type": "SALE",
- "date": "2019-08-24T14:15:22Z",
- "method": "BANK_TRANSFER",
- "note": "string",
- "amount": {
- "currency": "string",
- "value": "string"
}
}
], - "refunds": [
- {
- "type": "PAYPAL",
- "transaction_id": "string",
- "date": "2019-08-24T14:15:22Z",
- "note": "string",
- "amount": {
- "currency": "string",
- "value": "string"
}
}
], - "allow_tip": false,
- "template_id": "PayPal system template",
- "links": [
- {
- "href": "string",
- "rel": "string",
- "method": "GET"
}
], - "merchant_info": {
- "email": "user@example.com",
- "business_name": "string",
- "first_name": "string",
- "last_name": "string",
- "tax_id": "string",
- "additional_info": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "country_code": "string",
- "postal_code": "string",
- "state": "string",
- "phone": "string"
}, - "phone": {
- "country_code": "str",
- "national_number": "string"
}, - "fax": {
- "country_code": "str",
- "national_number": "string"
}
}, - "shipping_info": {
- "first_name": "string",
- "last_name": "string",
- "business_name": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "country_code": "string",
- "postal_code": "string",
- "state": "string",
- "phone": "string"
}
}, - "payment_term": {
- "term_type": "DUE_ON_RECEIPT",
- "due_date": "2019-08-24"
}, - "discount": {
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}, - "shipping_cost": {
- "amount": {
- "currency": "string",
- "value": "string"
}, - "tax": {
- "name": "string",
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}
}, - "custom": {
- "label": "string",
- "amount": {
- "currency": "string",
- "value": "string"
}
}, - "minimum_amount_due": {
- "currency": "string",
- "value": "string"
}, - "total_amount": {
- "currency": "string",
- "value": "string"
}, - "metadata": {
- "created_date": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "cancelled_date": "2019-08-24T14:15:22Z",
- "cancelled_by": "string",
- "last_updated_date": "2019-08-24T14:15:22Z",
- "last_updated_by": "string",
- "first_sent_date": "2019-08-24T14:15:22Z",
- "last_sent_date": "2019-08-24T14:15:22Z",
- "last_sent_by": "string",
}, - "paid_amount": {
- "paypal": {
- "currency": "string",
- "value": "string"
}, - "other": {
- "currency": "string",
- "value": "string"
}
}, - "refunded_amount": {
- "paypal": {
- "currency": "string",
- "value": "string"
}, - "other": {
- "currency": "string",
- "value": "string"
}
}
}
], - "links": [
- {
- "href": "string",
- "rel": "string",
- "method": "GET"
}
]
}
The request-related HATEOAS link information.
href required | string The complete target URL. To make the related call, combine the method with this URI Template-formatted link. For pre-processing, include the |
rel required | string The link relation type, which serves as an ID for a link that unambiguously describes the semantics of the link. See Link Relations. |
method | string The HTTP method required to make the related call. |
{- "href": "string",
- "rel": "string",
- "method": "GET"
}
The merchant business information that appears on the invoice.
string <email> <= 260 characters The merchant email address. This email must be listed in the merchant's PayPal profile. | |
business_name | string <= 100 characters The merchant's business name. |
first_name | string <= 256 characters The merchant's first name. |
last_name | string <= 256 characters The merchant's last name. |
website | string <uri> <= 2048 characters The merchant's website. |
tax_id | string <= 100 characters The merchant's tax ID. |
additional_info | string <= 40 characters Any additional information, such as business hours. |
object (Address) The address, which is either a billing address or shipping address in a payment. | |
object (Phone) The phone number. | |
object (Phone) The phone number. |
{- "email": "user@example.com",
- "business_name": "string",
- "first_name": "string",
- "last_name": "string",
- "tax_id": "string",
- "additional_info": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "country_code": "string",
- "postal_code": "string",
- "state": "string",
- "phone": "string"
}, - "phone": {
- "country_code": "str",
- "national_number": "string"
}, - "fax": {
- "country_code": "str",
- "national_number": "string"
}
}
The audit metadata.
created_date | string <date-time> The date and time when the resource was created, in Internet date and time format. |
created_by | string The email address of the account that created the resource. |
cancelled_date | string <date-time> The date and time when the resource was canceled, in Internet date and time format. |
cancelled_by | string The actor who canceled the resource. |
last_updated_date | string <date-time> The date and time when the resource was last edited, in Internet date and time format. |
last_updated_by | string The email address of the account that last edited the resource. |
first_sent_date | string <date-time> The date and time when the resource was first sent, in Internet date and time format. |
last_sent_date | string <date-time> The date and time when the resource was last sent, in Internet date and time format. |
last_sent_by | string The email address of the account that last sent the resource. |
payer_view_url | string <uri> The URL for the payer's view of the invoice. |
{- "created_date": "2019-08-24T14:15:22Z",
- "created_by": "string",
- "cancelled_date": "2019-08-24T14:15:22Z",
- "cancelled_by": "string",
- "last_updated_date": "2019-08-24T14:15:22Z",
- "last_updated_by": "string",
- "first_sent_date": "2019-08-24T14:15:22Z",
- "last_sent_date": "2019-08-24T14:15:22Z",
- "last_sent_by": "string",
}
The email or SMS notification.
subject | string The subject of the notification. Default is a generic subject. |
note | string A note to the payer. |
send_to_merchant | boolean Default: true Indicates whether to send a copy of the email to the merchant. |
cc_emails | Array of strings <= 100 items An array of one or more CC: emails to which to send notification emails. If you omit this parameter, the API sends notification emails to all CC: email addresses that are part of the invoice. Note: Valid values are email addresses in the
|
{- "subject": "string",
- "note": "string",
- "send_to_merchant": true,
- "cc_emails": [
- "string"
]
}
The participant information.
email required | string <email> <= 260 characters The email address of the person who receives a copy of the invoice. |
{- "email": "user@example.com"
}
The payment details.
type | string The payment type in an invoicing flow. The record refund method supports the |
transaction_id | string The ID for a PayPal payment transaction. Required for the |
transaction_type | string The transaction type. |
date | string <date-time> The date when the invoice was paid, in Internet date and time format. |
method required | string The payment mode or method. |
note | string A note associated with the payment. |
object (Currency) The currency and amount for a financial transaction, such as a balance or payment due. |
{- "type": "PAYPAL",
- "transaction_id": "string",
- "transaction_type": "SALE",
- "date": "2019-08-24T14:15:22Z",
- "method": "BANK_TRANSFER",
- "note": "string",
- "amount": {
- "currency": "string",
- "value": "string"
}
}
The payment and refund summary.
object (Currency) The currency and amount for a financial transaction, such as a balance or payment due. | |
object (Currency) The currency and amount for a financial transaction, such as a balance or payment due. |
{- "paypal": {
- "currency": "string",
- "value": "string"
}, - "other": {
- "currency": "string",
- "value": "string"
}
}
The payment term of the invoice. If you specify term_type
, you cannot specify due_date
, and vice versa.
term_type | string The term when the invoice payment is due. |
due_date | string <date> The date when the invoice payment is due, in Internet date and time format. For example, yyyy-MM-dd z. |
{- "term_type": "DUE_ON_RECEIPT",
- "due_date": "2019-08-24"
}
The phone number.
country_code | string [ 1 .. 3 ] characters ^[0-9]{1,3}?$ The country code portion of the phone number, in E.164 format. |
national_number | string [ 1 .. 14 ] characters ^[0-9]{1,14}?$ The in-country phone number, in E.164 format. |
{- "country_code": "str",
- "national_number": "string"
}
The base64-encoded image of the image/png
type.
image | string The base64-encoded image of the |
{- "image": "string"
}
The invoicing refund details.
type | string The PayPal refund type. Indicates whether the refund was paid through PayPal or externally in the invoicing flow. The record refund method supports the |
transaction_id | string The ID of the PayPal refund transaction. Required for the |
date | string <date-time> The date when the invoice was refunded, in Internet date and time format. For example, |
note | string A note associated with the refund. |
object (Currency) The currency and amount for a financial transaction, such as a balance or payment due. |
{- "type": "PAYPAL",
- "transaction_id": "string",
- "date": "2019-08-24T14:15:22Z",
- "note": "string",
- "amount": {
- "currency": "string",
- "value": "string"
}
}
The invoice search parameters.
string The initial letters of the email address. | |||||||||||||||||||||||||||
recipient_first_name | string The initial letters of the recipient's first name. | ||||||||||||||||||||||||||
recipient_last_name | string The initial letters of the recipient's last name. | ||||||||||||||||||||||||||
recipient_business_name | string The initial letters of the recipient's business name. | ||||||||||||||||||||||||||
number | string Any part of the invoice number. | ||||||||||||||||||||||||||
status | string The invoice status. To search by status, specify this value as an array. For example,
| ||||||||||||||||||||||||||
lower_total_amount | string The lower limit of the total amount. | ||||||||||||||||||||||||||
upper_total_amount | string The upper limit of the total amount. | ||||||||||||||||||||||||||
start_invoice_date | string <date> The start date for the invoice, in Internet date and time format. For example, yyyy-MM-dd z. | ||||||||||||||||||||||||||
end_invoice_date | string <date> The end date for the invoice, in Internet date and time format. For example, yyyy-MM-dd z. | ||||||||||||||||||||||||||
start_due_date | string <date> The start due date for the invoice, in Internet date and time format. For example, yyyy-MM-dd z. | ||||||||||||||||||||||||||
end_due_date | string <date> The end due date for the invoice, in Internet date and time format. For example, yyyy-MM-dd z. | ||||||||||||||||||||||||||
start_payment_date | string <date> The start payment date for the invoice, in Internet date and time format. For example, yyyy-MM-dd z. | ||||||||||||||||||||||||||
end_payment_date | string <date> The end payment date for the invoice, in Internet date and time format. For example, yyyy-MM-dd z. | ||||||||||||||||||||||||||
start_creation_date | string <date> The start creation date for the invoice, in Internet date and time format. For example, yyyy-MM-dd z. | ||||||||||||||||||||||||||
end_creation_date | string <date> The end creation date for the invoice, in Internet date and time format. For example, yyyy-MM-dd z. | ||||||||||||||||||||||||||
page | number The zero-relative start index of the entire list of merchant invoices to return in the response. So, a combination of | ||||||||||||||||||||||||||
page_size | number The page size for the search results. | ||||||||||||||||||||||||||
total_count_required | boolean Default: false Indicates whether the response shows the total count. | ||||||||||||||||||||||||||
archived | boolean Indicates whether to list merchant-archived invoices in the response. If |
{- "email": "string",
- "recipient_first_name": "string",
- "recipient_last_name": "string",
- "recipient_business_name": "string",
- "number": "string",
- "status": "DRAFT",
- "lower_total_amount": "string",
- "upper_total_amount": "string",
- "start_invoice_date": "2019-08-24",
- "end_invoice_date": "2019-08-24",
- "start_due_date": "2019-08-24",
- "end_due_date": "2019-08-24",
- "start_payment_date": "2019-08-24",
- "end_payment_date": "2019-08-24",
- "start_creation_date": "2019-08-24",
- "end_creation_date": "2019-08-24",
- "page": 0,
- "page_size": 0,
- "total_count_required": false,
- "archived": true
}
The shipping cost, as a percent or amount value.
object (Currency) The currency and amount for a financial transaction, such as a balance or payment due. | |
object (Tax) The tax information. |
{- "amount": {
- "currency": "string",
- "value": "string"
}, - "tax": {
- "name": "string",
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}
}
The shipping information for the invoice recipient.
first_name | string <= 256 characters The first name of the recipient at the shipping address. |
last_name | string <= 256 characters The last name of the recipient at the shipping address. |
business_name | string <= 480 characters The business name of the recipient at the shipping address. |
object (Address) The address, which is either a billing address or shipping address in a payment. |
{- "first_name": "string",
- "last_name": "string",
- "business_name": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "country_code": "string",
- "postal_code": "string",
- "state": "string",
- "phone": "string"
}
}
The summary of invoice data.
status | string The invoice status. The status indicates the phase of the invoice in its lifecycle:
| ||||||||||||||||||||||||||
count | integer The total count of invoices. | ||||||||||||||||||||||||||
Array of objects (amount_summary) An array of amounts, grouped by the currency code of the invoice. |
{- "status": "DRAFT",
- "count": 0,
- "amount_summary": [
- {
- "total_amount": {
- "currency": "string",
- "value": "string"
}, - "paid_amount": {
- "paypal": {
- "currency": "string",
- "value": "string"
}, - "other": {
- "currency": "string",
- "value": "string"
}
}, - "refunded_amount": {
- "paypal": {
- "currency": "string",
- "value": "string"
}, - "other": {
- "currency": "string",
- "value": "string"
}
}
}
]
}
The tax information.
name required | string <= 100 characters The tax name. |
percent required | number >= 0 The tax rate. Value is from |
object (Currency) The currency and amount for a financial transaction, such as a balance or payment due. |
{- "name": "string",
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}
The invoicing template.
template_id | string The ID of the template. |
name | string The template name. Note: The template name must be unique. |
default | boolean Indicates whether this template is the default merchant template. A merchant can have one default template. |
Array of objects (template_settings) An array of template settings that describe which fields to show or hide when creating an invoice. | |
unit_of_measure | string The unit of measure for the template. |
custom | boolean Indicates whether this template is a merchant-created custom template. The system generates non-custom templates. |
Array of objects (Link Description) An array of request-related HATEOAS links. | |
object (template_data) The template data. |
{- "template_id": "string",
- "name": "string",
- "default": true,
- "settings": [
- {
- "field_name": "items.quantity",
- "display_preference": {
- "hidden": false
}
}
], - "unit_of_measure": "HOURS",
- "custom": true,
- "links": [
- {
- "href": "string",
- "rel": "string",
- "method": "GET"
}
], - "template_data": {
- "billing_info": [
- {
- "email": "user@example.com",
- "first_name": "string",
- "last_name": "string",
- "business_name": "string",
- "language": "da_DK",
- "additional_info": "string",
- "phone": {
- "country_code": "str",
- "national_number": "string"
}, - "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "country_code": "string",
- "postal_code": "string",
- "state": "string",
- "phone": "string"
}
}
], - "cc_info": [
- "string"
], - "items": [
- {
- "name": "string",
- "description": "string",
- "quantity": 0,
- "date": "2019-08-24",
- "unit_of_measure": "QUANTITY",
- "unit_price": {
- "currency": "string",
- "value": "string"
}, - "tax": {
- "name": "string",
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}, - "discount": {
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}
}
], - "reference": "string",
- "allow_partial_payment": false,
- "tax_calculated_after_discount": false,
- "tax_inclusive": false,
- "terms": "string",
- "note": "string",
- "merchant_memo": "string",
- "merchant_info": {
- "email": "user@example.com",
- "business_name": "string",
- "first_name": "string",
- "last_name": "string",
- "tax_id": "string",
- "additional_info": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "country_code": "string",
- "postal_code": "string",
- "state": "string",
- "phone": "string"
}, - "phone": {
- "country_code": "str",
- "national_number": "string"
}, - "fax": {
- "country_code": "str",
- "national_number": "string"
}
}, - "shipping_info": {
- "first_name": "string",
- "last_name": "string",
- "business_name": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "country_code": "string",
- "postal_code": "string",
- "state": "string",
- "phone": "string"
}
}, - "payment_term": {
- "term_type": "DUE_ON_RECEIPT",
- "due_date": "2019-08-24"
}, - "discount": {
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}, - "shipping_cost": {
- "amount": {
- "currency": "string",
- "value": "string"
}, - "tax": {
- "name": "string",
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}
}, - "custom": {
- "label": "string",
- "amount": {
- "currency": "string",
- "value": "string"
}
}, - "minimum_amount_due": {
- "currency": "string",
- "value": "string"
}, - "total_amount": {
- "currency": "string",
- "value": "string"
}
}
}
The template data.
Array of objects (billing_info) = 1 items The billing information of the invoice recipient. Note: This value is an array with only one element. | |
cc_info | Array of strings <email> (Email) An array of email addresses to which PayPal sends a copy of the invoice. |
Array of objects (invoice_item) <= 100 items An array of invoice line item information. The maximum items for an invoice is | |
reference | string <= 60 characters The reference data, such as a PO number. |
allow_partial_payment | boolean Default: false Indicates whether the invoice allows a partial payment. If Note: This feature is not available for merchants in |
tax_calculated_after_discount | boolean Default: false Indicates whether the tax is calculated before or after a discount. If |
tax_inclusive | boolean Default: false Indicates whether the unit price includes tax. |
terms | string <= 4000 characters The general terms of the invoice. |
note | string <= 4000 characters A note to the invoice recipient. This note also appears on the invoice notification email. |
merchant_memo | string <= 150 characters A private bookkeeping memo for the merchant. |
logo_url | string <uri> <= 4000 characters The full URL to an external logo image. The logo image must not be larger than 250 pixels wide by 90 pixels high. |
Array of objects (file_attachment) An array of PayPal file IDs for the files that are attached to an invoice. The maximum number of files is | |
required | object (merchant_info) The merchant business information that appears on the invoice. |
object (shipping_info) The shipping information for the invoice recipient. | |
object (payment_term) The payment term of the invoice. If you specify | |
object (Discount) The discount as a percent or an amount value. For example, to specify 10%, enter | |
object (shipping_cost) The shipping cost, as a percent or amount value. | |
object (custom_amount) The custom amount to apply to an invoice. If you include a label, you must include a custom amount. | |
object (Currency) The currency and amount for a financial transaction, such as a balance or payment due. | |
object (Currency) The currency and amount for a financial transaction, such as a balance or payment due. |
{- "billing_info": [
- {
- "email": "user@example.com",
- "first_name": "string",
- "last_name": "string",
- "business_name": "string",
- "language": "da_DK",
- "additional_info": "string",
- "phone": {
- "country_code": "str",
- "national_number": "string"
}, - "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "country_code": "string",
- "postal_code": "string",
- "state": "string",
- "phone": "string"
}
}
], - "cc_info": [
- "string"
], - "items": [
- {
- "name": "string",
- "description": "string",
- "quantity": 0,
- "date": "2019-08-24",
- "unit_of_measure": "QUANTITY",
- "unit_price": {
- "currency": "string",
- "value": "string"
}, - "tax": {
- "name": "string",
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}, - "discount": {
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}
}
], - "reference": "string",
- "allow_partial_payment": false,
- "tax_calculated_after_discount": false,
- "tax_inclusive": false,
- "terms": "string",
- "note": "string",
- "merchant_memo": "string",
- "merchant_info": {
- "email": "user@example.com",
- "business_name": "string",
- "first_name": "string",
- "last_name": "string",
- "tax_id": "string",
- "additional_info": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "country_code": "string",
- "postal_code": "string",
- "state": "string",
- "phone": "string"
}, - "phone": {
- "country_code": "str",
- "national_number": "string"
}, - "fax": {
- "country_code": "str",
- "national_number": "string"
}
}, - "shipping_info": {
- "first_name": "string",
- "last_name": "string",
- "business_name": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "country_code": "string",
- "postal_code": "string",
- "state": "string",
- "phone": "string"
}
}, - "payment_term": {
- "term_type": "DUE_ON_RECEIPT",
- "due_date": "2019-08-24"
}, - "discount": {
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}, - "shipping_cost": {
- "amount": {
- "currency": "string",
- "value": "string"
}, - "tax": {
- "name": "string",
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}
}, - "custom": {
- "label": "string",
- "amount": {
- "currency": "string",
- "value": "string"
}
}, - "minimum_amount_due": {
- "currency": "string",
- "value": "string"
}, - "total_amount": {
- "currency": "string",
- "value": "string"
}
}
The template settings.
field_name | string The field name in |
object (template_settings_metadata) The template settings metadata. |
{- "field_name": "items.quantity",
- "display_preference": {
- "hidden": false
}
}
The template settings metadata.
hidden | boolean Default: false Indicates whether to show or hide this field. |
{- "hidden": false
}
A merchant-created template with associated details. The associated details include the emails, addresses, and phone numbers from the user's PayPal profile.
Array of objects (Address) An array of postal addresses in the user's PayPal profile. | |
emails | Array of strings An array of email addresses in the user's PayPal profile. |
Array of objects (Phone) An array of phone numbers in the user's PayPal profile. | |
Array of objects (Template) The details for each template. If | |
Array of objects (Link Description) An array of request-related HATEOAS links. |
{- "addresses": [
- {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "country_code": "string",
- "postal_code": "string",
- "state": "string",
- "phone": "string"
}
], - "emails": [
- "string"
], - "phones": [
- {
- "country_code": "str",
- "national_number": "string"
}
], - "templates": [
- {
- "template_id": "string",
- "name": "string",
- "default": true,
- "settings": [
- {
- "field_name": "items.quantity",
- "display_preference": {
- "hidden": false
}
}
], - "unit_of_measure": "HOURS",
- "custom": true,
- "links": [
- {
- "href": "string",
- "rel": "string",
- "method": "GET"
}
], - "template_data": {
- "billing_info": [
- {
- "email": "user@example.com",
- "first_name": "string",
- "last_name": "string",
- "business_name": "string",
- "language": "da_DK",
- "additional_info": "string",
- "phone": {
- "country_code": "str",
- "national_number": "string"
}, - "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "country_code": "string",
- "postal_code": "string",
- "state": "string",
- "phone": "string"
}
}
], - "cc_info": [
- "string"
], - "items": [
- {
- "name": "string",
- "description": "string",
- "quantity": 0,
- "date": "2019-08-24",
- "unit_of_measure": "QUANTITY",
- "unit_price": {
- "currency": "string",
- "value": "string"
}, - "tax": {
- "name": "string",
- "percent": 0,
- "amount": {
- "currency": null,
- "value": null
}
}, - "discount": {
- "percent": 0,
- "amount": {
- "currency": null,
- "value": null
}
}
}
], - "reference": "string",
- "allow_partial_payment": false,
- "tax_calculated_after_discount": false,
- "tax_inclusive": false,
- "terms": "string",
- "note": "string",
- "merchant_memo": "string",
- "merchant_info": {
- "email": "user@example.com",
- "business_name": "string",
- "first_name": "string",
- "last_name": "string",
- "tax_id": "string",
- "additional_info": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "country_code": "string",
- "postal_code": "string",
- "state": "string",
- "phone": "string"
}, - "phone": {
- "country_code": "str",
- "national_number": "string"
}, - "fax": {
- "country_code": "str",
- "national_number": "string"
}
}, - "shipping_info": {
- "first_name": "string",
- "last_name": "string",
- "business_name": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "country_code": "string",
- "postal_code": "string",
- "state": "string",
- "phone": "string"
}
}, - "payment_term": {
- "term_type": "DUE_ON_RECEIPT",
- "due_date": "2019-08-24"
}, - "discount": {
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}, - "shipping_cost": {
- "amount": {
- "currency": "string",
- "value": "string"
}, - "tax": {
- "name": "string",
- "percent": 0,
- "amount": {
- "currency": "string",
- "value": "string"
}
}
}, - "custom": {
- "label": "string",
- "amount": {
- "currency": "string",
- "value": "string"
}
}, - "minimum_amount_due": {
- "currency": "string",
- "value": "string"
}, - "total_amount": {
- "currency": "string",
- "value": "string"
}
}
}
], - "links": [
- {
- "href": "string",
- "rel": "string",
- "method": "GET"
}
]
}