{ "name": "T-Shirt of the Month Club Plan", "description": "Template creation.", "type": "fixed", "payment_definitions": [ { "name": "Regular Payments", "type": "REGULAR", "frequency": "Month", "frequency_interval": "2", "cycles": "12", "amount": { "value": "100", "currency": "USD" }, "charge_models": [ { "type": "SHIPPING", "amount": { "value": "10", "currency": "USD" } } ] } ], "merchant_preferences": { "return_url": "https://www.moonflix.jaitia.com/vendor/paypal/rest-api-sdk-php/sample/billing/ExecuteAgreement.php?success=true", "cancel_url": "https://www.moonflix.jaitia.com/vendor/paypal/rest-api-sdk-php/sample/billing/ExecuteAgreement.php?success=false", "auto_bill_amount": "yes", "initial_fail_amount_action": "CONTINUE", "max_fail_attempts": "0", "setup_fee": { "value": "1", "currency": "USD" } } }
{ "name": "T-Shirt of the Month Club Plan", "description": "Template creation.", "type": "FIXED", "payment_definitions": [ { "id": "PD-5JN91848BX2204927BA47OSI", "name": "Regular Payments", "type": "REGULAR", "frequency": "Month", "amount": { "currency": "USD", "value": "100" }, "cycles": "12", "charge_models": [ { "id": "CHM-0EU24023EU217913DBA47OSI", "type": "SHIPPING", "amount": { "currency": "USD", "value": "10" } } ], "frequency_interval": "2" } ], "merchant_preferences": { "setup_fee": { "currency": "USD", "value": "1" }, "max_fail_attempts": "0", "return_url": "https://www.moonflix.jaitia.com/vendor/paypal/rest-api-sdk-php/sample/billing/ExecuteAgreement.php?success=true", "cancel_url": "https://www.moonflix.jaitia.com/vendor/paypal/rest-api-sdk-php/sample/billing/ExecuteAgreement.php?success=false", "auto_bill_amount": "YES", "initial_fail_amount_action": "CONTINUE" }, "id": "P-2TA6687226330082WBA47OSI", "state": "CREATED", "create_time": "2025-10-21T19:23:27.945Z", "update_time": "2025-10-21T19:23:27.945Z", "links": [ { "href": "https://api.sandbox.paypal.com/v1/payments/billing-plans/P-2TA6687226330082WBA47OSI", "rel": "self", "method": "GET" } ] }
Array ( [page_size] => 2 )
Got Http response code 500 when accessing https://api.sandbox.paypal.com/v1/payments/billing-plans/?page_size=2.
{ "name": "INTERNAL_SERVICE_ERROR", "debug_id": "4a8ab2d201d98", "message": "An internal service error occurred.", "information_link": "https://developer.paypal.com/webapps/developer/docs/api/#INTERNAL_SERVICE_ERROR" }