Uploaded image for project: 'Red Hat 3scale API Management'
  1. Red Hat 3scale API Management
  2. THREESCALE-11693

Service Subscription Approval fails using 3Scale API.

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • 2.16.0 GA
    • System
    • None
    • False
    • Hide

      None

      Show
      None
    • False
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started
    • Not Started

      When attempting to approve a service subscription via the 3scale API, the request results in a 422 Unprocessable Entity error. This has been tested using both the official API Docs tool and direct curl commands, confirming that the error consistently occurs.

      This request is described as a PUT request whereas via UI is doing a POST request.

      curl -X 'PUT' '_domain_/admin/api/accounts/241/service_subscriptions/1049/approve.json -d 'access_token=thetoken' 

      Response:

      {
        "errors": {
          "state": [
            "cannot transition via \"accept\""
          ]
        }
      } 

       

      Expected behaviour

      The Service Subscription should be successfully approved, and success response(HTTP 200) should be returned.

       

        1. image-2025-02-13-14-58-58-435.png
          55 kB
          Jose Manuel Castano
        2. image-2025-02-13-14-59-56-881.png
          113 kB
          Jose Manuel Castano

              Unassigned Unassigned
              rh-ee-joscasta Jose Manuel Castano
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: