Skip to content

SubscriptionProduct's delete method is not implemented correctly #173

Description

@ayasar-sospita

The implementation of the SubscriptionProduct.delete is as follows

 public static IyzipayResource delete(String subscriptionPricingPlanReferenceCode, Options options) {
        String path = "/v2/subscription/pricing-plans/" + subscriptionPricingPlanReferenceCode;
        String uri = options.getBaseUrl() + path;
        return HttpClient.create().delete(uri,
                getHttpProxy(options),
                getHttpHeadersV2(path, null, options),
                null,
                IyzipayResource.class);
    }

The request is set to null, but the documentation states that a request body containing the subscriptionPricingPlanReferenceCode is required.

I have had a similar experience with Postman as well. With an empty body, the API returns the following response (which I must say is not helpful):

{
    "status": 404,
    "errorCode": "1",
    "errorMessage": "System error",
    "systemTime": 1754740381054,
    "locale": "tr"
}

It's working fine once a request body is provided.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions