# Error creating payment links via Wix API

**URL:** <https://forum.wixstudio.com/t/error-creating-payment-links-via-wix-api/74594>\
**Category:** Ask the community\
**Tags:** code, wix-stores, wix\
**Created:** [October 28, 2025, 4:48pm UTC](https://forum.wixstudio.com/t/error-creating-payment-links-via-wix-api/74594 "2025-10-28T16:48:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![user6406](https://avatars.discourse-cdn.com/v4/letter/u/9f8e36/32.png) [@user6406](https://forum.wixstudio.com/u/user6406)\
**Post date:** [October 28, 2025, 4:48pm UTC](https://forum.wixstudio.com/t/error-creating-payment-links-via-wix-api/74594/1 "2025-10-28T16:48:28Z")

</div>

I’m having trouble with  
Wix Payment Links API - All payment link creation attempts fail with “price must not be empty” error despite properly formatted price fields  
Working in  
API Development using REST API endpoints with proper authentication and permissions  
Site link  
[Include your live site URL here - this is important for Wix support to check your site configuration]  
What I’m trying to do  
Create payment links for Wix Bookings services using the Payment Links API (POST /payment-links/v1/payment-links). Goal is to generate publicly accessible payment URLs for customers to pay for their fishing charter bookings.  
What I’ve tried so far  
✅ Verified all permissions: Have “Wix Pay Links”, “Wix eCommerce”, “Wix Bookings”, and “Wix Payments” permissions enabled  
✅ Confirmed Payment Links Settings work: GET /payment-links/v1/payment-links-settings returns 200 OK  
✅ Tested all payload structures:  
type: “ECOM” with ecomPaymentLink and customItem (matches working curl examples)  
type: “ECOM\_ORDER” with ecomOrderPaymentLink  
Correct eCommerce source.appId: “1380b703-ce81-ff05-f115-39571d94dfcd”  
✅ Tested all price formats:  
“80”, “80.0”, “80.00”, “80.000” (all fail identically)  
Both string and numeric formats  
✅ Minimal test: Simple payment link with no booking references (also fails)  
✅ Verified API authentication: Same API key works for Bookings, Contacts, and Payment Links Settings APIs  
Current payload (matches official documentation exactly):  
Error received (consistently across ALL attempts):  
Extra context  
The price field is clearly visible in our payload (“price”: “80.00”) but API claims it’s “not defined”  
This suggests a site configuration issue rather than payload problem  
Payment Links Settings API works, but creation fails  
Using proper DECIMAL\_VALUE format as per documentation  
API works for other endpoints (Bookings, Contacts) with same authentication  
Following official recipe for “Payment Links for Bookings”  
Questions:  
Is there a specific eCommerce store setup required beyond Payment Links Settings?  
Do I need connected payment methods (PayPal/Stripe) for Payment Links API to work?  
Is there a site premium plan requirement?  
Could this be a regional/currency support issue with SGD?  
The fact that Payment Links Settings works but creation fails suggests the feature is configured but not fully operational. Any guidance on required site setup would be appreciated!
