orders->get('ord_8wmqcHMN4U'); $shipment = $order->shipAll(); echo 'A shipment with ID ' . $shipment->id. ' has been created for your order with ID ' . $order->id . '.'; foreach ($shipment->lines as $line) { echo $line->name . ' - status: ' . $line->status . '.'; } } catch (\Mollie\Api\Exceptions\ApiException $e) { echo "API call failed: " . htmlspecialchars($e->getMessage()); }