Skip to content

Get Paypal Plan Id

GET
/api/payments/paypal/plan-id
curl --request GET \
--url 'https://example.com/api/payments/paypal/plan-id?package_id=example'

Lightweight endpoint returning PayPal plan id for client-side Smart Buttons createSubscription flow.

package_id
required
Package Id
string

Successful Response

Media typeapplication/json
Examplegenerated
example

Validation Error

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string
Examplegenerated
{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}