Subscription API throwing MISSING_REQUIRED_PARAMETER for requests that was previously working in sandbox

curl https://connect.squareupsandbox.com/v2/subscriptions \
  -X POST \
  -H 'Square-Version: 2024-01-18' \
  -H 'Authorization: Bearer xxxxx' \
  -H 'Content-Type: application/json' \
  -d '{
    "customer_id": "XXXX",
    "location_id": "XXXX",
    "idempotency_key": "59707d01-da29-40b7-8212-8eb9ad82abfe",
    "plan_variation_id": "XXXX",
    "card_id": "XXXXX"
  }'

This API used to work until this morning. This is now returning

{
  "errors": [
    {
      "code": "MISSING_REQUIRED_PARAMETER",
      "detail": "This endpoint requires a target specified",
      "category": "INVALID_REQUEST_ERROR"
    }
  ]
}
1 Like

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Using the REST API
Using the REST API
Integrate Customer Profiles with Other Services

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

I have the same problem, it was working fine before

We’ve also started seeing this today, with no change on our end. We’ve only tested so far in the sandbox, so we can’t confirm yet if this is happening with our production account yet.

1 Like

I’ve reached out to the team and I’ll be sure to provide updates when I have more information. :slightly_smiling_face:

The team has deployed a fix for this. If your still getting the error please do reach out. :slightly_smiling_face:

works now. thank you