I am using the paypals rest API and integrating paypal with payments.
I manage to create the web experience profile with the following code, but i cant run this code
There's no "lifecycle time" defined for a web experience profile, not until you update it or delete the profile
DELETE /v1/payment-experience/web-profiles/
Pass the profile ID into the JSON payload for each payment request,
"experience_profile_id": "XP-CP6S-W9DY-96H8-MVN2"
reuse the profile unless you need different experience settings (allow shipping / note / logo img, etc).
Check this out for more details on Payment Experience overview