The purchase unit request. Includes required information for the payment contract.
reference_idstringOptionalamountobject<amount_with_breakdown>Requiredcurrency_codestring<currency_code>RequiredvaluestringRequiredbreakdownobject<amount_breakdown>Optionalitem_totalobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredshippingobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredhandlingobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredtax_totalobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredinsuranceobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredshipping_discountobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequireddiscountobject<discount_with_breakdown>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredpayeeobject<payee>Optionalemail_addressstring<email>OptionalNote: 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.
merchant_idstring<account_id>Optionalpayment_instructionobject<payment_instruction>Optionalplatform_feesobject<platform_fee>[]Optionalamountobject<money>Requiredcurrency_codestring<currency_code>RequiredvaluestringRequiredpayeeobject<payee_base>Optionalemail_addressstring<email>OptionalNote: 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.
merchant_idstring<account_id>Optionaldisbursement_modeenum<disbursement_mode>Optionalpayee_pricing_tier_idstringOptionaldescriptionstringOptionalThis field supports up to 3,000 characters, but any content beyond 127 characters (including spaces) will be truncated. The 127 character limit is reflected in the response representation of this field.The purchase description. The maximum length of the character is dependent on the type of characters used. The character length is specified assuming a US ASCII character. Depending on type of character; (e.g. accented character, Japanese characters) the number of characters that that can be specified as input might not equal the permissible max length.
invoice_idstringOptionalsoft_descriptorstringOptionalThis field supports up to 127 characters, but any content beyond 22 characters (including spaces) will be truncated. The 22 character limit is reflected in the response representation of this field.The soft descriptor is the dynamic text used to construct the statement descriptor that appears on a payer's card statement.
PAYPAL_prefix+(space)+merchant_descriptor+(space)+ soft_descriptorNote: The merchant descriptor is the descriptor of the merchant’s payment receiving preferences which can be seen by logging into the merchant account https://www.sandbox.paypal.com/businessprofile/settings/info/editThe
PAYPAL prefix uses 8 characters. Only the first 22 characters will be displayed in the statement. PAYPAL *.Janes Gift.800-123-1234.PAYPAL * Janes Gift 80.itemsobject<item_request>[]Optionalunit_amountobject<money>Requiredcurrency_codestring<currency_code>RequiredvaluestringRequiredtaxobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredupcobject<universal_product_code>Optionalbilling_planobject<order_billing_plan>Optionalbilling_cyclesobject<billing_cycle>[]Requiredpricing_schemeobject<pricing_scheme>Optionalpriceobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredreload_threshold_amountobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredtotal_cyclesintegerOptional1 and 999 for total_cycles). Regular billing cycles can be executed infinite times (value of 0 for total_cycles) or a finite number of times (value between 1 and 999 for total_cycles).start_datestring<date_no_time>Optionalsetup_feeobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredshippingobject<shipping_detail>Optionalnameobject<name>Optionalemail_addressstring<email_address>OptionalNote: 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.
phone_numberobject<phone>Optionalcountry_codestring<country_calling_code>Requirednational_numberstringRequiredoptionsobject<shipping_option>[]OptionallabelstringRequiredtypeenum<shipping_type>Optionalamountobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredselectedbooleanRequiredaddressobject<address_portable>Optionaladmin_area_4stringOptionaladmin_area_3stringOptionaladmin_area_1stringOptionalcountry_codestring<country_code>RequiredNote: The country code for Great Britain isGBand notUKas used in the top-level domain names for that country. Use the `C2` country code for China worldwide for comparable uncontrolled price (CUP) method, bank card, and cross-border transactions.
address_detailsobject<Address Details>Optionalsupplementary_dataobject<supplementary_data>Optionalcardobject<card_supplementary_data>Optionallevel_2object<level_2_card_processing_data>Optionalinvoice_idstringOptionaltax_totalobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredlevel_3object<level_3_card_processing_data>Optionalshipping_amountobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredduty_amountobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequireddiscount_amountobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredshipping_addressobject<address_portable>Optionaladmin_area_4stringOptionaladmin_area_3stringOptionaladmin_area_1stringOptionalcountry_codestring<country_code>RequiredNote: The country code for Great Britain isGBand notUKas used in the top-level domain names for that country. Use the `C2` country code for China worldwide for comparable uncontrolled price (CUP) method, bank card, and cross-border transactions.
address_detailsobject<Address Details>Optionalline_itemsobject<line_item>[]Optionalupcobject<universal_product_code>Optionalbilling_planobject<order_billing_plan>Optionalbilling_cyclesobject<billing_cycle>[]Requiredpricing_schemeobject<pricing_scheme>Optionalpriceobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredreload_threshold_amountobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredtotal_cyclesintegerOptional1 and 999 for total_cycles). Regular billing cycles can be executed infinite times (value of 0 for total_cycles) or a finite number of times (value between 1 and 999 for total_cycles).start_datestring<date_no_time>Optionalsetup_feeobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredunit_amountobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredtaxobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredcommodity_codestringOptionaldiscount_amountobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredtotal_amountobject<money>Optionalcurrency_codestring<currency_code>RequiredvaluestringRequiredunit_of_measurestringOptionalriskobject<risk_supplementary_data>Optionalcustomerobject<participant_metadata>Optionalip_addressstring<ip_address>Optional