-
Notifications
You must be signed in to change notification settings - Fork 45
Open
Description
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.
Metadata
Metadata
Assignees
Labels
No labels