API process_dropshipments, tracking vs Cart order email notifications

“cart” => 90012
“cart_name” => “WooCommerce Cart”

  • An order, 9 lines, 3 suppliers
  • Doing process_dropshipments
  • The order was split into 3 child orders, 3 lines each (all is correct)
  • Each supplier got an email with his lines (all is correct)
  • Additional shipments were added and configured for each order by my app internal logic
  • e.g. I have 3 orders with 3 shipments each. Total 9 shipments.
  • Suppliers start filling tracking info

Result:

  • a customer receives an email “A note has been added to your order” after tracking info was added for a shipment, the email contains all lines of parent order and a tracking number
  • an email “Your order is complete” is sent to a customer when a tracking info was added for at least one shipment of any child order.

Expected:

  • a customer should receive updates on his orders from the cart; Preferably only with the lines from a shipment which tracking info was added (not the parent or child order)
  • the “Your order is complete” email should be sent by cart only when all shipments (9 in this example) were filled with tracking info;

This seems like a woocommerce problem.
Note: We do not support creation or use of multiple shipments on v3 of the app.

“Note: We do not support creation or use of multiple shipments on v3 of the app.”

What is the future of shipments in v3?

I use a mix of v2 and v3 for my needs.

v3 is for orders only, shipments are referenced internally.
If you are creating additional shipments in v3, you can expect the app to behave poorly. It is highly advised to split orders if you need deeper granularity.

We are not using version 3. The answer above doesn’t relate to any question I have.

I am attempting to make my first connection to your API.

I want to view an order.

Here’s the code I am using with an Ordoro order ID from my client:

$ch = curl_init();

$orderId = ‘1-40780-1’;

curl_setopt($ch, CURLOPT_URL, “https://api.ordoro.com/order/?cart_order_id=$orderId”);

curl_setopt($ch, CURLOPT_USERPWD, “email:password”);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);

curl_setopt($ch, CURLOPT_HEADER, FALSE);

$response = curl_exec($ch);

curl_close($ch);

var_dump($response);

My code did not return an error, although the returned order array is empty.

string(51) “{“count”: 0, “limit”: 10, “offset”: 0, “order”: []}”

Is the code above correct?

Thanks,

@jimb814 Please open a new thread for this question, so others may see and might be able to help answer.

Also, check out the examples we have here for some php specific examples https://github.com/ordoro/api-examples

This post doesn’t belong in this section. New to Ordoro. My apologies.