Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Breaking Changes on April 1st? Don't see the referenced calls...

Breaking Changes on April 1st? Don't see the referenced calls...

M_Frank
Tourist
13 0 11

I received several messages from Shopify that my app would break because of these calls, however I do not see these fields or utilize them in my order fulfillment script. Can someone please explain to me what I need to do? FWIW, the script still works even though it's after April 1st.

 

This is the message I received:

One or more of your apps have made deprecated API calls in the last 14 days. Support for this version will be removed on April 1, 2024. Please update the apps listed below to API version 2023-07 or later to ensure they continue to function correctly.

Store: Store

App: Create Order
Breaking Changes:

  • The gateway, payment_details, and processing_method fields on the Order resource have been removed. The `orders/transactions.json` REST endpoint, and the `transactions` GraphQL connection provide correct information per transaction set. View change.
  • The delivery_category field has been removed from the ShippingLine REST Admin API. View change.

And this is my script (it doesn't send any of these referenced fields to the API)

 
function sendInfo($info) {
		$info_array = array(
			"order"=>array(
        		"receiver_email"=>$info,
        		"no_receipt"=>1
        	)
    );
	echo "<br />Item<br /> ";
	echo json_encode($info_array);
	$url = "http://ec2.website.com/makeOrder.php";
	$curl = curl_init();
	curl_setopt($curl, CURLOPT_URL, $url);
	curl_setopt($curl, CURLOPT_HTTPHEADER, array('Content-Type: application/json; charset=utf-8'));
	curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
	curl_setopt($curl, CURLOPT_VERBOSE, 0);
	curl_setopt($curl, CURLOPT_HEADER, 1);
	curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "POST");
	curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($info_array));
	curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
	$response = curl_exec ($curl);
	curl_close ($curl);
	echo "<pre>";
	print_r($response);
}

 

 

Replies 0 (0)