Authorizations
PayPal-supplied JWT token for authenticating merchant API requests.
Important: These JWT tokens are issued and managed by PayPal, not generated by merchants. PayPal provides these tokens to authenticate calls to your merchant API endpoints.
Usage:
- Include in Authorization header as "Bearer <paypal-jwt-token>"
- Token is supplied by PayPal Shopping Cart service
- Verify token signature using PayPal's public keys
- Extract merchant identification from token claims
Example:
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...
Headers
PayPal-supplied JWT token for authentication
"Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
Request content type
"application/json"
Path Parameters
The cart identifier
"CART-123"
Body
Payment method information for PayPal Cart API. This API is specifically designed for PayPal's shopping cart service, so only PayPal payment methods are supported.
Payment Flow:
- Cart creation generates a payment token (in payment_method.token)
- Customer completes PayPal approval (Smart Wallet)
- PayPal provides token and payer_id for checkout
- Merchant receives PayPal payment confirmation
Billing Address Behavior:
- PayPal handles all billing address collection internally for payment processing
- Merchants can optionally collect billing addresses for tax calculation and business purposes
- Billing address in cart is for merchant use cases, not payment requirements
- Billing addresses are typically available from customer profile data
Note: Other payment methods (credit cards, Apple Pay, etc.) would be handled by separate merchant payment systems outside of this PayPal Cart API.
Final checkout field values
Policies accepted by customer
Response
Checkout completed successfully
Unified cart object used for all operations (create, update, checkout, responses). This is the core schema that makes the API simple and consistent.
Request Usage: Include only writable fields (items, customer, shipping_address, billing_address, etc.) Response Usage: Includes all fields, with server-calculated fields marked as readOnly
Unique cart identifier (server-generated)
"CART-123"
Current cart business status (server-calculated)
CREATED
, INCOMPLETE
, READY
, COMPLETED
"CREATED"
Cart data validation status indicating whether the cart can proceed to checkout.
VALID: Cart data is complete and valid, ready for checkout
- All items are available with current pricing
- Required information is complete (shipping address, customer data)
- No business rule violations
- validation_issues array is empty
- Can proceed directly to checkout
INVALID: Cart has data issues that prevent checkout
- Items out of stock, price changes, business rule violations
- Invalid or incomplete data that needs correction
- validation_issues array contains specific problems
- Customer/AI agent must resolve issues before checkout
REQUIRES_ADDITIONAL_INFORMATION: Cart needs more data but is otherwise valid
- Missing optional but required fields (shipping address, checkout fields)
- Age verification, custom fields, delivery preferences needed
- Items and pricing are valid, just needs customer input
- validation_issues array indicates what information is needed
VALID
, INVALID
, REQUIRES_ADDITIONAL_INFORMATION
"VALID"
List of issues preventing checkout (empty = ready)
Comprehensive cart pricing breakdown calculated by merchant and returned in all cart responses. All fields are merchant-owned and calculated based on business logic, inventory, shipping rules, and tax regulations.
Merchant Responsibility:
- Calculate all totals based on items, shipping address, and business rules
- Ensure accuracy for tax compliance and customer transparency
- Handle currency consistency across all money fields
- Apply discounts, shipping rates, and custom charges appropriately
Field Calculation Guidelines:
- subtotal: Sum of all item prices × quantities (before discounts)
- discount: Total amount saved from coupons, promotions, and discounts
- shipping: Calculated shipping cost based on address and selected method
- tax: Sales tax, VAT, or other applicable taxes based on billing/shipping jurisdiction
- handling: Processing fees, packaging costs, or handling charges
- insurance: Optional shipping insurance costs
- shipping_discount: Discounts applied specifically to shipping costs
- custom_charges: Additional fees like gift wrapping, expedited processing, etc.
- total: Final amount customer pays (subtotal - discount + shipping + tax + handling + insurance - shipping_discount + custom_charges)
PayPal Orders API Integration: When creating PayPal orders, custom_charges are typically rolled into the handling field or added as separate line items. The total amount must match the PayPal order total for successful payment capture. Fields map to PayPal Orders API breakdown structure where supported.
Successfully applied coupons (server-calculated)
Available shipping methods with selection state
HATEOAS navigation links for cart operations
Products in the cart
1
Represents customer information for the shopping cart.
Base address schema used for both shipping and billing addresses. Maps to AddressValidationMetadata and HTML 5.1 Autofilling form controls the autocomplete attribute.
Base address schema used for both shipping and billing addresses. Maps to AddressValidationMetadata and HTML 5.1 Autofilling form controls the autocomplete attribute.
Payment method information for PayPal Cart API. This API is specifically designed for PayPal's shopping cart service, so only PayPal payment methods are supported.
Payment Flow:
- Cart creation generates a payment token (in payment_method.token)
- Customer completes PayPal approval (Smart Wallet)
- PayPal provides token and payer_id for checkout
- Merchant receives PayPal payment confirmation
Billing Address Behavior:
- PayPal handles all billing address collection internally for payment processing
- Merchants can optionally collect billing addresses for tax calculation and business purposes
- Billing address in cart is for merchant use cases, not payment requirements
- Billing addresses are typically available from customer profile data
Note: Other payment methods (credit cards, Apple Pay, etc.) would be handled by separate merchant payment systems outside of this PayPal Cart API.
Custom checkout fields (age verification, etc.)
Discount coupons to apply or remove from cart
Optional precise location coordinates for enhanced delivery services