POST /v2/checkout/orders/{id}/capture
Captures payment for an order. To successfully capture payment for an order, the buyer must first approve the order or a valid payment_source must be provided in the request. A buyer can approve the order upon being redirected to the rel:approve URL that was returned in the HATEOAS links in the create order response.
Note: For error handling and troubleshooting, see Orders v2 errors.
Servers
- https://api-m.sandbox.paypal.com
- https://api-m.paypal.com
Path parameters
Name | Type | Required | Description |
---|---|---|---|
id |
String | Yes |
The ID of the order that the tracking information is associated with. |
Request headers
Name | Type | Required | Description |
---|---|---|---|
Content-Type |
String | Yes |
The media type of the request body.
Default value: "application/json" |
PayPal-Request-Id |
String | No |
The server stores keys for 6 hours. The API callers can request the times to up to 72 hours by speaking to their Account Manager. It is mandatory for all single-step create order calls (E.g. Create Order Request with payment source information like Card, PayPal.vault_id, PayPal.billing_agreement_id, etc). |
Prefer |
String | No |
The preferred server response upon successful completion of the request. Value is:
Default value: "return=minimal" |
PayPal-Client-Metadata-Id |
String | No | |
PayPal-Auth-Assertion |
String | No |
An API-caller-provided JSON Web Token (JWT) assertion that identifies the merchant. For details, see PayPal-Auth-Assertion. |
Request body fields
Name | Type | Required | Description |
---|---|---|---|
payment_source |
Object | No |
The payment source definition. |
payment_source.swish |
Object | No |
Information needed to pay using Swish. |
payment_source.swish.name |
String | Yes |
The full name representation like Mr J Smith. |
payment_source.swish.experience_context |
Object | No |
Customizes the payer experience during the approval process for the payment. |
payment_source.swish.experience_context.return_intent_url |
String | No |
Describes the URL. |
payment_source.swish.experience_context.brand_name |
String | No |
The label that overrides the business name in the PayPal account on the PayPal site. The pattern is defined by an external party and supports Unicode. |
payment_source.swish.experience_context.shipping_preference |
String | No |
The location from which the shipping address is derived. Possible values:
Default value: "GET_FROM_FILE" |
payment_source.swish.experience_context.cancel_url |
String | No |
Describes the URL. |
payment_source.swish.experience_context.locale |
String | No |
The language tag for the language in which to localize the error-related strings, such as messages, issues, and suggested actions. The tag is made up of the ISO 639-2 language code, the optional ISO-15924 script tag, and the ISO-3166 alpha-2 country code or M49 region code. |
payment_source.swish.experience_context.return_url |
String | No |
Describes the URL. |
payment_source.swish.country_code |
String | Yes |
The two-character ISO 3166-1 code that identifies the country or region. Note: The country code for Great Britain is |
payment_source.google_pay |
Object | No |
Information needed to pay using Google Pay. |
payment_source.google_pay.attributes |
No | ||
payment_source.google_pay.name |
String | No |
The full name representation like Mr J Smith. |
payment_source.google_pay.email_address |
String | No |
The internationalized email address. Note: Up to 64 characters are allowed before and 255 characters are allowed after the |
payment_source.google_pay.experience_context |
Object | No |
Customizes the payer experience during the approval process for the payment. |
payment_source.google_pay.experience_context.cancel_url |
String | Yes |
Describes the URL. |
payment_source.google_pay.experience_context.return_url |
String | Yes |
Describes the URL. |
payment_source.google_pay.decrypted_token |
Object | No |
Details shared by Google for the merchant to be shared with PayPal. This is required to process the transaction using the Google Pay payment method. |
payment_source.google_pay.decrypted_token.message_id |
String | No |
A unique ID that identifies the message in case it needs to be revoked or located at a later time. |
payment_source.google_pay.decrypted_token.eci_indicator |
String | No |
Electronic Commerce Indicator may not always be present. It is only returned for tokens on the Visa card network. This value is passed through in the payment authorization request. |
payment_source.google_pay.decrypted_token.authentication_method |
String | Yes |
Authentication Method which is used for the card transaction. Possible values:
|
payment_source.google_pay.decrypted_token.message_expiration |
String | No |
Date and time at which the message expires as UTC milliseconds since epoch. Integrators should reject any message that's expired. |
payment_source.google_pay.decrypted_token.cryptogram |
String | No |
Base-64 cryptographic identifier used by card schemes to validate the token verification result. This is a conditionally required field if authentication_method is CRYPTOGRAM_3DS. |
payment_source.google_pay.decrypted_token.payment_method |
String | Yes |
The type of the payment credential. Currently, only CARD is supported. Possible values:
|
payment_source.google_pay.decrypted_token.card |
Object | Yes |
The payment card used to fund a Google Pay payment. Can be a credit or debit card. |
payment_source.google_pay.decrypted_token.card.expiry |
String | No |
The year and month, in ISO-8601 |
payment_source.google_pay.decrypted_token.card.name |
String | No |
The card holder's name as it appears on the card. |
payment_source.google_pay.decrypted_token.card.number |
String | No |
The primary account number (PAN) for the payment card. |
payment_source.google_pay.decrypted_token.card.last_digits |
String | No |
The last digits of the payment card. |
payment_source.google_pay.decrypted_token.card.brand |
String | No |
The card network or brand. Applies to credit, debit, gift, and payment cards. Possible values:
|
payment_source.google_pay.decrypted_token.card.type |
String | No |
Type of card. i.e Credit, Debit and so on. Possible values:
|
payment_source.google_pay.decrypted_token.card.billing_address |
Object | No |
The portable international postal address. Maps to AddressValidationMetadata and HTML 5.1 Autofilling form controls: the autocomplete attribute. |
payment_source.google_pay.decrypted_token.card.billing_address.postal_code |
String | No |
The postal code, which is the ZIP code or equivalent. Typically required for countries with a postal code or an equivalent. See postal code. |
payment_source.google_pay.decrypted_token.card.billing_address.admin_area_2 |
String | No |
A city, town, or village. Smaller than |
payment_source.google_pay.decrypted_token.card.billing_address.country_code |
String | Yes |
The 2-character ISO 3166-1 code that identifies the country or region. Note: The country code for Great Britain is |
payment_source.google_pay.decrypted_token.card.billing_address.admin_area_1 |
String | No |
The highest-level sub-division in a country, which is usually a province, state, or ISO-3166-2 subdivision. This data is formatted for postal delivery, for example,
|
payment_source.google_pay.decrypted_token.card.billing_address.address_line_2 |
String | No |
The second line of the address, for example, a suite or apartment number. |
payment_source.google_pay.decrypted_token.card.billing_address.address_line_1 |
String | No |
The first line of the address, such as number and street, for example, |
payment_source.google_pay.card |
Object | No |
The payment card used to fund a Google Pay payment. Can be a credit or debit card. |
payment_source.google_pay.card.name |
String | No |
The card holder's name as it appears on the card. |
payment_source.google_pay.card.brand |
String | No |
The card network or brand. Applies to credit, debit, gift, and payment cards. Possible values:
|
payment_source.google_pay.card.type |
String | No |
Type of card. i.e Credit, Debit and so on. Possible values:
|
payment_source.google_pay.card.billing_address |
Object | No |
The portable international postal address. Maps to AddressValidationMetadata and HTML 5.1 Autofilling form controls: the autocomplete attribute. |
payment_source.google_pay.card.billing_address.postal_code |
String | No |
The postal code, which is the ZIP code or equivalent. Typically required for countries with a postal code or an equivalent. See postal code. |
payment_source.google_pay.card.billing_address.admin_area_2 |
String | No |
A city, town, or village. Smaller than |
payment_source.google_pay.card.billing_address.country_code |
String | Yes |
The 2-character ISO 3166-1 code that identifies the country or region. Note: The country code for Great Britain is |
payment_source.google_pay.card.billing_address.admin_area_1 |
String | No |
The highest-level sub-division in a country, which is usually a province, state, or ISO-3166-2 subdivision. This data is formatted for postal delivery, for example,
|
payment_source.google_pay.card.billing_address.address_line_2 |
String | No |
The second line of the address, for example, a suite or apartment number. |
payment_source.google_pay.card.billing_address.address_line_1 |
String | No |
The first line of the address, such as number and street, for example, |
payment_source.google_pay.assurance_details |
Object | No |
Information about cardholder possession validation and cardholder identification and verifications (ID&V). |
payment_source.google_pay.assurance_details.account_verified |
Boolean | No |
If true, indicates that Cardholder possession validation has been performed on returned payment credential. Default value: false |
payment_source.google_pay.assurance_details.card_holder_authenticated |
Boolean | No |
If true, indicates that identification and verifications (ID&V) was performed on the returned payment credential.If false, the same risk-based authentication can be performed as you would for card transactions. This risk-based authentication can include, but not limited to, step-up with 3D Secure protocol if applicable. Default value: false |
payment_source.google_pay.phone_number |
Object | No |
The phone number in its canonical international E.164 numbering plan format. |
payment_source.google_pay.phone_number.national_number |
String | Yes |
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). |
payment_source.google_pay.phone_number.country_code |
String | Yes |
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). |
payment_source.pix |
Object | No |
Information needed to pay using Pix. |
payment_source.pix.tax_info |
Object | Yes |
The tax ID of the customer. The customer is also known as the payer. Both |
payment_source.pix.tax_info.tax_id_type |
String | Yes |
The customer's tax ID type. Possible values:
|
payment_source.pix.tax_info.tax_id |
String | Yes |
The customer's tax ID value. |
payment_source.pix.name |
String | Yes |
The full name representation like Mr J Smith. |
payment_source.pix.email_address |
String | Yes |
The internationalized email address. Note: Up to 64 characters are allowed before and 255 characters are allowed after the |
payment_source.pix.currency_code |
String | Yes |
The 3-character ISO-4217 currency code that identifies the currency. |
payment_source.pix.qr_details |
Object | No |
QR details received from processor. |
payment_source.pix.qr_details.qr_image |
String | No |
QR image received from APM processor, The pattern is not provided because the value is defined by an external party. |
payment_source.pix.qr_details.qr_expiry |
String | No |
QR Expiry time in seconds |
payment_source.pix.qr_details.qr_payload |
String | No |
QR payload received from APM processor, The pattern is not provided because the value is defined by an external party. |
payment_source.pix.country_code |
String | Yes |
The 2-character ISO 3166-1 code that identifies the country or region. Note: The country code for Great Britain is |
payment_source.pix.phone_number |
Object | Yes |
The phone number in its canonical international E.164 numbering plan format. |
payment_source.pix.phone_number.national_number |
String | Yes |
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). |
payment_source.pix.phone_number.country_code |
String | Yes |
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). |
payment_source.paypal |
Object | No |
A resource that identifies a PayPal Wallet is used for payment. |
payment_source.paypal.tax_info |
Object | No |
The tax ID of the customer. The customer is also known as the payer. Both |
payment_source.paypal.tax_info.tax_id_type |
String | Yes |
The customer's tax ID type. Possible values:
|
payment_source.paypal.tax_info.tax_id |
String | Yes |
The customer's tax ID value. |
payment_source.paypal.attributes |
Object | No |
Additional attributes associated with the use of this PayPal Wallet. |
payment_source.paypal.attributes.customer |
Object | No |
The details about a customer in PayPal's system of record. |
payment_source.paypal.attributes.customer.id |
String | No |
The unique ID for a customer generated by PayPal. |
payment_source.paypal.attributes.customer.name |
Object | No |
The name of the party. |
payment_source.paypal.attributes.customer.name.given_name |
String | No |
When the party is a person, the party's given, or first, name. |
payment_source.paypal.attributes.customer.name.surname |
String | No |
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. |
payment_source.paypal.attributes.customer.email_address |
String | No |
The internationalized email address. Note: Up to 64 characters are allowed before and 255 characters are allowed after the |
payment_source.paypal.attributes.customer.phone |
Object | No |
The phone information. |
payment_source.paypal.attributes.customer.phone.phone_type |
String | No |
The phone type. Possible values:
|
payment_source.paypal.attributes.customer.phone.phone_number |
Object | Yes |
The phone number, in its canonical international E.164 numbering plan format. |
payment_source.paypal.attributes.customer.phone.phone_number.national_number |
String | Yes |
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). |
payment_source.paypal.attributes.customer.merchant_customer_id |
String | No |
Merchants and partners may already have a data-store where their customer information is persisted. Use merchant_customer_id to associate the PayPal-generated customer.id to your representation of a customer. |
payment_source.paypal.name |
Object | No |
The name of the party. |
payment_source.paypal.name.given_name |
String | No |
When the party is a person, the party's given, or first, name. |
payment_source.paypal.name.surname |
String | No |
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. |
payment_source.paypal.email_address |
String | No |
The internationalized email address. Note: Up to 64 characters are allowed before and 255 characters are allowed after the |
payment_source.paypal.experience_context |
Object | No |
Customizes the payer experience during the approval process for payment with PayPal. Note: Partners and Marketplaces might configure |
payment_source.paypal.experience_context.brand_name |
String | No |
The label that overrides the business name in the PayPal account on the PayPal site. The pattern is defined by an external party and supports Unicode. |
payment_source.paypal.experience_context.landing_page |
String | No |
The type of landing page to show on the PayPal site for customer checkout. Possible values:
Default value: "NO_PREFERENCE" |
payment_source.paypal.experience_context.shipping_preference |
String | No |
The location from which the shipping address is derived. Possible values:
Default value: "GET_FROM_FILE" |
payment_source.paypal.experience_context.contact_preference |
String | No |
The preference to display the contact information (buyer’s shipping email & phone number) on PayPal's checkout for easy merchant-buyer communication. Possible values:
Default value: "NO_CONTACT_INFO" |
payment_source.paypal.experience_context.order_update_callback_config |
Object | No |
CallBack Configuration that the merchant can provide to PayPal/Venmo. |
payment_source.paypal.experience_context.order_update_callback_config.callback_events[] |
Array | Yes |
An array of callback events merchant can subscribe to for the corresponding callback url. |
payment_source.paypal.experience_context.order_update_callback_config.callback_url |
String | Yes |
Merchant provided CallBack url.PayPal/Venmo will use this url to call the merchant back when the events occur .PayPal/Venmo expects a secured url usually in the https format.merchant can append the cart id or other params part of the url as query or path params. |
payment_source.paypal.experience_context.user_action |
String | No |
Configures a Continue or Pay Now checkout flow. Possible values:
Default value: "CONTINUE" |
payment_source.paypal.experience_context.cancel_url |
String | No |
Describes the URL. |
payment_source.paypal.experience_context.locale |
String | No |
The language tag for the language in which to localize the error-related strings, such as messages, issues, and suggested actions. The tag is made up of the ISO 639-2 language code, the optional ISO-15924 script tag, and the ISO-3166 alpha-2 country code or M49 region code. |
payment_source.paypal.experience_context.return_url |
String | No |
Describes the URL. |
payment_source.paypal.experience_context.payment_method_preference |
String | No |
The merchant-preferred payment methods. Possible values:
Default value: "UNRESTRICTED" |
payment_source.paypal.phone |
Object | No |
The phone information. |
payment_source.paypal.phone.phone_type |
String | No |
The phone type. Possible values:
|
payment_source.paypal.phone.phone_number |
Object | Yes |
The phone number, in its canonical international E.164 numbering plan format. |
payment_source.paypal.phone.phone_number.national_number |
String | Yes |
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). |
payment_source.paypal.birth_date |
String | No |
The stand-alone date, in Internet date and time format. To represent special legal values, such as a date of birth, you should use dates with no associated time or time-zone data. Whenever possible, use the standard |
payment_source.paypal.vault_id |
String | No |
The PayPal-generated ID for the vaulted payment source. This ID should be stored on the merchant's server so the saved payment source can be used for future transactions. |
payment_source.paypal.billing_agreement_id |
String | No |
The PayPal billing agreement ID. References an approved recurring payment for goods or services. |
payment_source.paypal.address |
Object | No |
The portable international postal address. Maps to AddressValidationMetadata and HTML 5.1 Autofilling form controls: the autocomplete attribute. |
payment_source.paypal.address.postal_code |
String | No |
The postal code, which is the ZIP code or equivalent. Typically required for countries with a postal code or an equivalent. See postal code. |
payment_source.paypal.address.admin_area_2 |
String | No |
A city, town, or village. Smaller than |
payment_source.paypal.address.country_code |
String | Yes |
The 2-character ISO 3166-1 code that identifies the country or region. Note: The country code for Great Britain is |
payment_source.paypal.address.admin_area_1 |
String | No |
The highest-level sub-division in a country, which is usually a province, state, or ISO-3166-2 subdivision. This data is formatted for postal delivery, for example,
|
payment_source.paypal.address.address_line_2 |
String | No |
The second line of the address, for example, a suite or apartment number. |
payment_source.paypal.address.address_line_1 |
String | No |
The first line of the address, such as number and street, for example, |
payment_source.paypal.stored_credential |
Object | No |
Provides additional details to process a payment using the PayPal wallet billing agreement or a vaulted payment method that has been stored or is intended to be stored. |
payment_source.paypal.stored_credential.payment_initiator |
String | Yes |
The person or party who initiated or triggered the payment. Possible values:
|
payment_source.paypal.stored_credential.usage |
String | No |
Indicates if this is a Possible values:
Default value: "DERIVED" |
payment_source.paypal.stored_credential.charge_pattern |
String | No |
Expected business/pricing model for the billing agreement. Possible values:
|
payment_source.paypal.stored_credential.usage_pattern |
String | No |
Expected business/pricing model for the billing agreement. Possible values:
|
payment_source.token |
Object | No |
The tokenized payment source to fund a payment. |
payment_source.token.id |
String | Yes |
The PayPal-generated ID for the token. |
payment_source.token.type |
String | Yes |
The tokenization method that generated the ID. Possible values:
|
payment_source.venmo |
Object | No |
Information needed to pay using Venmo. |
payment_source.venmo.attributes |
Object | No |
Additional attributes associated with the use of this Venmo Wallet. |
payment_source.venmo.attributes.customer |
Object | No |
This object represents a merchant’s customer, allowing them to store contact details, and track all payments associated with the same customer. |
payment_source.venmo.attributes.customer.id |
String | No |
The unique ID for a customer generated by PayPal. |
payment_source.venmo.attributes.customer.name |
Object | No |
The name of the party. |
payment_source.venmo.attributes.customer.name.given_name |
String | No |
When the party is a person, the party's given, or first, name. |
payment_source.venmo.attributes.customer.name.surname |
String | No |
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. |
payment_source.venmo.attributes.customer.email_address |
String | No |
The internationalized email address. Note: Up to 64 characters are allowed before and 255 characters are allowed after the |
payment_source.venmo.attributes.customer.phone |
Object | No |
The phone information. |
payment_source.venmo.attributes.customer.phone.phone_type |
String | No |
The phone type. Possible values:
|
payment_source.venmo.attributes.customer.phone.phone_number |
Object | Yes |
The phone number, in its canonical international E.164 numbering plan format. |
payment_source.venmo.attributes.customer.phone.phone_number.national_number |
String | Yes |
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). |
payment_source.venmo.attributes.vault |
Object | No |
Resource consolidating common request and response attirbutes for vaulting Venmo Wallet. |
payment_source.venmo.attributes.vault.usage_type |
String | Yes |
The usage type associated with the Venmo payment token. Possible values:
|
payment_source.venmo.attributes.vault.permit_multiple_payment_tokens |
Boolean | No |
Create multiple payment tokens for the same payer, merchant/platform combination. Use this when the customer has not logged in at merchant/platform. The payment token thus generated, can then also be used to create the customer account at merchant/platform. Use this also when multiple payment tokens are required for the same payer, different customer at merchant/platform. This helps to identify customers distinctly even though they may share the same Venmo account. Default value: false |
payment_source.venmo.attributes.vault.store_in_vault |
String | Yes |
Defines how and when the payment source gets vaulted. Possible values:
|
payment_source.venmo.attributes.vault.description |
String | No |
The description displayed to Venmo consumer on the approval flow for Venmo, as well as on the Venmo payment token management experience on Venmo.com. |
payment_source.venmo.attributes.vault.customer_type |
String | No |
The customer type associated with the Venmo payment token. This is to indicate whether the customer acting on the merchant / platform is either a business or a consumer. Possible values:
Default value: "CONSUMER" |
payment_source.venmo.attributes.vault.usage_pattern |
String | No |
Expected business/pricing model for the billing agreement. Possible values:
|
payment_source.venmo.email_address |
String | No |
The internationalized email address. Note: Up to 64 characters are allowed before and 255 characters are allowed after the |
payment_source.venmo.experience_context |
Object | No |
Customizes the buyer experience during the approval process for payment with Venmo. Note: Partners and Marketplaces might configure
|
payment_source.venmo.experience_context.brand_name |
String | No |
The business name of the merchant. The pattern is defined by an external party and supports Unicode. |
payment_source.venmo.experience_context.shipping_preference |
String | No |
The location from which the shipping address is derived. Possible values:
Default value: "GET_FROM_FILE" |
payment_source.venmo.experience_context.order_update_callback_config |
Object | No |
CallBack Configuration that the merchant can provide to PayPal/Venmo. |
payment_source.venmo.experience_context.order_update_callback_config.callback_events[] |
Array | Yes |
An array of callback events merchant can subscribe to for the corresponding callback url. |
payment_source.venmo.experience_context.order_update_callback_config.callback_url |
String | Yes |
Merchant provided CallBack url.PayPal/Venmo will use this url to call the merchant back when the events occur .PayPal/Venmo expects a secured url usually in the https format.merchant can append the cart id or other params part of the url as query or path params. |
payment_source.venmo.vault_id |
String | No |
The PayPal-generated ID for the vaulted payment source. This ID should be stored on the merchant's server so the saved payment source can be used for future transactions. |
payment_source.card |
Object | No |
The payment card to use to fund a payment. Can be a credit or debit card. Note: Passing card number, cvv and expiry directly via the API requires PCI SAQ D compliance. |
payment_source.card.expiry |
String | No |
The year and month, in ISO-8601 |
payment_source.card.attributes |
Object | No |
Additional attributes associated with the use of this card. |
payment_source.card.attributes.customer |
Object | No |
The details about a customer in PayPal's system of record. |
payment_source.card.attributes.customer.id |
String | No |
The unique ID for a customer generated by PayPal. |
payment_source.card.attributes.customer.name |
Object | No |
The name of the party. |
payment_source.card.attributes.customer.name.given_name |
String | No |
When the party is a person, the party's given, or first, name. |
payment_source.card.attributes.customer.name.surname |
String | No |
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. |
payment_source.card.attributes.customer.email_address |
String | No |
The internationalized email address. Note: Up to 64 characters are allowed before and 255 characters are allowed after the |
payment_source.card.attributes.customer.phone |
Object | No |
The phone information. |
payment_source.card.attributes.customer.phone.phone_type |
String | No |
The phone type. Possible values:
|
payment_source.card.attributes.customer.phone.phone_number |
Object | Yes |
The phone number, in its canonical international E.164 numbering plan format. |
payment_source.card.attributes.customer.phone.phone_number.national_number |
String | Yes |
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). |
payment_source.card.attributes.customer.merchant_customer_id |
String | No |
Merchants and partners may already have a data-store where their customer information is persisted. Use merchant_customer_id to associate the PayPal-generated customer.id to your representation of a customer. |
payment_source.card.attributes.verification |
Object | No |
The API caller can opt in to verify the card through PayPal offered verification services (e.g. Smart Dollar Auth, 3DS). |
payment_source.card.attributes.verification.method |
String | No |
The method used for card verification. Possible values:
Default value: "SCA_WHEN_REQUIRED" |
payment_source.card.attributes.vault |
Object | No |
Basic vault instruction specification that can be extended by specific payment sources that supports vaulting. |
payment_source.card.attributes.vault.store_in_vault |
String | No |
Defines how and when the payment source gets vaulted. Possible values:
|
payment_source.card.single_use_token |
String | No |
The PayPal-generated, short-lived, one-time-use token, used to communicate payment information to PayPal for transaction processing. |
payment_source.card.name |
String | No |
The card holder's name as it appears on the card. |
payment_source.card.experience_context |
Object | No |
Customizes the payer experience during the 3DS Approval for payment. |
payment_source.card.experience_context.cancel_url |
String | No |
Describes the URL. |
payment_source.card.experience_context.return_url |
String | No |
Describes the URL. |
payment_source.card.number |
String | No |
The primary account number (PAN) for the payment card. |
payment_source.card.network_token |
Object | No |
The Third Party Network token used to fund a payment. |
payment_source.card.network_token.expiry |
String | Yes |
The year and month, in ISO-8601 |
payment_source.card.network_token.eci_flag |
String | No |
Electronic Commerce Indicator (ECI). The ECI value is part of the 2 data elements that indicate the transaction was processed electronically. This should be passed on the authorization transaction to the Gateway/Processor. Possible values:
|
payment_source.card.network_token.number |
String | Yes |
Third party network token number. |
payment_source.card.network_token.token_requestor_id |
String | No |
A TRID, or a Token Requestor ID, is an identifier used by merchants to request network tokens from card networks. A TRID is a precursor to obtaining a network token for a credit card primary account number (PAN), and will aid in enabling secure card on file (COF) payments and reducing fraud. |
payment_source.card.network_token.cryptogram |
String | No |
An Encrypted one-time use value that's sent along with Network Token. This field is not required to be present for recurring transactions. |
payment_source.card.vault_id |
String | No |
The PayPal-generated ID for the vaulted payment source. This ID should be stored on the merchant's server so the saved payment source can be used for future transactions. |
payment_source.card.security_code |
String | No |
The three- or four-digit security code of the card. Also known as the CVV, CVC, CVN, CVE, or CID. This parameter cannot be present in the request when |
payment_source.card.stored_credential |
Object | No |
Provides additional details to process a payment using a
|
payment_source.card.stored_credential.payment_initiator |
String | Yes |
The person or party who initiated or triggered the payment. Possible values:
|
payment_source.card.stored_credential.usage |
String | No |
Indicates if this is a Possible values:
Default value: "DERIVED" |
payment_source.card.stored_credential.payment_type |
String | Yes |
Indicates the type of the stored payment_source payment. Possible values:
|
payment_source.card.stored_credential.previous_network_transaction_reference |
Object | No |
Reference values used by the card network to identify a transaction. |
payment_source.card.stored_credential.previous_network_transaction_reference.id |
String | Yes |
Transaction reference id returned by the scheme. For Visa and Amex, this is the "Tran id" field in response. For MasterCard, this is the "BankNet reference id" field in response. For Discover, this is the "NRID" field in response. The pattern we expect for this field from Visa/Amex/CB/Discover is numeric, Mastercard/BNPP is alphanumeric and Paysecure is alphanumeric with special character -. |
payment_source.card.stored_credential.previous_network_transaction_reference.network |
String | No |
The card network or brand. Applies to credit, debit, gift, and payment cards. Possible values:
|
payment_source.card.stored_credential.previous_network_transaction_reference.acquirer_reference_number |
String | No |
Reference ID issued for the card transaction. This ID can be used to track the transaction across processors, card brands and issuing banks. |
payment_source.card.stored_credential.previous_network_transaction_reference.date |
String | No |
The date that the transaction was authorized by the scheme. This field may not be returned for all networks. MasterCard refers to this field as "BankNet reference date. |
payment_source.card.billing_address |
Object | No |
The portable international postal address. Maps to AddressValidationMetadata and HTML 5.1 Autofilling form controls: the autocomplete attribute. |
payment_source.card.billing_address.postal_code |
String | No |
The postal code, which is the ZIP code or equivalent. Typically required for countries with a postal code or an equivalent. See postal code. |
payment_source.card.billing_address.admin_area_2 |
String | No |
A city, town, or village. Smaller than |
payment_source.card.billing_address.country_code |
String | Yes |
The 2-character ISO 3166-1 code that identifies the country or region. Note: The country code for Great Britain is |
payment_source.card.billing_address.admin_area_1 |
String | No |
The highest-level sub-division in a country, which is usually a province, state, or ISO-3166-2 subdivision. This data is formatted for postal delivery, for example,
|
payment_source.card.billing_address.address_line_2 |
String | No |
The second line of the address, for example, a suite or apartment number. |
payment_source.card.billing_address.address_line_1 |
String | No |
The first line of the address, such as number and street, for example, |
payment_source.apple_pay |
Object | No |
Information needed to pay using ApplePay. |
payment_source.apple_pay.id |
String | No |
ApplePay transaction identifier, this will be the unique identifier for this transaction provided by Apple. The pattern is defined by an external party and supports Unicode. |
payment_source.apple_pay.attributes |
Object | No |
Additional attributes associated with apple pay. |
payment_source.apple_pay.attributes.customer |
Object | No |
This object represents a merchant’s customer, allowing them to store contact details, and track all payments associated with the same customer. |
payment_source.apple_pay.attributes.customer.id |
String | No |
The unique ID for a customer generated by PayPal. |
payment_source.apple_pay.attributes.customer.name |
Object | No |
The name of the party. |
payment_source.apple_pay.attributes.customer.name.given_name |
String | No |
When the party is a person, the party's given, or first, name. |
payment_source.apple_pay.attributes.customer.name.surname |
String | No |
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. |
payment_source.apple_pay.attributes.customer.email_address |
String | No |
The internationalized email address. Note: Up to 64 characters are allowed before and 255 characters are allowed after the |
payment_source.apple_pay.attributes.customer.phone |
Object | No |
The phone information. |
payment_source.apple_pay.attributes.customer.phone.phone_type |
String | No |
The phone type. Possible values:
|
payment_source.apple_pay.attributes.customer.phone.phone_number |
Object | Yes |
The phone number, in its canonical international E.164 numbering plan format. |
payment_source.apple_pay.attributes.customer.phone.phone_number.national_number |
String | Yes |
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). |
payment_source.apple_pay.attributes.vault |
Object | No |
Base vaulting specification. The object can be extended for specific use cases within each payment_source that supports vaulting. |
payment_source.apple_pay.attributes.vault.store_in_vault |
String | Yes |
Defines how and when the payment source gets vaulted. Possible values:
|
payment_source.apple_pay.name |
String | No |
The full name representation like Mr J Smith. |
payment_source.apple_pay.email_address |
String | No |
The internationalized email address. Note: Up to 64 characters are allowed before and 255 characters are allowed after the |
payment_source.apple_pay.experience_context |
Object | No |
Customizes the payer experience during the approval process for the payment. |
payment_source.apple_pay.experience_context.cancel_url |
String | Yes |
Describes the URL. |
payment_source.apple_pay.experience_context.return_url |
String | Yes |
Describes the URL. |
payment_source.apple_pay.decrypted_token |
Object | No |
Information about the Payment data obtained by decrypting Apple Pay token. |
payment_source.apple_pay.decrypted_token.transaction_amount |
Object | No |
The currency and amount for a financial transaction, such as a balance or payment due. |
payment_source.apple_pay.decrypted_token.transaction_amount.currency_code |
String | Yes |
The three-character ISO-4217 currency code that identifies the currency. |
payment_source.apple_pay.decrypted_token.transaction_amount.value |
String | Yes |
The value, which might be:
|
payment_source.apple_pay.decrypted_token.payment_data_type |
String | No |
Indicates the type of payment data passed, in case of Non China the payment data is 3DSECURE and for China it is EMV. Possible values:
|
payment_source.apple_pay.decrypted_token.payment_data |
Object | No |
Information about the decrypted apple pay payment data for the token like cryptogram, eci indicator. |
payment_source.apple_pay.decrypted_token.payment_data.eci_indicator |
String | No |
ECI indicator, as defined by 3- Secure. The pattern is defined by an external party and supports Unicode. |
payment_source.apple_pay.decrypted_token.payment_data.emv_data |
String | No |
Encoded Apple Pay EMV Payment Structure used for payments in China. The pattern is defined by an external party and supports Unicode. |
payment_source.apple_pay.decrypted_token.payment_data.cryptogram |
String | No |
Online payment cryptogram, as defined by 3D Secure. The pattern is defined by an external party and supports Unicode. |
payment_source.apple_pay.decrypted_token.payment_data.pin |
String | No |
Bank Key encrypted Apple Pay PIN. The pattern is defined by an external party and supports Unicode. |
payment_source.apple_pay.decrypted_token.tokenized_card |
Object | Yes |
The payment card to use to fund a payment. Can be a credit or debit card. |
payment_source.apple_pay.decrypted_token.tokenized_card.expiry |
String | No |
The year and month, in ISO-8601 |
payment_source.apple_pay.decrypted_token.tokenized_card.name |
String | No |
The card holder's name as it appears on the card. |
payment_source.apple_pay.decrypted_token.tokenized_card.number |
String | No |
The primary account number (PAN) for the payment card. |
payment_source.apple_pay.decrypted_token.tokenized_card.brand |
String | No |
The card network or brand. Applies to credit, debit, gift, and payment cards. Possible values:
|
payment_source.apple_pay.decrypted_token.tokenized_card.type |
String | No |
Type of card. i.e Credit, Debit and so on. Possible values:
|
payment_source.apple_pay.decrypted_token.tokenized_card.card_type |
String | No |
The card network or brand. Applies to credit, debit, gift, and payment cards. Possible values:
|
payment_source.apple_pay.decrypted_token.tokenized_card.billing_address |
Object | No |
The portable international postal address. Maps to AddressValidationMetadata and HTML 5.1 Autofilling form controls: the autocomplete attribute. |
payment_source.apple_pay.decrypted_token.tokenized_card.billing_address.postal_code |
String | No |
The postal code, which is the ZIP code or equivalent. Typically required for countries with a postal code or an equivalent. See postal code. |
payment_source.apple_pay.decrypted_token.tokenized_card.billing_address.admin_area_2 |
String | No |
A city, town, or village. Smaller than |
payment_source.apple_pay.decrypted_token.tokenized_card.billing_address.country_code |
String | Yes |
The 2-character ISO 3166-1 code that identifies the country or region. Note: The country code for Great Britain is |
payment_source.apple_pay.decrypted_token.tokenized_card.billing_address.admin_area_1 |
String | No |
The highest-level sub-division in a country, which is usually a province, state, or ISO-3166-2 subdivision. This data is formatted for postal delivery, for example,
|
payment_source.apple_pay.decrypted_token.tokenized_card.billing_address.address_line_2 |
String | No |
The second line of the address, for example, a suite or apartment number. |
payment_source.apple_pay.decrypted_token.tokenized_card.billing_address.address_line_1 |
String | No |
The first line of the address, such as number and street, for example, |
payment_source.apple_pay.decrypted_token.device_manufacturer_id |
String | No |
Apple Pay Hex-encoded device manufacturer identifier. The pattern is defined by an external party and supports Unicode. |
payment_source.apple_pay.vault_id |
String | No |
The PayPal-generated ID for the vaulted payment source. This ID should be stored on the merchant's server so the saved payment source can be used for future transactions. |
payment_source.apple_pay.stored_credential |
Object | No |
Provides additional details to process a payment using a
|
payment_source.apple_pay.stored_credential.payment_initiator |
String | Yes |
The person or party who initiated or triggered the payment. Possible values:
|
payment_source.apple_pay.stored_credential.usage |
String | No |
Indicates if this is a Possible values:
Default value: "DERIVED" |
payment_source.apple_pay.stored_credential.payment_type |
String | Yes |
Indicates the type of the stored payment_source payment. Possible values:
|
payment_source.apple_pay.stored_credential.previous_network_transaction_reference |
Object | No |
Reference values used by the card network to identify a transaction. |
payment_source.apple_pay.stored_credential.previous_network_transaction_reference.id |
String | Yes |
Transaction reference id returned by the scheme. For Visa and Amex, this is the "Tran id" field in response. For MasterCard, this is the "BankNet reference id" field in response. For Discover, this is the "NRID" field in response. The pattern we expect for this field from Visa/Amex/CB/Discover is numeric, Mastercard/BNPP is alphanumeric and Paysecure is alphanumeric with special character -. |
payment_source.apple_pay.stored_credential.previous_network_transaction_reference.network |
String | No |
The card network or brand. Applies to credit, debit, gift, and payment cards. Possible values:
|
payment_source.apple_pay.stored_credential.previous_network_transaction_reference.acquirer_reference_number |
String | No |
Reference ID issued for the card transaction. This ID can be used to track the transaction across processors, card brands and issuing banks. |
payment_source.apple_pay.stored_credential.previous_network_transaction_reference.date |
String | No |
The date that the transaction was authorized by the scheme. This field may not be returned for all networks. MasterCard refers to this field as "BankNet reference date. |
payment_source.apple_pay.phone_number |
Object | No |
The phone number, in its canonical international E.164 numbering plan format. |
payment_source.apple_pay.phone_number.national_number |
String | Yes |
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). |
How to start integrating
- Add HTTP Task to your workflow definition.
- Search for the API you want to integrate with and click on the name.
- This loads the API reference documentation and prepares the Http request settings.
- Click Test request to test run your request to the API and see the API's response.