Retrieves the current state of a cart. Used by PayPal Shopping Cart to check cart status, validation issues, and current totals.
Error Handling:
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:
Example:
Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...PayPal-supplied JWT token for authentication
"Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9..."
The cart identifier returned from cart creation
"CART-123"
Cart details retrieved 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
INVALID: Cart has data issues that prevent checkout
REQUIRES_ADDITIONAL_INFORMATION: Cart needs more data but is otherwise valid
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:
Field Calculation Guidelines:
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
Products in the cart
1Represents customer information for the shopping cart.
International shipping address for cart delivery.
Billing address for merchant business purposes, obtained from customer's PayPal profile. Similar to shipping addresses, billing addresses can be retrieved from customer's default address information stored in their PayPal account.
When Billing Address is Available:
Primary Use Cases:
Secondary Use Cases:
Note: Payment verification (AVS) and chargeback protection are handled by PayPal internally.
Implementation Notes:
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:
Billing Address Behavior:
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