Use the Transaction Search API to get the history of transactions for a PayPal account. To use the API on behalf of third parties, you must be part of the PayPal partner network. Reach out to your partner manager for the next steps. To enroll in the partner program, see Partner with PayPal. For more information about the API, see the Transaction Search API Integration Guide.
Note: To use the API on behalf of third parties, you must be part of the PayPal partner network. Reach out to your partner manager for the next steps. To enroll in the partner program, see Partner with PayPal.
Lists transactions. Specify one or more query parameters to filter the transaction that appear in the response.
Notes:
- If you specify one or more optional query parameters, the
ending_balance
response field is empty.- It takes a maximum of three hours for executed transactions to appear in the list transactions call.
- This call lists transaction for the previous three years.
transaction_id | string [ 17 .. 19 ] characters Filters the transactions in the response by a PayPal transaction ID. A valid transaction ID is 17 characters long, except for an order ID, which is 19 characters long. Note: A transaction ID is not unique in the reporting system. The response can list two transactions with the same ID. One transaction can be balance affecting while the other is non-balance affecting. | ||||||||||
transaction_type | string Filters the transactions in the response by a PayPal transaction event code. See Transaction event codes. | ||||||||||
transaction_status | string Filters the transactions in the response by a PayPal transaction status code. Value is:
| ||||||||||
transaction_amount | string Filters the transactions in the response by a gross transaction amount range. Specify the range as Note:The values must be URL encoded. | ||||||||||
transaction_currency | string Filters the transactions in the response by a three-character ISO-4217 currency code for the PayPal transaction currency. | ||||||||||
start_date required | string [ 20 .. 64 ] characters ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|... Filters the transactions in the response by a start date and time, in Internet date and time format. Seconds are required. Fractional seconds are optional. | ||||||||||
end_date required | string [ 20 .. 64 ] characters ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|... Filters the transactions in the response by an end date and time, in Internet date and time format. Seconds are required. Fractional seconds are optional. The maximum supported range is 31 days. | ||||||||||
payment_instrument_type | string Filters the transactions in the response by a payment instrument type. Value is either:
| ||||||||||
store_id | string Filters the transactions in the response by a store ID. | ||||||||||
terminal_id | string Filters the transactions in the response by a terminal ID. | ||||||||||
fields | string Default: "transaction_info" Indicates which fields appear in the response. Value is a single field or a comma-separated list of fields. The
| ||||||||||
balance_affecting_records_only | string Default: "Y" Indicates whether the response includes only balance-impacting transactions or all transactions. Value is either:
| ||||||||||
page_size | integer [ 1 .. 500 ] Default: 100 The number of items to return in the response. So, the combination of | ||||||||||
page | integer [ 1 .. 2147483647 ] Default: 1 The zero-relative start index of the entire list of items that are returned in the response. So, the combination of |
A successful request returns the HTTP 200 OK
status code and a JSON response body that lists transactions .
curl -v -X GET https://api-m.sandbox.paypal.com/v1/reporting/transactions?start_date=2014-07-12T00:00:00-0700&end_date=2014-07-12T23:59:59-0700&transaction_id=9GS80322P28628837&fields=all \ -H 'Authorization: Bearer {{ACCESS_TOKEN}}' \ -H 'Content-Type: application/json'
{- "transaction_details": [
- {
- "transaction_info": {
- "paypal_account_id": "F4YHVT9RFTZSU",
- "transaction_id": "9GS80322P28628837",
- "transaction_event_code": "T0004",
- "transaction_initiation_date": "2014-07-12T02:05:19+0000",
- "transaction_updated_date": "2014-07-12T02:05:19+0000",
- "transaction_amount": {
- "currency_code": "USD",
- "value": "23.05"
}, - "fee_amount": {
- "currency_code": "USD",
- "value": "-0.97"
}, - "transaction_status": "S",
- "protection_eligibility": "01"
}, - "payer_info": {
- "account_id": "F4YHVT9RFTZSU",
- "email_address": "payer@example.com",
- "address_status": "Y",
- "payer_status": "Y",
- "payer_name": {
- "given_name": "Matt",
- "surname": "Cole",
- "alternate_full_name": "Amalgamated Steel & Oatmeal of Sudan"
}, - "country_code": "US"
}, - "shipping_info": {
- "name": "Matt Cole",
- "method": "0",
- "address": {
- "line1": "7700 Eastport Pkwy",
- "city": "La Vista",
- "country_code": "US",
- "postal_code": "68128"
}
}, - "cart_info": {
- "item_details": [
- {
- "item_code": "110208696345",
- "item_name": "Auction with details",
- "item_quantity": "3",
- "item_unit_price": {
- "currency_code": "USD",
- "value": "5.00"
}, - "item_amount": {
- "currency_code": "USD",
- "value": "15.00"
}, - "tax_amounts": [
- {
- "tax_amount": {
- "currency_code": "USD",
- "value": "1.05"
}
}
], - "basic_shipping_amount": {
- "currency_code": "USD",
- "value": "7.00"
}, - "total_item_amount": {
- "currency_code": "USD",
- "value": "23.05"
}
}
]
}, - "store_info": { },
- "auction_info": {
- "auction_site": "eBay",
- "auction_buyer_id": "testuser_mikaey0",
- "auction_closing_date": "1970-01-01T00:00:00+0000"
}, - "incentive_info": { }
}
], - "account_number": "XZXSPECPDZHZU",
- "last_refreshed_datetime": "2017-01-02T06:59:59+0000",
- "page": 1,
- "total_items": 1,
- "total_pages": 1,
- "links": [
]
}
List all balances. Specify date time to list balances for that time that appear in the response.
Notes:
- It takes a maximum of three hours for balances to appear in the list balances call.
- This call lists balances upto the previous three years.
as_of_time | string [ 20 .. 64 ] characters ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|... List balances in the response at the date time provided, will return the last refreshed balance in the system when not provided. |
currency_code | string <ppaas_common_currency_code_v2> = 3 characters Filters the transactions in the response by a three-character ISO-4217 currency code for the PayPal transaction currency. |
A successful request returns the HTTP 200 OK
status code and a JSON response body that lists balances .
curl -v -X GET https://api-m.sandbox.paypal.com/v1/reporting/balances?currency_code=ALL&as_of_time=2021-02-22T00:00:00-0700&include_crypto_currencies=true \ -H 'Authorization: Bearer {{ACCESS_TOKEN}}' \ -H 'Content-Type: application/json'
{- "crypto_balances": [
- {
- "asset_symbol": "BTC",
- "quantity": "0.00512814"
}
], - "balances": [
- {
- "currency": "USD",
- "primary": true,
- "total_balance": {
- "currency_code": "USD",
- "value": "300.00"
}, - "available_balance": {
- "currency_code": "USD",
- "value": "100.00"
}, - "withheld_balance": {
- "currency_code": "USD",
- "value": "200.00"
}
}
], - "account_id": "DV77JV8VP82XE",
- "as_of_time": "2021-02-22T11:35:58Z",
- "last_refresh_time": "2021-03-03T16:23:30Z"
}
Message:
Internal service error.
Description: Something unexpected occurred on the server.
Message:
Invalid request - see details.
Description: The request is not well-formed or is syntactically incorrect or violates the schema.
Message:
The resource was not found.
Description: The requested resource could not be found but may be available in the future. Subsequent requests by the client are permissible.
Message:
Result set size is greater than the maximum limit. Change the filter criteria and try again.
Description: The request returned more items than the maximum limit. To reduce the result set, include additional query parameters.
The PayPal payer ID, which is a masked version of the PayPal account number intended for use with third parties. The account number is reversibly encrypted and a proprietary variant of Base32 is used to encode the result.
The PayPal payer ID, which is a masked version of the PayPal account number intended for use with third parties. The account number is reversibly encrypted and a proprietary variant of Base32 is used to encode the result.
"stringstrings"
The auction information.
auction_site | string [ 1 .. 200 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ The name of the auction site. |
auction_item_site | string [ 1 .. 4000 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ The auction site URL. |
auction_buyer_id | string [ 1 .. 500 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ The ID of the buyer who makes the purchase in the auction. This ID might be different from the payer ID provided for the payment. |
auction_closing_date | string <ppaas_date_time_v3> (date_time) [ 20 .. 64 ] characters ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|... The date and time when the auction closes, in Internet date and time format. |
{- "auction_site": "string",
- "auction_item_site": "string",
- "auction_buyer_id": "string",
- "auction_closing_date": "stringstringstringst"
}
The Balance information.
primary | boolean Optional field representing if the currency is primary currency or not. |
currency required | string <ppaas_common_currency_code_v2> (currency_code) = 3 characters Currency Code of the balances listed. |
required | object (Money) The total amount in PayPal account. It is the sum of all the other balances. |
object (Money) The amount of cash in an Account which is at the customer's disposal. This amount is captured at settlement cutoff time in the user's time zone as defined for the user. | |
object (Money) Balance withheld in the account. The portion of funds that PayPal holds for the customer that is not currently at the customer's disposal. |
{- "primary": true,
- "currency": "str",
- "total_balance": {
- "currency_code": "str",
- "value": "string"
}, - "available_balance": {
- "currency_code": "str",
- "value": "string"
}, - "withheld_balance": {
- "currency_code": "str",
- "value": "string"
}
}
The balances response information.
Array of objects (Balance Information) [ 0 .. 200 ] items An array of balance detail objects. | |
account_id | string <ppaas_payer_id_v3> (account_id) = 13 characters ^[2-9A-HJ-NP-Z]{13}$ The PayPal payer ID, which is a masked version of the PayPal account number intended for use with third parties. The account number is reversibly encrypted and a proprietary variant of Base32 is used to encode the result. |
as_of_time | string <ppaas_date_time_v3> (date_time) [ 20 .. 64 ] characters ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|... The requested date and time or the last date and time when the balances can be served, in Internet date and time format. |
last_refresh_time | string <ppaas_date_time_v3> (date_time) [ 20 .. 64 ] characters ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|... The date and time when the balances was last refreshed, in Internet date and time format. |
{- "balances": [
- {
- "primary": true,
- "currency": "str",
- "total_balance": {
- "currency_code": "str",
- "value": "string"
}, - "available_balance": {
- "currency_code": "str",
- "value": "string"
}, - "withheld_balance": {
- "currency_code": "str",
- "value": "string"
}
}
], - "account_id": "stringstrings",
- "as_of_time": "stringstringstringst",
- "last_refresh_time": "stringstringstringst"
}
The cart information.
Array of objects (Item Details) [ 1 .. 32767 ] items An array of item details. | |
tax_inclusive | boolean Default: false Indicates whether the item amount or the shipping amount already includes tax. |
paypal_invoice_id | string [ 1 .. 127 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ The ID of the invoice. Appears for only PayPal-generated invoices. |
{- "item_details": [
- {
- "item_code": "string",
- "item_name": "string",
- "item_description": "string",
- "item_options": "string",
- "item_quantity": "string",
- "tax_amounts": [
- {
- "tax_amount": {
- "currency_code": "str",
- "value": "string"
}
}
], - "invoice_number": "string",
- "checkout_options": [
- {
- "checkout_option_name": "string",
- "checkout_option_value": "string"
}
], - "item_unit_price": {
- "currency_code": "str",
- "value": "string"
}, - "item_amount": {
- "currency_code": "str",
- "value": "string"
}, - "discount_amount": {
- "currency_code": "str",
- "value": "string"
}, - "adjustment_amount": {
- "currency_code": "str",
- "value": "string"
}, - "gift_wrap_amount": {
- "currency_code": "str",
- "value": "string"
}, - "tax_percentage": "string",
- "basic_shipping_amount": {
- "currency_code": "str",
- "value": "string"
}, - "extra_shipping_amount": {
- "currency_code": "str",
- "value": "string"
}, - "handling_amount": {
- "currency_code": "str",
- "value": "string"
}, - "insurance_amount": {
- "currency_code": "str",
- "value": "string"
}, - "total_item_amount": {
- "currency_code": "str",
- "value": "string"
}
}
], - "tax_inclusive": false,
- "paypal_invoice_id": "string"
}
A checkout option as a name-and-value pair.
checkout_option_name | string [ 1 .. 200 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ The checkout option name, such as |
checkout_option_value | string [ 1 .. 200 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ The checkout option value. For example, the checkout option |
{- "checkout_option_name": "string",
- "checkout_option_value": "string"
}
The two-character ISO 3166-1 code that identifies the country or region.
Note: The country code for Great Britain isGB
and notUK
as used in the top-level domain names for that country. Use theC2
country code for China worldwide for comparable uncontrolled price (CUP) method, bank card, and cross-border transactions.
The two-character ISO 3166-1 code that identifies the country or region.
Note: The country code for Great Britain isGB
and notUK
as used in the top-level domain names for that country. Use theC2
country code for China worldwide for comparable uncontrolled price (CUP) method, bank card, and cross-border transactions.
"st"
The three-character ISO-4217 currency code that identifies the currency.
The three-character ISO-4217 currency code that identifies the currency.
"str"
The three-character ISO-4217 currency code that identifies the currency.
The three-character ISO-4217 currency code that identifies the currency.
"str"
The date and time, in Internet date and time format. Seconds are required while fractional seconds are optional.
Note: The regular expression provides guidance but does not reject all invalid dates.
The date and time, in Internet date and time format. Seconds are required while fractional seconds are optional.
Note: The regular expression provides guidance but does not reject all invalid dates.
"stringstringstringst"
The internationalized email address.
Note: Up to 64 characters are allowed before and 255 characters are allowed after the@
sign. However, the generally accepted maximum length for an email address is 254 characters. The pattern verifies that an unquoted@
sign exists.
The internationalized email address.
Note: Up to 64 characters are allowed before and 255 characters are allowed after the@
sign. However, the generally accepted maximum length for an email address is 254 characters. The pattern verifies that an unquoted@
sign exists.
"string"
The error details.
name required | string The human-readable, unique name of the error. |
message required | string The message that describes the error. |
debug_id required | string The PayPal internal ID. Used for correlation purposes. |
information_link | string The information link, or URI, that shows detailed information about this error for the developer. |
Array of objects (Error Details) An array of additional details about the error. | |
Array of objects (Link Description) An array of request-related HATEOAS links. | |
total_items | integer [ 0 .. 2147483647 ] The total number of transactions. Valid only for |
maximum_items | integer [ 0 .. 2147483647 ] The maximum number of transactions. Valid only for |
{- "name": "string",
- "message": "string",
- "debug_id": "string",
- "information_link": "string",
- "details": [
- {
- "field": "string",
- "value": "string",
- "location": "body",
- "issue": "string",
- "description": "string"
}
], - "links": [
- {
- "href": "string",
- "rel": "string",
- "method": "GET"
}
], - "total_items": 2147483647,
- "maximum_items": 2147483647
}
The error details.
name required | string The human-readable, unique name of the error. |
message required | string The message that describes the error. |
debug_id required | string The PayPal internal ID. Used for correlation purposes. |
information_link | string The information link, or URI, that shows detailed information about this error for the developer. |
Array of objects (Error Details) An array of additional details about the error. | |
Array of objects (Link Description) An array of request-related HATEOAS links. |
{- "name": "string",
- "message": "string",
- "debug_id": "string",
- "information_link": "string",
- "details": [
- {
- "field": "string",
- "value": "string",
- "location": "body",
- "issue": "string",
- "description": "string"
}
], - "links": [
- {
- "href": "string",
- "rel": "string",
- "method": "GET"
}
]
}
The error details.
name required | string The human-readable, unique name of the error. |
message required | string The message that describes the error. |
debug_id required | string The PayPal internal ID. Used for correlation purposes. |
information_link | string The information link, or URI, that shows detailed information about this error for the developer. |
Array of objects (Error Details) An array of additional details about the error. | |
Array of objects (Link Description) An array of request-related HATEOAS links. |
{- "name": "string",
- "message": "string",
- "debug_id": "string",
- "information_link": "string",
- "details": [
- {
- "field": "string",
- "value": "string",
- "location": "body",
- "issue": "string",
- "description": "string"
}
], - "links": [
- {
- "href": "string",
- "rel": "string",
- "method": "GET"
}
]
}
The error details. Required for client-side 4XX
errors.
field | string The field that caused the error. If this field is in the body, set this value to the field's JSON pointer value. Required for client-side errors. |
value | string The value of the field that caused the error. |
location | string Default: "body" The location of the field that caused the error. Value is |
issue required | string The unique, fine-grained application-level error code. |
description | string The human-readable description for an issue. The description can change over the lifetime of an API, so clients must not depend on this value. |
{- "field": "string",
- "value": "string",
- "location": "body",
- "issue": "string",
- "description": "string"
}
The error details. Required for client-side 4XX
errors.
field | string The field that caused the error. If this field is in the body, set this value to the field's JSON pointer value. Required for client-side errors. |
value | string The value of the field that caused the error. |
location | string Default: "body" The location of the field that caused the error. Value is |
issue required | string The unique, fine-grained application-level error code. |
description | string The human-readable description for an issue. The description can change over the lifetime of an API, so clients must not depend on this value. |
{- "field": "string",
- "value": "string",
- "location": "body",
- "issue": "string",
- "description": "string"
}
The incentive details.
incentive_type | string [ 1 .. 500 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ The type of incentive, such as a special offer or coupon. |
incentive_code | string [ 1 .. 200 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ The code that identifies an incentive, such as a coupon. |
incentive_program_code | string [ 1 .. 100 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ The incentive program code that identifies a merchant loyalty or incentive program. |
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. |
{- "incentive_type": "string",
- "incentive_code": "string",
- "incentive_program_code": "string",
- "incentive_amount": {
- "currency_code": "str",
- "value": "string"
}
}
The incentive details.
Array of objects (Incentive Details) [ 1 .. 32767 ] items An array of incentive details. |
{- "incentive_details": [
- {
- "incentive_type": "string",
- "incentive_code": "string",
- "incentive_program_code": "string",
- "incentive_amount": {
- "currency_code": "str",
- "value": "string"
}
}
]
}
The item details.
item_code | string [ 1 .. 1000 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ An item code that identifies a merchant's goods or service. |
item_name | string [ 1 .. 200 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ The item name. |
item_description | string [ 1 .. 2000 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ The item description. |
item_options | string [ 1 .. 4000 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ The item options. Describes option choices on the purchase of the item in some detail. |
item_quantity | string [ 1 .. 4000 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ The number of purchased units of goods or a service. |
Array of objects (Tax Amount) [ 1 .. 32767 ] items An array of tax amounts levied by a government on the purchase of goods or services. | |
invoice_number | string [ 1 .. 200 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ The invoice number. An alphanumeric string that identifies a billing for a merchant. |
Array of objects (Checkout Option) [ 1 .. 32767 ] items An array of checkout options. Each option has a name and value. | |
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |
tax_percentage | string <ppaas_common_percentage_v2> (percentage) <= 10 characters ^((-?[0-9]+)|(-?([0-9]+)?[.][0-9]+))$ The percentage, as a fixed-point, signed decimal number. For example, define a 19.99% interest rate as |
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. |
{- "item_code": "string",
- "item_name": "string",
- "item_description": "string",
- "item_options": "string",
- "item_quantity": "string",
- "tax_amounts": [
- {
- "tax_amount": {
- "currency_code": "str",
- "value": "string"
}
}
], - "invoice_number": "string",
- "checkout_options": [
- {
- "checkout_option_name": "string",
- "checkout_option_value": "string"
}
], - "item_unit_price": {
- "currency_code": "str",
- "value": "string"
}, - "item_amount": {
- "currency_code": "str",
- "value": "string"
}, - "discount_amount": {
- "currency_code": "str",
- "value": "string"
}, - "adjustment_amount": {
- "currency_code": "str",
- "value": "string"
}, - "gift_wrap_amount": {
- "currency_code": "str",
- "value": "string"
}, - "tax_percentage": "string",
- "basic_shipping_amount": {
- "currency_code": "str",
- "value": "string"
}, - "extra_shipping_amount": {
- "currency_code": "str",
- "value": "string"
}, - "handling_amount": {
- "currency_code": "str",
- "value": "string"
}, - "insurance_amount": {
- "currency_code": "str",
- "value": "string"
}, - "total_item_amount": {
- "currency_code": "str",
- "value": "string"
}
}
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 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 currency and amount for a financial transaction, such as a balance or payment due.
currency_code required | string <ppaas_common_currency_code_v2> (currency_code) = 3 characters The three-character ISO-4217 currency code that identifies the currency. |
value required | string <= 32 characters ^((-?[0-9]+)|(-?([0-9]+)?[.][0-9]+))$ The value, which might be:
|
{- "currency_code": "str",
- "value": "string"
}
The currency and amount for a financial transaction, such as a balance or payment due.
currency_code required | string <ppaas_common_currency_code_v2> (currency_code) = 3 characters The three-character ISO-4217 currency code that identifies the currency. |
value required | string <= 32 characters ^((-?[0-9]+)|(-?([0-9]+)?[.][0-9]+))$ The value, which might be:
|
{- "currency_code": "str",
- "value": "string"
}
The name of the party.
prefix | string <= 140 characters The prefix, or title, to the party's name. |
given_name | string <= 140 characters When the party is a person, the party's given, or first, name. |
surname | string <= 140 characters When the party is a person, the party's surname or family name. Also known as the last name. Required when the party is a person. Use also to store multiple surnames including the matronymic, or mother's, surname. |
middle_name | string <= 140 characters When the party is a person, the party's middle name. Use also to store multiple middle names including the patronymic, or father's, middle name. |
suffix | string <= 140 characters The suffix for the party's name. |
alternate_full_name | string <= 300 characters DEPRECATED. The party's alternate name. Can be a business name, nickname, or any other name that cannot be split into first, last name. Required when the party is a business. |
full_name | string <= 300 characters When the party is a person, the party's full name. |
{- "prefix": "string",
- "given_name": "string",
- "surname": "string",
- "middle_name": "string",
- "suffix": "string",
- "alternate_full_name": "string",
- "full_name": "string"
}
The payer information.
account_id | string [ 1 .. 13 ] characters ^[a-zA-Z0-9]*$ The PayPal` customer account ID. |
address_status | string = 1 characters ^[N|Y]$ The address status of the payer. Value is either:
|
payer_status | string = 1 characters ^[N|Y]$ The status of the payer. Value is |
email_address | string <ppaas_common_email_address_v2> (email_address) [ 3 .. 254 ] characters ^.+@[^"\-].+$ The email address of the payer. |
object (Phone) The primary phone number of the payer. | |
object (Name) The payer name. | |
country_code | string <ppaas_common_country_code_v2> (country_code) = 2 characters ^([A-Z]{2}|C2)$ The two-character ISO 3166-1 code that identifies the country or region of the payer. Note: The country code for Great Britain is |
object (Simple Postal Address (Coarse-Grained)) The payer address. |
{- "account_id": "string",
- "address_status": "s",
- "payer_status": "s",
- "email_address": "string",
- "phone_number": {
- "country_code": "str",
- "national_number": "string",
- "extension_number": "string"
}, - "payer_name": {
- "prefix": "string",
- "given_name": "string",
- "surname": "string",
- "middle_name": "string",
- "suffix": "string",
- "alternate_full_name": "string",
- "full_name": "string"
}, - "country_code": "st",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "state": "string",
- "country_code": "st",
- "postal_code": "string"
}
}
The percentage, as a fixed-point, signed decimal number. For example, define a 19.99% interest rate as 19.99
.
The percentage, as a fixed-point, signed decimal number. For example, define a 19.99% interest rate as 19.99
.
"string"
The phone number, in its canonical international E.164 numbering plan format.
country_code required | string [ 1 .. 3 ] characters ^[0-9]{1,3}?$ The country calling code (CC), in its canonical international E.164 numbering plan format. The combined length of the CC and the national number must not be greater than 15 digits. The national number consists of a national destination code (NDC) and subscriber number (SN). |
national_number required | string [ 1 .. 14 ] characters ^[0-9]{1,14}?$ The national number, in its canonical international E.164 numbering plan format. The combined length of the country calling code (CC) and the national number must not be greater than 15 digits. The national number consists of a national destination code (NDC) and subscriber number (SN). |
extension_number | string [ 1 .. 15 ] characters ^[0-9]{1,15}?$ The extension number. |
{- "country_code": "str",
- "national_number": "string",
- "extension_number": "string"
}
The search response information.
Array of objects (Transaction Details) [ 1 .. 2147483647 ] items An array of transaction detail objects. | |
account_number | string [ 1 .. 255 ] characters ^[a-zA-Z0-9]*$ The merchant account number. |
page | integer [ 0 .. 2147483647 ] A zero-relative index of transactions. |
total_items | integer [ 0 .. 2147483647 ] The total number of transactions as an integer beginning with the specified |
total_pages | integer [ 0 .. 2147483647 ] The total number of pages, as an |
Array of objects (Link Description) [ 1 .. 32767 ] items An array of request-related HATEOAS links. | |
start_date | string <ppaas_date_time_v3> (date_time) [ 20 .. 64 ] characters ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|... The start date and time, in Internet date and time format. |
end_date | string <ppaas_date_time_v3> (date_time) [ 20 .. 64 ] characters ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|... The end date and time or the last date when the data can be served, in Internet date and time format. |
last_refreshed_datetime | string <ppaas_date_time_v3> (date_time) [ 20 .. 64 ] characters ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|... The date and time when the data was last refreshed, in Internet date and time format. |
{- "transaction_details": [
- {
- "transaction_info": {
- "paypal_account_id": "string",
- "transaction_id": "string",
- "paypal_reference_id": "string",
- "paypal_reference_id_type": "ODR",
- "transaction_event_code": "strin",
- "transaction_status": "s",
- "transaction_subject": "string",
- "transaction_note": "string",
- "payment_tracking_id": "string",
- "bank_reference_id": "string",
- "invoice_id": "string",
- "custom_field": "string",
- "protection_eligibility": "st",
- "credit_term": "string",
- "payment_method_type": "string",
- "instrument_type": "string",
- "instrument_sub_type": "string",
- "transaction_initiation_date": "stringstringstringst",
- "transaction_updated_date": "stringstringstringst",
- "transaction_amount": {
- "currency_code": "str",
- "value": "string"
}, - "fee_amount": {
- "currency_code": "str",
- "value": "string"
}, - "discount_amount": {
- "currency_code": "str",
- "value": "string"
}, - "insurance_amount": {
- "currency_code": "str",
- "value": "string"
}, - "sales_tax_amount": {
- "currency_code": "str",
- "value": "string"
}, - "shipping_amount": {
- "currency_code": "str",
- "value": "string"
}, - "shipping_discount_amount": {
- "currency_code": "str",
- "value": "string"
}, - "shipping_tax_amount": {
- "currency_code": "str",
- "value": "string"
}, - "other_amount": {
- "currency_code": "str",
- "value": "string"
}, - "tip_amount": {
- "currency_code": "str",
- "value": "string"
}, - "ending_balance": {
- "currency_code": "str",
- "value": "string"
}, - "available_balance": {
- "currency_code": "str",
- "value": "string"
}, - "credit_transactional_fee": {
- "currency_code": "str",
- "value": "string"
}, - "credit_promotional_fee": {
- "currency_code": "str",
- "value": "string"
}, - "annual_percentage_rate": "string"
}, - "payer_info": {
- "account_id": "string",
- "address_status": "s",
- "payer_status": "s",
- "email_address": "string",
- "phone_number": {
- "country_code": "str",
- "national_number": "string",
- "extension_number": "string"
}, - "payer_name": {
- "prefix": "string",
- "given_name": "string",
- "surname": "string",
- "middle_name": "string",
- "suffix": "string",
- "alternate_full_name": "string",
- "full_name": "string"
}, - "country_code": "st",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "state": "string",
- "country_code": "st",
- "postal_code": "string"
}
}, - "shipping_info": {
- "name": "string",
- "method": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "state": "string",
- "country_code": "st",
- "postal_code": "string"
}, - "secondary_shipping_address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "state": "string",
- "country_code": "st",
- "postal_code": "string"
}
}, - "cart_info": {
- "item_details": [
- {
- "item_code": "string",
- "item_name": "string",
- "item_description": "string",
- "item_options": "string",
- "item_quantity": "string",
- "tax_amounts": [
- {
- "tax_amount": null
}
], - "invoice_number": "string",
- "checkout_options": [
- {
- "checkout_option_name": null,
- "checkout_option_value": null
}
], - "item_unit_price": {
- "currency_code": "str",
- "value": "string"
}, - "item_amount": {
- "currency_code": "str",
- "value": "string"
}, - "discount_amount": {
- "currency_code": "str",
- "value": "string"
}, - "adjustment_amount": {
- "currency_code": "str",
- "value": "string"
}, - "gift_wrap_amount": {
- "currency_code": "str",
- "value": "string"
}, - "tax_percentage": "string",
- "basic_shipping_amount": {
- "currency_code": "str",
- "value": "string"
}, - "extra_shipping_amount": {
- "currency_code": "str",
- "value": "string"
}, - "handling_amount": {
- "currency_code": "str",
- "value": "string"
}, - "insurance_amount": {
- "currency_code": "str",
- "value": "string"
}, - "total_item_amount": {
- "currency_code": "str",
- "value": "string"
}
}
], - "tax_inclusive": false,
- "paypal_invoice_id": "string"
}, - "store_info": {
- "store_id": "string",
- "terminal_id": "string"
}, - "auction_info": {
- "auction_site": "string",
- "auction_item_site": "string",
- "auction_buyer_id": "string",
- "auction_closing_date": "stringstringstringst"
}, - "incentive_info": {
- "incentive_details": [
- {
- "incentive_type": "string",
- "incentive_code": "string",
- "incentive_program_code": "string",
- "incentive_amount": {
- "currency_code": "str",
- "value": "string"
}
}
]
}
}
], - "account_number": "string",
- "page": 2147483647,
- "total_items": 2147483647,
- "total_pages": 2147483647,
- "links": [
- {
- "href": "string",
- "rel": "string",
- "method": "GET"
}
], - "start_date": "stringstringstringst",
- "end_date": "stringstringstringst",
- "last_refreshed_datetime": "stringstringstringst"
}
The shipping information.
name | string [ 1 .. 500 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ The recipient's name. |
method | string [ 1 .. 500 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ The shipping method that is associated with this order. |
object (Simple Postal Address (Coarse-Grained)) A simple postal address with coarse-grained fields. Do not use for an international address. Use for backward compatibility only. Does not contain phone. | |
object (Simple Postal Address (Coarse-Grained)) A simple postal address with coarse-grained fields. Do not use for an international address. Use for backward compatibility only. Does not contain phone. |
{- "name": "string",
- "method": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "state": "string",
- "country_code": "st",
- "postal_code": "string"
}, - "secondary_shipping_address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "state": "string",
- "country_code": "st",
- "postal_code": "string"
}
}
A simple postal address with coarse-grained fields. Do not use for an international address. Use for backward compatibility only. Does not contain phone.
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. |
state | |
country_code required | string <ppaas_common_country_code_v2> (country_code) = 2 characters ^([A-Z]{2}|C2)$ 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. |
{- "line1": "string",
- "line2": "string",
- "city": "string",
- "state": "string",
- "country_code": "st",
- "postal_code": "string"
}
The store information.
store_id | string [ 1 .. 100 ] characters ^[a-zA-Z0-9]*$ The ID of a store for a merchant in the system of record. |
terminal_id | string [ 1 .. 60 ] characters ^[a-zA-Z0-9]*$ The terminal ID for the checkout stand in a merchant store. |
{- "store_id": "string",
- "terminal_id": "string"
}
The tax levied by a government on the purchase of goods or services.
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. |
{- "tax_amount": {
- "currency_code": "str",
- "value": "string"
}
}
The transaction details.
object (Transaction Information) The transaction information. | |
object (Payer Information) The payer information. | |
object (Shipping Information) The shipping information. | |
object (Cart Information) The cart information. | |
object (Store Information) The store information. | |
object (Auction Information) The auction information. | |
object (Incentive Information) The incentive details. |
{- "transaction_info": {
- "paypal_account_id": "string",
- "transaction_id": "string",
- "paypal_reference_id": "string",
- "paypal_reference_id_type": "ODR",
- "transaction_event_code": "strin",
- "transaction_status": "s",
- "transaction_subject": "string",
- "transaction_note": "string",
- "payment_tracking_id": "string",
- "bank_reference_id": "string",
- "invoice_id": "string",
- "custom_field": "string",
- "protection_eligibility": "st",
- "credit_term": "string",
- "payment_method_type": "string",
- "instrument_type": "string",
- "instrument_sub_type": "string",
- "transaction_initiation_date": "stringstringstringst",
- "transaction_updated_date": "stringstringstringst",
- "transaction_amount": {
- "currency_code": "str",
- "value": "string"
}, - "fee_amount": {
- "currency_code": "str",
- "value": "string"
}, - "discount_amount": {
- "currency_code": "str",
- "value": "string"
}, - "insurance_amount": {
- "currency_code": "str",
- "value": "string"
}, - "sales_tax_amount": {
- "currency_code": "str",
- "value": "string"
}, - "shipping_amount": {
- "currency_code": "str",
- "value": "string"
}, - "shipping_discount_amount": {
- "currency_code": "str",
- "value": "string"
}, - "shipping_tax_amount": {
- "currency_code": "str",
- "value": "string"
}, - "other_amount": {
- "currency_code": "str",
- "value": "string"
}, - "tip_amount": {
- "currency_code": "str",
- "value": "string"
}, - "ending_balance": {
- "currency_code": "str",
- "value": "string"
}, - "available_balance": {
- "currency_code": "str",
- "value": "string"
}, - "credit_transactional_fee": {
- "currency_code": "str",
- "value": "string"
}, - "credit_promotional_fee": {
- "currency_code": "str",
- "value": "string"
}, - "annual_percentage_rate": "string"
}, - "payer_info": {
- "account_id": "string",
- "address_status": "s",
- "payer_status": "s",
- "email_address": "string",
- "phone_number": {
- "country_code": "str",
- "national_number": "string",
- "extension_number": "string"
}, - "payer_name": {
- "prefix": "string",
- "given_name": "string",
- "surname": "string",
- "middle_name": "string",
- "suffix": "string",
- "alternate_full_name": "string",
- "full_name": "string"
}, - "country_code": "st",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "state": "string",
- "country_code": "st",
- "postal_code": "string"
}
}, - "shipping_info": {
- "name": "string",
- "method": "string",
- "address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "state": "string",
- "country_code": "st",
- "postal_code": "string"
}, - "secondary_shipping_address": {
- "line1": "string",
- "line2": "string",
- "city": "string",
- "state": "string",
- "country_code": "st",
- "postal_code": "string"
}
}, - "cart_info": {
- "item_details": [
- {
- "item_code": "string",
- "item_name": "string",
- "item_description": "string",
- "item_options": "string",
- "item_quantity": "string",
- "tax_amounts": [
- {
- "tax_amount": {
- "currency_code": "str",
- "value": "string"
}
}
], - "invoice_number": "string",
- "checkout_options": [
- {
- "checkout_option_name": "string",
- "checkout_option_value": "string"
}
], - "item_unit_price": {
- "currency_code": "str",
- "value": "string"
}, - "item_amount": {
- "currency_code": "str",
- "value": "string"
}, - "discount_amount": {
- "currency_code": "str",
- "value": "string"
}, - "adjustment_amount": {
- "currency_code": "str",
- "value": "string"
}, - "gift_wrap_amount": {
- "currency_code": "str",
- "value": "string"
}, - "tax_percentage": "string",
- "basic_shipping_amount": {
- "currency_code": "str",
- "value": "string"
}, - "extra_shipping_amount": {
- "currency_code": "str",
- "value": "string"
}, - "handling_amount": {
- "currency_code": "str",
- "value": "string"
}, - "insurance_amount": {
- "currency_code": "str",
- "value": "string"
}, - "total_item_amount": {
- "currency_code": "str",
- "value": "string"
}
}
], - "tax_inclusive": false,
- "paypal_invoice_id": "string"
}, - "store_info": {
- "store_id": "string",
- "terminal_id": "string"
}, - "auction_info": {
- "auction_site": "string",
- "auction_item_site": "string",
- "auction_buyer_id": "string",
- "auction_closing_date": "stringstringstringst"
}, - "incentive_info": {
- "incentive_details": [
- {
- "incentive_type": "string",
- "incentive_code": "string",
- "incentive_program_code": "string",
- "incentive_amount": {
- "currency_code": "str",
- "value": "string"
}
}
]
}
}
The transaction information.
paypal_account_id | string [ 1 .. 24 ] characters ^[a-zA-Z0-9]*$ The ID of the PayPal account of the counterparty. | ||||||||||
transaction_id | string [ 1 .. 24 ] characters ^[a-zA-Z0-9]*$ The PayPal-generated transaction ID. | ||||||||||
paypal_reference_id | string [ 1 .. 24 ] characters ^[a-zA-Z0-9]*$ The PayPal-generated base ID. PayPal exclusive. Cannot be altered. Defined as a related, pre-existing transaction or event. | ||||||||||
paypal_reference_id_type | string = 3 characters ^[a-zA-Z0-9]*$ The PayPal reference ID type.
| ||||||||||
transaction_event_code | string [ 1 .. 5 ] characters ^[a-zA-Z0-9]*$ A five-digit transaction event code that classifies the transaction type based on money movement and debit or credit. For example, | ||||||||||
transaction_status | string = 1 characters ^[a-zA-Z0-9]*$ A code that indicates the transaction status. Value is:
| ||||||||||
transaction_subject | string [ 1 .. 256 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ The subject of payment. The payer passes this value to the payee. The payer controls this data through the interface through which he or she sends the data. | ||||||||||
transaction_note | string [ 1 .. 4000 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ A special note that the payer passes to the payee. Might contain special customer requests, such as shipping instructions. | ||||||||||
payment_tracking_id | string [ 1 .. 127 ] characters ^[a-zA-Z0-9]*$ The payment tracking ID, which is a unique ID that partners specify to either get information about a payment or request a refund. | ||||||||||
bank_reference_id | string [ 1 .. 127 ] characters ^[a-zA-Z0-9]*$ The bank reference ID. The bank provides this value for an ACH transaction. | ||||||||||
invoice_id | string [ 1 .. 127 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ The invoice ID that is sent by the merchant with the transaction. Note: If an invoice ID was sent with the capture request, the value is reported. Otherwise, the invoice ID of the authorizing transaction is reported. | ||||||||||
custom_field | string [ 1 .. 127 ] characters ^[a-zA-Z0-9_'\-., ":;\!?]*$ The merchant-provided custom text. Note: Usually, this field includes the unique ID for payments made with MassPay type transaction. | ||||||||||
protection_eligibility | string [ 1 .. 2 ] characters ^[a-zA-Z0-9]*$ Indicates whether the transaction is eligible for protection. Value is:
| ||||||||||
credit_term | string [ 1 .. 25 ] characters ^[a-zA-Z0-9.]*$ The credit term. The time span covered by the installment payments as expressed in the term length plus the length time unit code. | ||||||||||
payment_method_type | string [ 1 .. 20 ] characters ^[a-zA-Z0-9-]*$ The payment method that was used for a transaction. Value is Note: Appears only for pay upon invoice (PUI), installment, and mEFT transactions. Merchants and partners in the EMEA region can use this attribute to note transactions that attract turn-over tax. | ||||||||||
instrument_type | string [ 1 .. 64 ] characters A high-level classification of the type of financial instrument that was used to fund a payment. The pattern is not provided because the value is defined by an external party. E.g. PAYPAL, CREDIT_CARD, DEBIT_CARD, APPLE_PAY, BANK , VENMO ,Pay Upon Invoice, Pay Later or Alternative Payment Methods (APM). | ||||||||||
instrument_sub_type | string [ 1 .. 64 ] characters A finer-grained classification of the financial instrument that was used to fund a payment. For example, | ||||||||||
transaction_initiation_date | string <ppaas_date_time_v3> (date_time) [ 20 .. 64 ] characters ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|... The date and time when work on a transaction began in the PayPal system, as expressed in the time zone of the account on this side of the payment. Specify the value in Internet date and time format. | ||||||||||
transaction_updated_date | string <ppaas_date_time_v3> (date_time) [ 20 .. 64 ] characters ^[0-9]{4}-(0[1-9]|1[0-2])-(0[1-9]|[1-2][0-9]|... The date and time when the transaction was last changed, as expressed in the time zone of the account on this side of the payment. Specify the value in Internet date and time format. | ||||||||||
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |||||||||||
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |||||||||||
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |||||||||||
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |||||||||||
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |||||||||||
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |||||||||||
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |||||||||||
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |||||||||||
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |||||||||||
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |||||||||||
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |||||||||||
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |||||||||||
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |||||||||||
object (Money) The currency and amount for a financial transaction, such as a balance or payment due. | |||||||||||
annual_percentage_rate | string <ppaas_common_percentage_v2> (percentage) ^((-?[0-9]+)|(-?([0-9]+)?[.][0-9]+))$ The percentage, as a fixed-point, signed decimal number. For example, define a 19.99% interest rate as |
{- "paypal_account_id": "string",
- "transaction_id": "string",
- "paypal_reference_id": "string",
- "paypal_reference_id_type": "ODR",
- "transaction_event_code": "strin",
- "transaction_status": "s",
- "transaction_subject": "string",
- "transaction_note": "string",
- "payment_tracking_id": "string",
- "bank_reference_id": "string",
- "invoice_id": "string",
- "custom_field": "string",
- "protection_eligibility": "st",
- "credit_term": "string",
- "payment_method_type": "string",
- "instrument_type": "string",
- "instrument_sub_type": "string",
- "transaction_initiation_date": "stringstringstringst",
- "transaction_updated_date": "stringstringstringst",
- "transaction_amount": {
- "currency_code": "str",
- "value": "string"
}, - "fee_amount": {
- "currency_code": "str",
- "value": "string"
}, - "discount_amount": {
- "currency_code": "str",
- "value": "string"
}, - "insurance_amount": {
- "currency_code": "str",
- "value": "string"
}, - "sales_tax_amount": {
- "currency_code": "str",
- "value": "string"
}, - "shipping_amount": {
- "currency_code": "str",
- "value": "string"
}, - "shipping_discount_amount": {
- "currency_code": "str",
- "value": "string"
}, - "shipping_tax_amount": {
- "currency_code": "str",
- "value": "string"
}, - "other_amount": {
- "currency_code": "str",
- "value": "string"
}, - "tip_amount": {
- "currency_code": "str",
- "value": "string"
}, - "ending_balance": {
- "currency_code": "str",
- "value": "string"
}, - "available_balance": {
- "currency_code": "str",
- "value": "string"
}, - "credit_transactional_fee": {
- "currency_code": "str",
- "value": "string"
}, - "credit_promotional_fee": {
- "currency_code": "str",
- "value": "string"
}, - "annual_percentage_rate": "string"
}