I am encountering an issue while interacting with the Wix API, and I would appreciate your assistance in resolving it.
I am attempting to create a checkout for a new plan via the API, but I consistently receive a 400 Bad Request
response. The response message is as follows:
{
"status": "Bad Request",
"message": [null],
"data": [],
"status_code": 400,
"messageType": "error"
}
Despite checking the API documentation and ensuring the parameters are correct, I am unable to resolve the issue. Below are the details of the request I’m making:
- Endpoint:
https://www.wixapis.com/apps/v1/checkout
- Request Body:
{
"productId": "starter",
"successUrl": "https://success-url.com",
"testCheckout": false,
"billingCycle": "MONTHLY"
}
- Authorization Token: [Auth token]
- Request Headers:
- Content-Type:
application/json
- Authorization: [Auth Token]
- User-Agent:
Faraday v1.4.3
- Content-Type:
I would appreciate it if you could provide any insights into why I am encountering this issue. Specifically, if there are any restrictions related to active plans or required parameters that I may have missed.
Please let me know if any additional information is required from my side to assist in resolving this issue.
Thank you for your time and support. I look forward to your response.
Best regards,